Skip to content

Add RHEL (x64) support for building Python packages#395

Open
priyagupta108 wants to merge 2 commits into
actions:mainfrom
priyagupta108:RHEL-support
Open

Add RHEL (x64) support for building Python packages#395
priyagupta108 wants to merge 2 commits into
actions:mainfrom
priyagupta108:RHEL-support

Conversation

@priyagupta108
Copy link
Copy Markdown
Contributor

This PR adds support for building and testing Python packages on RHEL (x64 architecture).

Copilot AI review requested due to automatic review settings June 8, 2026 09:19
@priyagupta108 priyagupta108 requested a review from a team as a code owner June 8, 2026 09:19
Copy link
Copy Markdown

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 extends the Python package build/test pipeline to include RHEL (x64) targets, adding a dedicated RHEL builder, updating the workflow matrix to schedule RHEL jobs, and expanding manifest parsing/tests to recognize RHEL artifacts.

Changes:

  • Added a RhelPythonBuilder implementation (dnf-based dependency setup + configure flags) and wired it into the build entrypoint.
  • Updated the GitHub Actions workflow matrix to include rhel-9 and rhel-10 runners and install prerequisites on RHEL runners.
  • Updated manifest parsing/test cases to support RHEL platform versions without a minor component (e.g., 9, 10) and adjusted toolcache path expectations in config tests.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/sources/python-config-test.py Uses RUNNER_TOOL_CACHE as a fallback for toolcache path derivation.
tests/python-tests.ps1 Runs the “nix-like” validation suite for RHEL platforms as well.
tests/ManifestConfig.Tests.ps1 Adds stable/prerelease test cases for RHEL 9/10 artifacts (default + freethreaded).
config/python-manifest-config.json Updates regex/group mapping to parse integer-only platform versions (e.g., 9, 10).
builders/rhel-python-builder.psm1 New RHEL builder (configure + dnf-based dependency installation).
builders/build-python.ps1 Selects RhelPythonBuilder when platform matches rhel.
.github/workflows/build-python-packages.yml Adds RHEL platforms to the matrix and installs prerequisites on RHEL runners.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/sources/python-config-test.py
Comment thread .github/workflows/build-python-packages.yml
@priyagupta108 priyagupta108 self-assigned this Jun 8, 2026
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.

4 participants