CI: publish test results as artifacts and GitHub Actions step summaries - #1348
Open
ACSimon33 wants to merge 5 commits into
Open
CI: publish test results as artifacts and GitHub Actions step summaries#1348ACSimon33 wants to merge 5 commits into
ACSimon33 wants to merge 5 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request improves CI test observability in GitHub Actions by generating a GitHub-flavored Markdown summary from LAPACK test outputs and preserving raw test artifacts for later inspection.
Changes:
- Add a
--markdown PATHoption tolapack_testing.pyto emit a GitHub Actions-friendly Markdown report (including collapsible failure details with size caps). - Upload
TESTING/testing_results.txt(and intended JUnit XML) as workflow artifacts from the CMake test jobs. - Append the generated Markdown report to
$GITHUB_STEP_SUMMARY, linking to the uploaded artifact.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
lapack_testing.py |
Adds Markdown report generation and supporting helpers (formatting, truncation/limits, failure rendering). |
.github/workflows/cmake.yml |
Uploads test artifacts and writes a per-job GitHub Actions step summary using the new Markdown report. |
Suppressed comments (1)
.github/workflows/cmake.yml:211
- Same issue as the other job: after
cd build,python3 lapack_testing.pywon’t find the script (it lives at the repo root), sosummary.md/reports may not be produced. This job also uploadsbuild/lapack_testing_junit.xmlbut doesn’t generate it unless--junit-xmlis passed.
cd build 2>/dev/null || exit 0
python3 lapack_testing.py -s -d TESTING --merge-apis --markdown summary.md || true
if [ -f summary.md ]; then
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary tables first, then one entry per failing output file with its notable lines collapsed; sized in UTF-8 bytes to stay under GitHub's 1 MiB step-summary limit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
testing_results.txt and the JUnit XML are kept for 14 days even when the tests fail; the step summary links to the artifact. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A nonzero error count whose percentage would display as 0.00% is shown as 0.01% instead, so it cannot read as a zero error rate. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Shares error_percent with the Markdown report, including the 0.01% floor for nonzero counts; the error columns are rebalanced by one character so (100.00%) still fits under the rule. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ACSimon33
force-pushed
the
test_summary_gh_actions
branch
from
August 2, 2026 17:03
f2e304f to
0a70a8c
Compare
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.
Summary
lapack_testing.pygains a--markdown PATHoption (alongside the existing--junit-xml) that writes a GitHub-flavored Markdown report of the test results.test-install-release,test-extended-api-only) now uploadTESTING/testing_results.txtandlapack_testing_junit.xmlas a workflow artifact and render the Markdown report on each job's summary page ($GITHUB_STEP_SUMMARY), with a link to the artifact.GitHub Actions has no native JUnit ingestion (unlike GitLab, which the
--junit-xmloption targets), so today the only way to inspect a CI test failure is to scroll through the rawctestlog, and the detailedtesting_results.txtproduced by every run is discarded when the runner is torn down. With this change each test job shows an at-a-glance verdict, the summary tables, and every failing test set directly on the run page — and keeps the full output for two weeks, which is needed most on exactly the runs that failed.