#567 [regression] `fedpkg chain-build` losts the last packages in the output
Closed: Fixed 23 days ago by onosek. Opened 2 months ago by mcrha.

Version: fedpkg-1.45-2.fc40.noarch

There is a defined order to build packages at, in my case evolution-data-server first, then evolution and then evolution-ews and evolution-mapi can run in parallel. Since I remember, I ran:

$ fedpkg chain-build evolution-data-server : evolution : evolution-ews

in the evolution-mapi directory and it used to work as expected. Its current output is:

Using evolution-mapi.spec
Chain building evolution-mapi-3.54.0-1.fc42 + [['git+https://src.fedoraproject.org/rpms/evolution-data-server.git#972b094fea7b76351aef412c91789b5f8b32dae5'], ['git+https://src.fedoraproject.org/rpms/evolution.git#3dd073cda3c81850c79aff2c0e2b26bc4f0f6a28']] for rawhide
Created task: 123334896
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=123334896
Watching tasks (this may be safely interrupted)...
123334896 chainbuild (rawhide): free

where you can see the "Chain building ..." completely misses the evolution-ews and evolution-mapi. That's wrong, of course, thus I cancelled the koji build and tried some other tricks, none except of adding a : at the end of the package list worked.

While I've been filling this bug I also opened the URL for the koji build from the fedpkg output and what a surprise, the koji does build the packages as expected (or it would, if I did not cancel it), thus it seems only the output in the terminal regressed, not showing what will be really built.


Hello @mcrha,
If I recall correctly, the chain-build functionality hasn't changed for years, so I wouldn't say it's a regression. Anyway, I found the message in your example confusing.
If you didn't cancel the build, you would have got the correct result.
There is a possibility of verbose output:

fedpkg -v chain-build ...

One of the debug messages showed all 4 components in the correct ordering.
I fixed the confusing message and in your example it would look like:

Chain building evolution-mapi-3.54.0-1.fc42, chain consists of [['git+https://src.fedoraproject.org/rpms/evolution-data-server.git#972b094fea7b76351aef412c91789b5f8b32dae5'], ['git+https://src.fedoraproject.org/rpms/evolution.git#3dd073cda3c81850c79aff2c0e2b26bc4f0f6a28'], ['git+https://src.fedoraproject.org/rpms/evolution-ews.git#6d2711fbf764e10c6ae12f41305a9b2ef8597c5c', 'git+https://src.fedoraproject.org/rpms/evolution-mapi.git#c57980cfce00188123782cd7e4eab60028f2c0a3']], for rawhide

The change is located there:
https://pagure.io/rpkg/pull-request/726

Thanks for letting us know.

Right, it turned out it was about the terminal/console message, than about the functionality. Thank you for the fix.

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #726 Merged 23 days ago