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

Fix including excluded repositories due to broken status #10

Merged
merged 1 commit into from May 25, 2023

Conversation

refi64
Copy link
Collaborator

@refi64 refi64 commented Nov 11, 2022

There's a short period of time after a package is uploaded that OBS might report it as broken, with the details set to empty. This means that, when the build metadata is gathered, excluded architectures end up being included, because the status is broken instead of excluded.

In order to work around this, wait for a short period of time if the package's status is broken and details are empty, that way we can actually check if the architecture is excluded.

Signed-off-by: Ryan Gonzalez ryan.gonzalez@collabora.com


In draft status because it depends on collabora/open-build-service-rs#10.

@sjoerdsimons
Copy link
Contributor

your dependency has been merged now :)

@refi64 refi64 force-pushed the wip/refi64/broken-excluded branch from 2c6ba04 to 037cde5 Compare April 6, 2023 13:46
@refi64 refi64 marked this pull request as ready for review April 6, 2023 13:47
Cargo.toml Outdated Show resolved Hide resolved
src/build_meta.rs Outdated Show resolved Hide resolved
@refi64 refi64 force-pushed the wip/refi64/broken-excluded branch 2 times, most recently from 3d13510 to d92b209 Compare April 6, 2023 14:00
There's a short period of time after a package is uploaded that OBS
might report it as `broken`, with the details set to `empty`. This means
that, when the build metadata is gathered, excluded architectures end up
being *included*, because the status is `broken` instead of `excluded`.

In order to work around this, wait for a short period of time if the
package's status is `broken` and details are `empty`, that way we can
actually check if the architecture is excluded.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
@refi64 refi64 force-pushed the wip/refi64/broken-excluded branch from d92b209 to 1c7e0d4 Compare April 6, 2023 15:03
@sjoerdsimons sjoerdsimons merged commit e5c175e into main May 25, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants