Skip to content

[ci] Expanding test filter options via PR label selection#3992

Merged
geomin12 merged 11 commits into
mainfrom
users/geomin12/extended-label
Mar 17, 2026
Merged

[ci] Expanding test filter options via PR label selection#3992
geomin12 merged 11 commits into
mainfrom
users/geomin12/extended-label

Conversation

@geomin12
Copy link
Copy Markdown
Contributor

@geomin12 geomin12 commented Mar 16, 2026

In order to work with test standardization, we are expanding test filters.

Changes:

PR labels for additional tests can be added (i.e. test_filter:nightly)
is_schedule now runs nightly tests
Currently, each component has different filters, so this is a CI update only, and we will update component shards / test filters accordingly once filters are ready per component

Working as test_filter:nightly is properly displayed https://github.com/ROCm/TheRock/actions/runs/22973838135?pr=3917

Fixed post-submit CI issue from #3917 and added unit tests to cover this scenario

@geomin12 geomin12 added the test_filter:quick If enabled, the PR will run quick tests label Mar 16, 2026
Copy link
Copy Markdown
Contributor

@amd-justchen amd-justchen left a comment

Choose a reason for hiding this comment

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

LGTM assuming CI passes! Nice unit test.

ScottTodd added a commit to ScottTodd/TheRock that referenced this pull request Mar 16, 2026
Add test_type determination to decide_jobs: quick (default), comprehensive
(schedule), full (submodule changes or test labels), with test_filter: PR
label override. Adopts the test type names from PR ROCm#3992.

Extract GitContext dataclass to separate git-derived data from CIInputs.
configure() is now fully pure — takes CIInputs + GitContext, no git calls.
main() is the only place that builds GitContext.from_repo(). Tests construct
GitContext directly.

Rename parameters to ci_inputs/git_context throughout for clarity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@geomin12
Copy link
Copy Markdown
Contributor Author

Landing as case from #3917 is fixed

@geomin12 geomin12 merged commit 4060c40 into main Mar 17, 2026
57 checks passed
@geomin12 geomin12 deleted the users/geomin12/extended-label branch March 17, 2026 01:00
ScottTodd added a commit to ScottTodd/TheRock that referenced this pull request Mar 18, 2026
Add test_type determination to decide_jobs: quick (default), comprehensive
(schedule), full (submodule changes or test labels), with test_filter: PR
label override. Adopts the test type names from PR ROCm#3992.

Extract GitContext dataclass to separate git-derived data from CIInputs.
configure() is now fully pure — takes CIInputs + GitContext, no git calls.
main() is the only place that builds GitContext.from_repo(). Tests construct
GitContext directly.

Rename parameters to ci_inputs/git_context throughout for clarity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dileepr1 added a commit that referenced this pull request Mar 20, 2026
## Motivation
#3992 adds support for the test categories for test filtering.
Use them directly for selecting the test groups.

## Technical Details

Use the new categories - quick, standard, comprehensive and full - from
TEST_TYPE variable instead of smoke, nightly etc.

## Test Plan

Make sure the tests run as usual

Co-authored-by: Dileep Ravindranathan <dileep@dell-rack-13.amd.com>
chiranjeevipattigidi pushed a commit that referenced this pull request Mar 23, 2026
## Motivation
#3992 adds support for the test categories for test filtering.
Use them directly for selecting the test groups.

## Technical Details

Use the new categories - quick, standard, comprehensive and full - from
TEST_TYPE variable instead of smoke, nightly etc.

## Test Plan

Make sure the tests run as usual

Co-authored-by: Dileep Ravindranathan <dileep@dell-rack-13.amd.com>
ScottTodd added a commit to ScottTodd/TheRock that referenced this pull request Mar 23, 2026
Add test_type determination to decide_jobs: quick (default), comprehensive
(schedule), full (submodule changes or test labels), with test_filter: PR
label override. Adopts the test type names from PR ROCm#3992.

Extract GitContext dataclass to separate git-derived data from CIInputs.
configure() is now fully pure — takes CIInputs + GitContext, no git calls.
main() is the only place that builds GitContext.from_repo(). Tests construct
GitContext directly.

Rename parameters to ci_inputs/git_context throughout for clarity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test_filter:quick If enabled, the PR will run quick tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants