-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Segregate Docker-dependent tests to GitHub Actions workflow #49481
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
rujche
wants to merge
18
commits into
main
Choose a base branch
from
rujche/main/update-pipeline-to-fit-network-change-for-docker-related-test
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.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
500493f
Segregate Docker-dependent tests to GitHub Actions workflow
rujche bbcbe63
Fix surefire plugin version marker for pom scanner
rujche 4305a83
Apply suggestion from @mikeharder
mikeharder 17be87a
Merge branch 'main' into rujche/main/update-pipeline-to-fit-network-c…
mikeharder 15d5972
Update workflow actions to latest major versions (checkout@v6, setup-…
Copilot 986471e
Update .github/workflows/spring-docker-tests.yml
rujche e8344ea
Merge branch 'main' into rujche/main/update-pipeline-to-fit-network-c…
rujche 867a0f2
Update maven-surefire-plugin version to 3.5.6 in spring pom.xml files
Copilot e7484cb
Disable parallel execution for Spring docker-tagged tests
Copilot acbb292
Potential fix for pull request finding
rujche 154c419
Update paths which will trigger github action
rujche 308b1a4
fix: improve spring-docker-tests workflow clarity
rujche c20b498
revert: restore broad sdk/spring paths filter
rujche eb1c3e0
revert: restore original GitHub Actions versions
rujche 4f0bb67
optimize: add maven flags to speed up spring-docker-tests workflow
rujche 1390185
optimize: add maven flags to spring docker-tagged tests step
rujche 9149e64
cleanup: remove unnecessary -DfailIfNoTests=false from test step
rujche 0c1cf4a
fix: standardize maven property flags format
rujche 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| name: Spring Docker Tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/spring-docker-tests.yml' | ||
| - 'sdk/spring/**' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| spring-docker-tests: | ||
| runs-on: ubuntu-24.04 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| distribution: temurin | ||
| java-version: '17' | ||
| cache: maven | ||
|
|
||
| - name: Verify Docker | ||
| run: | | ||
| docker version | ||
| docker info | ||
|
|
||
| - name: Build spring docker test dependencies | ||
| run: > | ||
| mvn -f sdk/spring/pom.xml | ||
| -pl spring-cloud-azure-testcontainers,spring-cloud-azure-docker-compose | ||
| -am | ||
| install | ||
| -Dcheckstyle.skip=true | ||
| -Dcodesnippet.skip=true | ||
| -Denforcer.skip=true | ||
| -Djacoco.skip=true | ||
| -Dmaven.javadoc.skip=true | ||
| -Drevapi.skip=true | ||
| -DskipTests | ||
| -Dspotbugs.skip=true | ||
| -Pdev | ||
| -T 4 | ||
| -ntp | ||
| -DfailIfNoTests=false | ||
|
|
||
| - name: Run spring docker-tagged tests | ||
| run: > | ||
| mvn -f sdk/spring/pom.xml | ||
| -pl spring-cloud-azure-testcontainers,spring-cloud-azure-docker-compose | ||
| test | ||
| -Pdocker-tests | ||
| -Dcheckstyle.skip=true | ||
| -Dcodesnippet.skip=true | ||
| -Denforcer.skip=true | ||
| -Djacoco.skip=true | ||
| -Dmaven.javadoc.skip=true | ||
| -Dspotbugs.skip=true | ||
| -T 4 | ||
| -ntp | ||
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
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
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
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
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
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
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.
Would this workflow be required check for pull requests?
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.
It's a repo level setting instead of GitHub work flow setting. Here is the detailed steps I got from Copilot:
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.
I knew it's branch policy settings. My question was that would you expect to set this workflow as required for PRs targeting the
mainbranch?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.
Yes. I don't have permission to configure the branch policy, could you please help to set it?
Uh oh!
There was an error while loading. Please reload this page.
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.
required checks are tricky, because then they need to run on every PR and give a green no-op. maybe better to keep this optional and hope people just don't merge with it failing?
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.
Not every PR, only PRs that modified related files.
What does this mean?