-
Notifications
You must be signed in to change notification settings - Fork 618
[TEST] Trigger test: .buildkite/ change #3007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rashmigottipati
wants to merge
7
commits into
main
Choose a base branch
from
test-trigger-buildkite-change
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+49
−42
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2aa3c01
Simplify Transformers tests detection using Buildkite if_changed
rashmigottipati e256fe8
address review comments
rashmigottipati ea23b1b
Switch if_changed to use include/exclude attributes
rashmigottipati f43598c
Limit branch transformers tests to main branch only
rashmigottipati 7ecdb81
make the if condition also match release-* branches using Buildkite's…
rashmigottipati 4cfbb1f
Test: Change .buildkite/gpu-tests/ file (should trigger transformers …
rashmigottipati 8959147
Merge branch 'main' into test-trigger-buildkite-change
rashmigottipati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,27 +74,30 @@ steps: | |
| chmod +x .buildkite/gpu-tests/scripts/combine-coverage.sh | ||
| .buildkite/gpu-tests/scripts/combine-coverage.sh | ||
|
|
||
| - label: ":mag: Detect changes for Transformers Tests" | ||
| # Transformers tests - run on main and release branch pushes | ||
| - label: ":mag: Transformers Tests (branch)" | ||
| if: build.pull_request.id == null && (build.branch == "main" || build.branch =~ /^release-/) | ||
| agents: | ||
| queue: RedHat-ModelOpt-Util | ||
| command: | | ||
| if [ "$${BUILDKITE_PULL_REQUEST}" = "false" ]; then | ||
| echo "Push to branch — uploading transformers tests" | ||
| buildkite-agent pipeline upload .buildkite/gpu-tests/transformers-tests-L4.yml | ||
| else | ||
| git fetch --unshallow 2>/dev/null || true | ||
| git fetch origin "$${BUILDKITE_PULL_REQUEST_BASE_BRANCH}" | ||
| DIFF_FILES=$$(git diff --name-only "origin/$${BUILDKITE_PULL_REQUEST_BASE_BRANCH}...HEAD") | ||
| CHANGED=$$(echo "$${DIFF_FILES}" \ | ||
| | grep -E '^(src/|tests/|setup\.py$$|MANIFEST\.in$$|\.buildkite/gpu-tests/transformers-tests-|\.buildkite/gpu-tests/scripts/run-tests\.sh$$)' \ | ||
| | grep -vE '^tests/(e2e|lmeval|examples)/' \ | ||
| | grep -vE '\.md$$' \ | ||
| || true) | ||
| if [ -n "$${CHANGED}" ]; then | ||
| echo "Relevant changes detected:" | ||
| echo "$${CHANGED}" | ||
| buildkite-agent pipeline upload .buildkite/gpu-tests/transformers-tests-L4.yml | ||
| else | ||
| echo "No relevant changes — skipping transformers tests" | ||
| fi | ||
| fi | ||
| buildkite-agent pipeline upload .buildkite/gpu-tests/transformers-tests-L4.yml | ||
|
|
||
| # Transformers tests - conditional on PRs when relevant paths changed | ||
| - label: ":mag: Transformers Tests (PR)" | ||
| if: build.pull_request.id != null | ||
| agents: | ||
| queue: RedHat-ModelOpt-Util | ||
| if_changed: | ||
| include: | ||
| - "src/**" | ||
| - "tests/**" | ||
| - "setup.py" | ||
| - "MANIFEST.in" | ||
|
Comment on lines
+94
to
+95
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| - ".buildkite/gpu-tests/**" | ||
| exclude: | ||
| - "tests/e2e/**" | ||
| - "tests/lmeval/**" | ||
| - "tests/examples/**" | ||
| - "**/*.md" | ||
| command: | | ||
| buildkite-agent pipeline upload .buildkite/gpu-tests/transformers-tests-L4.yml | ||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the project uses
pyproject.tomlfor dependency management or project configuration, changes to it should also trigger the transformers tests to ensure that dependency updates or configuration changes do not break the tests.