Repository navigation
fix: support RHEL 8 security installs - #16
Merged
Merged
Conversation
Signed-off-by: nraghavan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
securityandallextra installation on RHEL 8 and other Linux systems that provide glibc 2.28.User-visible behavior
The documented full installation now succeeds on glibc 2.28 Linux hosts instead of failing while resolving or building Semgrep. Base installations remain unchanged because the affected scanners are confined to the optional
securityextra, which is also included byall.Linux users receive the compatible scanner pair:
>=1.157.0,<1.158.0>=2.9.0,<2.10.0Non-Linux users retain the existing baselines:
>=1.162.0>=2.10.0Problem and root cause
Semgrep 1.158 and newer changed their Linux binary distribution to require a newer glibc. The current public lock resolves Semgrep 1.168 to a
manylinux_2_34wheel, which cannot be installed on RHEL 8's glibc 2.28 runtime.The last compatible Semgrep release is 1.157.0, but that release constrains
tomli<2.1. pip-audit 2.10 and newer requiretomli>=2.2.1, so simply downgrading Semgrep leaves the security extra unsatisfiable. The Linux dependency pair must therefore move together.Python environment markers expose
sys_platformbut not the host glibc version. To preserve RHEL 8 portability, the compatible pair applies to all Linux environments; macOS and Windows continue to resolve the newer lines.Implementation details
Dependency metadata
securityextra using complementarysys_platformmarkers.tomliconstraints next to the requirements.Lockfile
uv.lockwith the same uv version used by CI (0.11.27).tomli2.0.2, and their compatible transitive dependencies.cyclonedx-python-lib9.1.0 on Linux; no release candidate is introduced.Regression coverage
CI coverage
Added a Rocky Linux 8.10 job that:
--no-sources.securityextra into an isolated environment.This validates the published artifact path rather than only an editable source environment.
Documentation and release notes
Verification
Focused validation completed on a glibc 2.28 host:
uv lock --checkwith uv 0.11.2731 passedintests/test_oss_packaging.pymake lint PYTHON=.venv/bin/pythonmake build PYTHON=.venv/bin/python[security]succeededThe broad local
make testrun is not marked complete: this RHEL 8/NFS workspace does not provide the canonical Docker/filesystem environment used by several Harbor tests. The focused packaging suite passes, and GitHub CI will run the full canonical matrix.PR checklist
make lintmake test(focused suite passed; canonical full suite runs in CI)make buildRelease impact
CHANGELOG.mdRisks and trade-offs
securityand bundles that include it change.