Skip to content

fix(python-build): disable tests/extras bconds to fix BR-unresolvable nightly failure#17635

Open
WithEnoughCoffee wants to merge 1 commit into
4.0from
fix/python-build-br-unresolvable
Open

fix(python-build): disable tests/extras bconds to fix BR-unresolvable nightly failure#17635
WithEnoughCoffee wants to merge 1 commit into
4.0from
fix/python-build-br-unresolvable

Conversation

@WithEnoughCoffee
Copy link
Copy Markdown
Contributor

@WithEnoughCoffee WithEnoughCoffee commented Jun 5, 2026

Summary

Disable tests and extras bconds for python-build to resolve buildroot resolution failure (mock exit 30) in Koji nightly builds (taskID 2593995).

Problem

The tests bcond (enabled by default when %rhel is undefined) causes %pyproject_buildrequires -g test to generate dynamic BuildRequires for test dependencies (filelock, pytest-mock, setuptools_scm, etc.) that may not be published in the Koji build tag at build time.

Fix

Add build.without = ["extras", "tests"] — aligning with RHEL behavior. The %pyproject_check_import basic sanity check still runs.

Testing

  • Build succeeded in mock chroot
  • %pyproject_check_import passes

References

Copilot AI review requested due to automatic review settings June 5, 2026 21:01
@WithEnoughCoffee WithEnoughCoffee changed the title librsvg2: fix BR-unresolvable nightly failure fix(librsvg2): resolve BR-unresolvable nightly build failure Jun 5, 2026
@WithEnoughCoffee WithEnoughCoffee force-pushed the fix/python-build-br-unresolvable branch from 01cd2eb to 2a47071 Compare June 5, 2026 21:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts Azure Linux component configurations and their rendered specs to address Koji nightly buildroot resolution failures by reducing dynamic/unavailable BuildRequires (notably around Rust crates/AVIF for librsvg2, and extras/tests dependency discovery for python-build).

Changes:

  • librsvg2: enable bundled Rust deps, drop Fedora rust-toolset BR, and force AVIF disabled in %build.
  • python-build: introduce a dedicated component config disabling extras/tests bconds to avoid non-deterministic BR resolution, and update lock/rendered outputs accordingly.
  • Update rendered specs/sidecar macros and lock fingerprint to match the new component configuration.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
base/comps/librsvg2/librsvg2.comp.toml Adds overlays to vendor Rust deps and adjust BRs/meson flags for AZL.
specs/l/librsvg2/librsvg2.spec Rendered spec reflecting the new librsvg2 overlay effects (bundled deps/BR changes/AVIF disabled).
base/comps/python-build/python-build.comp.toml Adds a dedicated component file disabling extras/tests to avoid dynamic BR scheduling issues.
locks/python-build.lock Updates input fingerprint due to component config change.
specs/p/python-build/python-build.spec Rendered python-build spec now loading the generated macros and carrying the updated changelog/release.
specs/p/python-build/python-build.azl.macros New azldev-generated macros sidecar implementing build.without toggles.
base/comps/components.toml Removes python-build from the inline “unmodified” component list since it’s now customized via a dedicated comp file.

Comment thread specs/l/librsvg2/librsvg2.spec Outdated
Comment thread base/comps/librsvg2/librsvg2.comp.toml Outdated
Comment thread base/comps/librsvg2/librsvg2.comp.toml Outdated
Comment thread specs/p/python-build/python-build.spec Outdated
Comment on lines +99 to +100
* Fri May 29 2026 Autumn Nash <autumnnash@microsoft.com> - 1.3.0-6
- python-build: disable tests bcond to fix BR-unresolvable nightly failure
Comment thread base/comps/python-build/python-build.comp.toml
@WithEnoughCoffee WithEnoughCoffee force-pushed the fix/python-build-br-unresolvable branch 2 times, most recently from e33811e to 6d55064 Compare June 5, 2026 21:18
@WithEnoughCoffee WithEnoughCoffee changed the title fix(librsvg2): resolve BR-unresolvable nightly build failure fix(python-build): disable tests/extras bconds to fix BR-unresolvable nightly failure Jun 5, 2026
…able nightly failure

The tests bcond (enabled by default when %rhel is undefined) causes
%pyproject_buildrequires -g test to generate dynamic BuildRequires for
test dependencies (filelock, pytest-mock, setuptools_scm, etc.) that
may not be published in the Koji build tag at build time, resulting in
mock exit status 30 (BR-unresolvable).

The extras bcond pulls uv into BuildRequires via
%pyproject_buildrequires -x virtualenv,uv. The uv package currently
fails to build in AZL4, causing cascading BR-unresolvable failures.

Disable both via build.without, aligning with RHEL behavior as the
spec was designed for. The %pyproject_check_import basic sanity check
still runs.

Fixes: Koji task 2593995
Related: AB#20330
@WithEnoughCoffee WithEnoughCoffee force-pushed the fix/python-build-br-unresolvable branch from 6d55064 to 7fc5b82 Compare June 5, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants