We recently had a problem where rebuildSRPM and buildSRPMFromSCM tasks were failing because the old builder(s) had versions of mock that did not recognize the --old-chroot option.
rebuildSRPM
buildSRPMFromSCM
--old-chroot
It is difficult to debug this problem further without shell access to the builders. In particular there is no simple way to see what version of mock is running on the builder.
It would be a good idea to log the output of mock --version so that non-administrator users can identify the problem more quickly. This is particularly relevant for diagnosing failed tasks, but I imagine it would be good to log this information overall, simply for auditability and reproducibility's sake.
mock --version
Metadata Update from @tkopecek: - Custom field Size adjusted to None - Issue set to the milestone: 1.23
We're logging the Mock version quite liberally elsewhere. This is just a small corner-case where we failed to log it.
should we record this info in standard_buildroot? I think mock version is a factor of buildroot here. Anyway, there are a lot of factors as well, like rpm/yum/dnf version on builder
@ktdreyer mock_output.log always contain mock's version. It is the same for rebuildSRPM tasks. See e.g. https://koji.fedoraproject.org/koji/taskinfo?taskID=51129538 (3rd line in https://kojipkgs.fedoraproject.org//work/tasks/9538/51129538/mock_output.log)
mock_output.log
and same for buildSRPMFromSCM https://koji.fedoraproject.org/koji/taskinfo?taskID=51129467
It is in fact present almost in all logs (except checkout and hw_info). Maybe I'm missing the problem?
Dropping for now, if there will be no new info.
Metadata Update from @tkopecek: - Issue close_status updated to: Invalid - Issue set to the milestone: None (was: 1.23) - Issue status updated to: Closed (was: Open)
Yeah, this came from internal issue RHELBLD-1492. The problem was that the ancient version of mock-1.1.16-1.3.el6 did not get far enough to print its own version number. The resolution was to update to a newer version of mock on all the builders. This is a very small corner case so I think it's fine to close this.
mock-1.1.16-1.3.el6
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/koji/issues/2281
Please continue any further discussion there.