fix: run Test Report after Scheduled Build#358
Merged
Conversation
The Test Report workflow triggers on workflow_run but only listened for 'Pull Request' and 'Build and Release'. The scheduled keepalive runs under the 'Scheduled Build' workflow (calling build-test.yml as a reusable workflow), so workflow_run never fired and test results were not reported even though the test-results-* artifacts were uploaded. Add 'Scheduled Build' to the workflow_run.workflows list. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Problem
After PR #345 moved test reporting to a
workflow_run-triggeredtest-report.yml, the report runs for PRs and releases but not for scheduled builds. Example: run 27900481586 showsScheduled Buildcompleting and uploadingtest-results-*artifacts, butTest Reportnever runs.Root cause
test-report.ymllistened only for['Pull Request', 'Build and Release']. The scheduled keepalive's top-level workflow is namedScheduled Build(it callsbuild-test.ymlas a reusable workflow, so theworkflow_runmatch is the caller name, notBuild and Test). SinceScheduled Buildwasn't listed, the trigger never fired — even though the artifacts were produced correctly.Fix
Add
'Scheduled Build'to theworkflow_run.workflowsarray.Verification note
workflow_runreads its definition from the default branch, so this only takes effect after merge tomain. Confirm via the next 06:00 UTC scheduled run or a manualScheduled Builddispatch.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com