CodeCov uploading sanity pass

- Upgrade action to v4.
- Add ReleaseNotes check to fail job if it doesn't detect the `codecov/project` check on the run in 15 minutes.
- Mark Upload Codecov Job as flaky.
This commit is contained in:
Jordan Dominion
2024-08-18 12:49:04 -04:00
parent d82b5b5bd1
commit ec71b37a1d
3 changed files with 40 additions and 5 deletions
+14 -3
View File
@@ -41,7 +41,6 @@ env:
TGS_TEST_GITHUB_TOKEN: ${{ secrets.LIVE_TESTS_TOKEN }}
TGS_RELEASE_NOTES_TOKEN: ${{ secrets.DEV_PUSH_TOKEN }}
PACKAGING_PRIVATE_KEY_PASSPHRASE: ${{ secrets.PACKAGING_PRIVATE_KEY_PASSPHRASE }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
concurrency:
group: "ci-${{ (github.event_name != 'push' && github.event_name != 'schedule' && github.event.inputs.pull_request_number) || github.run_id }}-${{ github.event_name }}"
@@ -967,7 +966,7 @@ jobs:
upload-code-coverage:
name: Upload Code Coverage
needs: [ linux-unit-tests, linux-integration-tests, windows-unit-tests, windows-integration-tests ]
needs: [ linux-unit-tests, linux-integration-tests, windows-unit-tests, windows-integration-tests, build-releasenotes ]
runs-on: ubuntu-latest
steps:
- name: Checkout (Branch)
@@ -1214,11 +1213,23 @@ jobs:
name: windows-integration-test-coverage-Release-Advanced-Sqlite
path: ./code_coverage/integration_tests/windows_integration_tests_release_system_sqlite
- name: Retrieve ReleaseNotes Binaries
uses: actions/download-artifact@v4
with:
name: release_notes_bins
path: release_notes_bins
- name: Upload Coverage to CodeCov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
directory: ./code_coverage
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
handle_no_reports_found: true
- name: Wait for CodeCov Status
run: dotnet release_notes_bins/Tgstation.Server.ReleaseNotes --wait-codecov ${{ github.run_id }}
build-deb:
name: Build .deb Package # Can't do i386 due to https://github.com/dotnet/core/issues/4595
+2 -1
View File
@@ -3,7 +3,8 @@
const CONSIDERED_JOBS = [
"Windows Live Tests",
"Linux Live Tests",
"Build .deb Package"
"Build .deb Package",
"Upload Code Coverage"
];
async function getFailedJobsForRun(github, context, workflowRunId, runAttempt) {