-
Notifications
You must be signed in to change notification settings - Fork 648
[CI] Fail tests validation run if vscode extensions tests fail #9691
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5f9af30
[CI] Use a simplified condition to check the results of the various j…
radical c851aee
fix condition
radical ea4de98
Handle skipped too. This can happen when a transitive dependency has a
radical 4d81bf6
cleanup
radical 211beea
Update .github/workflows/tests.yml
radical 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 |
---|---|---|
|
@@ -178,7 +178,7 @@ jobs: | |
requiresTestSdk: true | ||
|
||
endtoend_tests: | ||
name: EndToEnd ${{ matrix.os }} | ||
name: EndToEnd Linux | ||
uses: ./.github/workflows/run-tests.yml | ||
needs: build_packages | ||
with: | ||
|
@@ -213,22 +213,25 @@ jobs: | |
with: | ||
name: aspire-extension | ||
path: extension/out/aspire-extension.vsix | ||
|
||
results: # This job is used for branch protection. It ensures all the above tests passed | ||
if: ${{ always() && github.repository_owner == 'dotnet' }} | ||
runs-on: ubuntu-latest | ||
name: Final Results | ||
needs: [ integrations_test_lin, integrations_test_win, integrations_test_macos, templates_test_lin, templates_test_win, templates_test_macos, endtoend_tests, extension_tests_win ] | ||
needs: [ | ||
endtoend_tests, | ||
extension_tests_win, | ||
integrations_test_lin, | ||
integrations_test_macos, | ||
integrations_test_win, | ||
templates_test_lin, | ||
templates_test_macos, | ||
templates_test_win | ||
] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
||
# get all the test-job-result* artifacts into a single directory | ||
- uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9 | ||
with: | ||
pattern: test-job-result-* | ||
merge-multiple: true | ||
path: test-job-result | ||
|
||
- uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9 | ||
with: | ||
pattern: logs-*-ubuntu-latest | ||
|
@@ -266,7 +269,10 @@ jobs: | |
${{ github.workspace }}/testresults | ||
--combined | ||
|
||
# return success if zero result-failed-* files are found | ||
- name: Compute result | ||
- name: Fail if any dependency failed | ||
# 'skipped' can be when a transitive dependency fails and the dependent job gets 'skipped'. | ||
# For example, one of setup_* jobs failing and the Integration test jobs getting 'skipped' | ||
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. Do we have a list of all potential values for result? Wondering if it would be best to compare if result does not equal success |
||
if: ${{ always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')) }} | ||
radical marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run: | | ||
[ 0 -eq $(find test-job-result -name 'result-failed-*' | wc -l) ] | ||
echo "One or more dependent jobs failed." | ||
exit 1 |
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.
Assuming in the future we plan on adding the windows and osx matrix and then we'll revert this back?