Repository navigation
markers: add require_sssd_version helper for package version gates - #286
Open
madhuriupadhye wants to merge 1 commit into
Open
madhuriupadhye wants to merge 1 commit into
madhuriupadhye wants to merge 1 commit into
Conversation
- Add `parse_package_version()` and `BaseLinuxHost.package_version_at_least()` so tests can gate on installed package NVRs.
- Add `BaseLinuxHost.distro_id` from `/etc/os-release` `ID`.
- Add `require_sssd_version()` for use with `@pytest.mark.require`.
- Refactor `get_package_version()` to reuse the shared parser; add unit tests for version parsing.
- By default, version checks apply only when `ID=rhel` (downstream gating, nightlies, and signoff).
- Upstream PRCI on CentOS, Fedora, and other distros are **not** skipped (`distro_ids=("rhel",)`).
- Pass `distro_ids=None` to compare on every distro.
- RHEL thresholds use downstream Release bumps (e.g. `2.13.1-3`); do not reuse those NVRs as Fedora/CentOS gates.
Signed-off-by: Madhuri Upadhye <Madhuri Upadhye>
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.
parse_package_version()andBaseLinuxHost.package_version_at_least()so tests can gate on installed package NVRs.BaseLinuxHost.distro_idfrom/etc/os-releaseID.require_sssd_version()for use with@pytest.mark.require.get_package_version()to reuse the shared parser; add unit tests for version parsing.ID=rhel(downstream gating, nightlies, and signoff).distro_ids=("rhel",)).distro_ids=Noneto compare on every distro.2.13.1-3); do not reuse those NVRs as Fedora/CentOS gates.