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
Builds on excluded architectures should be given a result other than 'Failed' #2137
Comments
See also #2548, and https://bugzilla.redhat.com/show_bug.cgi?id=2171323 |
This would be greatly appreciated. It's really quite easy to reproduce:
|
From a discussion with @tstellar : For every run we do, we end up spending time filtering these false failures out of our results. |
We should contact the Tools team and ask for the requirements on this feature. |
As I see it, there are two approaches that we can choose from:
Leaving it here for future implementation, I'd use this code to query the exclusive architectures: import rpm
ts = rpm.TransactionSet()
with open(path, "rb") as rpm_fd:
pkg = ts.hdrFromFdno(rpm_fd)
archs = pkg["exclusivearch"] |
Does this query still work if the spec file uses ExcludeArch instead of ExclusiveArch ? |
How Koji does this? Koji somehow filters the list of architectures using Ex*Arch. |
Option 1 seems better to me. Ad Is it safe to query the information on backend? I guess it is. - should be, but for extremely new RPM features in new chroots problems might happen (but similar problem might happen on builder). I think we should do this on builder anyway, e.g. for BuildChroot builds we already have the |
https://pagure.io/koji/blob/master/f/koji/__init__.py#_1178 And then Also, mind https://pagure.io/koji/issue/19 |
Original issue: https://pagure.io/copr/copr/issue/2137
Opened: 2022-03-23 22:56:40
Opened by: tstellar
Currently if you build a package with ExclusiveArch or ExcludeArch, the build will be marked as Failed for chroots with the excluded architecture. It would be nice if these builds would be given a different result, like skipped, for example.
praiskup commented at 2022-03-24 15:04:47:
Thank you for the report. Do you have a link to such a build?
tstellar commented at 2022-03-24 17:10:37:
I have two examples highlighting the different failure modes:
https://copr.fedorainfracloud.org/coprs/g/fedora-llvm-team/clang-built-f36/build/3714972/
This build fails to install some required packages, because they don't exist for the architecture.
https://copr.fedorainfracloud.org/coprs/g/fedora-llvm-team/clang-built-f36/build/3714957/
This build installs all the dependencies, but then fails to start the build with the error "Architecture is not included"
The text was updated successfully, but these errors were encountered: