Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report version number when running rpm-ostree compose tree #1556

Closed
nullr0ute opened this issue Sep 13, 2018 · 7 comments
Closed

Report version number when running rpm-ostree compose tree #1556

nullr0ute opened this issue Sep 13, 2018 · 7 comments
Assignees
Labels
good-first-issue good issue for someone new jira for syncing to jira

Comments

@nullr0ute
Copy link

When running a compose tree within other tools such as pungi rpm-ostree doesn't output any details of the version that's running. It would be useful to enable quick and easier debug if it output a line with version, and possibly some other pertinent information (no I'm not sure what that might be) to aid debug.

An example extract of the beginning of a compose currently looks like this:

COMMAND: rpm-ostree compose tree --repo=/mnt/koji/compose/iot/repo/ --write-commitid-to=/mnt/koji/compose/iot/Fedora-IoT-30-20180911.0/logs/x86_64/IoT/ostree-3/commitid.log --add-metadata-string=version=30.20180911.0 /mnt/koji/compose/iot/Fedora-IoT-30-20180911.0/work/ostree-3/config_repo/fedora-iot.json
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Previous commit: 34a11d32c09d0827cded3e868e638866353e33469622442c5fabb4d5cc11e259
Enabled rpm-md repositories: repo-0
Updating metadata for 'repo-0': 100%
rpm-md repo 'repo-0'; generated: 2018-09-10 07:40:42
Importing metadata 100%
Resolving dependencies... done
Installing 479 packages:
cgwalters added a commit to cgwalters/coreos-assembler that referenced this issue Sep 13, 2018
While we know the assembler is tracking FAHC, it's still
useful information in general since the feature set of these
is changing pretty quickly.

Ref: coreos/rpm-ostree#1556
@cgwalters
Copy link
Member

A patch to do that would probably be fewer lines than this reply, but...I lean a little bit towards having higher level tools do stuff like that. It should also be an easy patch for e.g. pungi right?

Or for instance, a patch to our new coreos-assembler project.

@nullr0ute
Copy link
Author

Why would pungi report the version of a tool that it's not in control off, that makes no sense what so ever, a line in the output of the tool would be useful especially when it generally isn't run interactively. I had to dig through a whole bunch of different log files this morning to work out the version of rpm-ostree.

cgwalters added a commit to coreos/coreos-assembler that referenced this issue Sep 13, 2018
While we know the assembler is tracking FAHC, it's still
useful information in general since the feature set of these
is changing pretty quickly.

Ref: coreos/rpm-ostree#1556
@dustymabe
Copy link
Member

I sit on both sides of this fence. for peter's particular case it's not too hard to find the version by looking at what rpm got installed in the root.log (log here) from the koji task.

on the other hand it can be useful in a build system to have output (log output) that gives you this information more freely right at the top of the log where people are going to look first. Another particular example of this I find useful is anaconda where the first statement in the log is something like:

09:57:47,421 INF main: /sbin/anaconda 30.2-1.fc30

@nullr0ute
Copy link
Author

@dustymabe you're right it's not hard, but it's time consuming where most tools like this would report it because it's useful information.

Ultimately I have no particular urge to bike shed. I thought it is a useful piece of information to have reported by the tool itself. If you don't wish to be helpful to your users well ¯_(ツ)_/¯

@dustymabe
Copy link
Member

@cgwalters - a PR for something like this would be a good "first issue" for someone learning the project. Would you accept a patch if a newcomer submitted one?

@cgwalters
Copy link
Member

Why would pungi report the version of a tool that it's not in control off,

Pungi today directly invokes rpm-ostree right? It's certainly in control.

I thought it is a useful piece of information to have reported by the tool itself. If you don't wish to be helpful to your users well ¯_(ツ)_/¯

Hey now, let's be civil here. I think my initial response here was - note I'm not saying no.

One other important piece of background here is that today, rpm-ostree doesn't have any kind of split between client and server side compose tooling, and I regret that now. Part of working on the new coreos-assembler project is to implicitly create that split. We have far more freedom to depend on whatever tooling we want in a separate project. Particularly for rojig we depend on e.g. createrepo_c, rpm-build and lots of other stuff that we clearly don't want to ship to clients.

@cgwalters
Copy link
Member

Would you accept a patch if a newcomer submitted one?

Sure.

@dustymabe dustymabe added good-first-issue good issue for someone new jira for syncing to jira labels Sep 13, 2018
LorbusChris added a commit to LorbusChris/rpm-ostree that referenced this issue Oct 12, 2018
LorbusChris added a commit to LorbusChris/rpm-ostree that referenced this issue Oct 22, 2018
LorbusChris added a commit to LorbusChris/rpm-ostree that referenced this issue Oct 25, 2018
LorbusChris added a commit to LorbusChris/rpm-ostree that referenced this issue Oct 25, 2018
LorbusChris added a commit to LorbusChris/rpm-ostree that referenced this issue Oct 25, 2018
Users doing builds that are using newer features
want to be sure they have the right version.

Closes: coreos#1556
LorbusChris added a commit to LorbusChris/rpm-ostree that referenced this issue Oct 25, 2018
Users doing builds that are using newer features
want to be sure they have the right version.

Closes: coreos#1556
LorbusChris added a commit to LorbusChris/rpm-ostree that referenced this issue Oct 25, 2018
Users doing builds that are using newer features
want to be sure they have the right version.

Closes: coreos#1556
LorbusChris added a commit to LorbusChris/rpm-ostree that referenced this issue Oct 25, 2018
Users doing builds that are using newer features
want to be sure they have the right version.

Closes: coreos#1556
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue good issue for someone new jira for syncing to jira
Projects
None yet
Development

No branches or pull requests

4 participants