[CI] Fix chronic timeouts in Jenkins Code coverage stage#2382
Merged
bogdan-petkovic merged 1 commit intoMay 22, 2026
Conversation
Signed-off-by: bogdan-petkovic <bpetkovi@amd.com>
3e56161
into
bpetkovi/jenkins-codecov-exclude-test-dirs
4 of 11 checks passed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
The Jenkins
Code coveragestage inmlir/utils/jenkins/Jenkinsfilehas been chronically failing on PR builds and merges todevelop, but the failure has been invisible for a long time:ninja check-rocmlir(~60 minutes on the coverage matrix codepaths) and only flushes at the very end.llvm-profdata merge -sparseoperates on ~125 GB of*.profrawand runs silently for several minutes.llvm-profdata mergefinishes →coverage_<cpath>.lcovis never produced → the Codecov uploader never runs →archiveArtifacts ... onlyIfSuccessful: trueskips the report/lcov/html artifacts.catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE')plus an innertry { ... } catch (e) { echo "NOTE: Code coverage stage had an error or timeout: ..." }swallow theFlowInterruptedException→ the build is green and the matrix bodies show ✓ even though no LCOV reached codecov.io.Concrete evidence collected while investigating https://github.com/ROCm/rocMLIR/pull/ (the test-exclusion change):
The same
FlowInterruptedExceptionpattern was confirmed on a recent merge todevelop(build from 2026-05-16), so codecov.io has been displaying a stale snapshot from whichever older build last produced a successful upload. The biweekly Teams report (.github/workflows/codecov-report.yml) readstotals.coveragefrom that stale data.Technical Details
Single-line change inside the
bodystage ofcollectCoverageData(...)orchestration inmlir/utils/jenkins/Jenkinsfile:llvm-profdata merge's silent runtime.ninja check-rocmlir+ several minutes forllvm-profdata mergeover ~125 GB + threellvm-covinvocations (report,export,show) + uploader download and upload, with comfortable margin.activity:was dropped, so this isn't reintroduced inadvertently in a future cleanup.Test Plan
Test Result
Submission Checklist