CI: Support repository variable override for ZTS OS selection#18342
Merged
behlendorf merged 1 commit intoopenzfs:masterfrom Mar 19, 2026
Merged
CI: Support repository variable override for ZTS OS selection#18342behlendorf merged 1 commit intoopenzfs:masterfrom
behlendorf merged 1 commit intoopenzfs:masterfrom
Conversation
Allow restricting ZTS OS targets by setting the vars.ZTS_OS_OVERRIDE repository variable (e.g. '["debian13"]') to reduce shared runner contention when running the full OS matrix is unnecessary. When unset, the existing ci_type-based OS selection is used unchanged. Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
f8e7ad5 to
9aa866b
Compare
14 tasks
behlendorf
approved these changes
Mar 18, 2026
ixhamza
added a commit
to truenas/zfs
that referenced
this pull request
Mar 19, 2026
Allow restricting ZTS OS targets by setting the vars.ZTS_OS_OVERRIDE repository variable (e.g. '["debian13"]') to reduce shared runner contention when running the full OS matrix is unnecessary. When unset, the existing ci_type-based OS selection is used unchanged. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ameer Hamza <ahamza@ixsystems.com> Closes openzfs#18342
Merged
14 tasks
bugclerk
pushed a commit
to truenas/zfs
that referenced
this pull request
Mar 23, 2026
Allow restricting ZTS OS targets by setting the vars.ZTS_OS_OVERRIDE repository variable (e.g. '["debian13"]') to reduce shared runner contention when running the full OS matrix is unnecessary. When unset, the existing ci_type-based OS selection is used unchanged. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ameer Hamza <ahamza@ixsystems.com> Closes openzfs#18342 (cherry picked from commit 9bed6dd)
14 tasks
pcd1193182
pushed a commit
to KlaraSystems/zfs
that referenced
this pull request
Apr 8, 2026
Allow restricting ZTS OS targets by setting the vars.ZTS_OS_OVERRIDE repository variable (e.g. '["debian13"]') to reduce shared runner contention when running the full OS matrix is unnecessary. When unset, the existing ci_type-based OS selection is used unchanged. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ameer Hamza <ahamza@ixsystems.com> Closes openzfs#18342
pcd1193182
pushed a commit
to KlaraSystems/zfs
that referenced
this pull request
Apr 8, 2026
Allow restricting ZTS OS targets by setting the vars.ZTS_OS_OVERRIDE repository variable (e.g. '["debian13"]') to reduce shared runner contention when running the full OS matrix is unnecessary. When unset, the existing ci_type-based OS selection is used unchanged. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ameer Hamza <ahamza@ixsystems.com> Closes openzfs#18342
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.
Motivation and Context
Running the full ZTS OS matrix on every push/PR consumes significant shared runner resources. Forks that only need a subset of OS targets currently have no way to restrict this without modifying the workflow file directly, which creates merge conflicts with upstream.
Description
Add support for a
ZTS_OS_OVERRIDErepository variable that, when set (e.g.["debian13"]), overrides the default OS selection for ZTS runs. If the variable is unset or not a valid JSON array, the existing ci_type-based selection is used unchanged. Thespecific_osworkflow_dispatch input still takes precedence for manual runs.How Has This Been Tested?
Set
ZTS_OS_OVERRIDEto["debian13"]in my fork's repository variables and validated that only the Debian 13 runner was triggered: https://github.com/ixhamza/zfs/actions/runs/23203448780.Types of changes
Checklist:
Signed-off-by.