feat(ci): preliminary AI analysis of testrun failures - #3460
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds CI support for preliminary AI-assisted analysis of failed regression test runs, preserving uncompressed failure artifacts so they can be inspected before upload and mail notification.
Changes:
- Adds a Claude analysis step to the reusable regression workflow and includes its output in artifacts/mail.
- Keeps
allure-results/after archiving and creates alatest_artifactssymlink. - Passes the Claude OAuth token through regression and nightly workflow callers.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
runner/save_artifacts.sh |
Creates latest_artifacts symlink to the timestamped artifacts directory. |
runner/create_results.sh |
Preserves allure-results/ after creating the archive. |
.github/workflows/regression.yaml |
Passes Claude token to reusable regression workflow. |
.github/workflows/regression-dbsync.yaml |
Passes Claude token to db-sync regression workflow. |
.github/workflows/regression_reusable.yaml |
Adds Claude failure analysis, uploads output, and includes it in failure emails. |
.github/workflows/nightly.yaml |
Passes Claude token to nightly regression workflow. |
.github/workflows/nightly_pv11.yaml |
Passes Claude token to PV11 nightly workflow. |
.github/workflows/nightly_dbsync.yaml |
Passes Claude token to db-sync nightly workflow. |
.github/workflows/nightly_cli.yaml |
Passes Claude token to CLI nightly workflow. |
Comments suppressed due to low confidence (2)
.github/workflows/regression_reusable.yaml:161
- This step has the same implicit
success()guard problem: once the test step has failed, the read step is skipped, soFAILURE_ANALYSISis never populated for the mail body even if the analysis file exists. Include an explicit failure-tolerant status check here, matching the later upload/mail steps.
if: steps.testing-step.outcome == 'failure'
.github/workflows/regression_reusable.yaml:168
- This writes AI-generated Markdown to
$GITHUB_ENVwith a fixed delimiter. If the analysis (or quoted test output) contains__EOF_ANALYSIS__on its own line, the env command is terminated early and the remaining lines can be parsed as separate environment assignments or make the step fail. Use a delimiter that cannot appear in the content, or pass the file content to the mail step without re-encoding it through$GITHUB_ENV.
echo 'FAILURE_ANALYSIS<<__EOF_ANALYSIS__'
cat failure_analysis.md
echo '__EOF_ANALYSIS__'
} >> "$GITHUB_ENV"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mkoura
force-pushed
the
prelim_ai_failure_analysis
branch
3 times, most recently
from
May 14, 2026 16:21
4432a7e to
c281431
Compare
Add a regression-workflow step that, on testrun failure, invokes anthropics/claude-code-base-action against the still-uncompressed allure-results/, latest_artifacts/ symlink, errors_all.log and friends, producing failure_analysis.md. The analysis is uploaded with testrun files and inlined into the failure mail body. To keep originals available without untarring, save_artifacts.sh now creates a latest_artifacts symlink to the renamed artifacts_<timestamp>/ dir, and create_results.sh no longer wipes allure-results/ after archiving.
mkoura
force-pushed
the
prelim_ai_failure_analysis
branch
from
May 15, 2026 08:40
c281431 to
a398d4f
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.
Add a regression-workflow step that, on testrun failure, invokes anthropics/claude-code-base-action against the still-uncompressed allure-results/, latest_artifacts/ symlink, errors_all.log and friends, producing failure_analysis.md. The analysis is uploaded with testrun files and inlined into the failure mail body.
To keep originals available without untarring, save_artifacts.sh now creates a latest_artifacts symlink to the renamed artifacts_/ dir, and create_results.sh no longer wipes allure-results/ after archiving.