Skip to content

fix(workflows): refresh PR checks after E2E label removal - #463

Open
Jared Holgate (jaredfholgate) wants to merge 2 commits into
mainfrom
jaredfholgate-e2e-label-reruns
Open

Jared Holgate (jaredfholgate) wants to merge 2 commits into
mainfrom
jaredfholgate-e2e-label-reruns

Conversation

@jaredfholgate

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: e73f9c62d2b92b2035129eb295e44a7b728d24ee

Dimension Assessment Rationale
Change confidence 8/10 ↑ All 575 offline workflow unit tests passed; final reporting and Terraform pin checks passed.
↑ Full-workflow reruns retain exact PR/head/base matching and recheck all active duplicates.
↓ Live GitHub check supersession was not exercised; workflow dispatch and Azure/E2E execution were intentionally excluded.
Diagnosis confidence 9.5/10 ↑ Shared action explicitly returned label-removed without rerunning; reporter explicitly failed missing authorization.
↑ Regression cases now cover removal, required/all transitions, and stale event feedback.
Evidence fit 9/10 ↑ Reported run targets the shared label-rerun workflow; example consumer pins this implementation and retains failed E2E/report jobs.
↓ Example PR is now closed; no live reproduction was attempted.

Summary

  • Treat removal of the final E2E label as a full PR-check rerun state, retaining live-head/base/workflow matching, waiting for active runs, and rejecting active duplicates during final verification.
  • Let successful non-E2E checks pass while deployment tests are explicitly deferred. Selected required/optional E2E failures still fail reporting. Refresh sticky feedback using actual run selection rather than the original event label snapshot.
  • Pin Terraform's shared reporter to the fixed implementation and update contributor documentation. No module interfaces, provider bindings, or state behavior changed.

Validation

  • .\build.ps1 test -TestGroup Workflows: 575 passed.
  • Focused rerun/reporting/action-runner cases: 127 passed after final feedback assertions.
  • Focused Terraform workflow/routing cases: 56 passed after updating the reporter pin.
  • Covers required/all additions, final-label removal, relabeling, stale completed runs, active duplicates, head changes, missing matches, and stale-feedback refresh in both ecosystems.
  • No workflows dispatched, no Azure/E2E tests executed, no merges or releases.

Rollout boundary

Existing consumers remain pinned. Terraform managed callers in Azure/azure-verified-modules-managed-files and Bicep callers in Azure/bicep-registry-modules must adopt this Tools revision before the behavior changes there. Those production/default-branch pins and existing module runs were not changed. Rerunning an existing run retains its original workflow revision; a pin rollout needs a fresh PR-check run before label reruns can use the fix.

Evidence: Azure/terraform-azurerm-avm-res-network-localnetworkgateway#144, label rerun, failed PR check.

Evaluate deferred E2E as non-E2E validation and refresh feedback from the run selection. Preserve exact run matching and reject active duplicates during final verification.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Repository test results

    8 files  ±0    423 suites  ±0   12m 43s ⏱️ + 2m 58s
2 005 tests ±0  2 003 ✅ ±0  2 💤 ±0  0 ❌ ±0 
2 104 runs  ±0  2 102 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit e73f9c6. ± Comparison against base commit adf4f31.

This pull request removes 58 and adds 56 tests. Note that renamed tests count towards both.
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("6844498","wrong Tools repository","Azure/not-azure-verified-modules-tools",null,"pr-check",null,"1234")
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("6844498","wrong Tools workflow","Azure/azure-verified-modules-tools",null,"pr-check","other.yml","1234")
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("6844498","wrong environment","Azure/azure-verified-modules-tools",null,"untrusted",null,"1234")
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("6844498","wrong repository","Azure/azure-verified-modules-tools",null,"pr-check",null,"9876")
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("999","wrong owner","Azure/azure-verified-modules-tools",null,"pr-check",null,"1234")
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression(null,"broad expression",null,"claims['sub'] matches '*'",null,null,null)
Configured repository-sync bot identity.rejects missing or invalid configuration before it can be used("*AVM_APP_BOT_LOGIN*","12345","configured
Error: Apply interrupted")
Get-AvmPrReviewerRoutingEligibility.rejects substituted and ambiguous team permission responses("Azure/other",True)
Get-AvmPrReviewerRoutingEligibility.rejects substituted and ambiguous team permission responses("Azure/terraform-azure-avm-res-storage-storageaccount","true")
…
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("broad expression",null,null,"claims['sub'] matches '*'",null,null,null)
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("wrong Tools repository","pr-check","1234",null,"Azure/not-azure-verified-modules-tools",null,"6844498")
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("wrong Tools workflow","pr-check","1234",null,"Azure/azure-verified-modules-tools","other.yml","6844498")
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("wrong environment","untrusted","1234",null,"Azure/azure-verified-modules-tools",null,"6844498")
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("wrong owner","pr-check","1234",null,"Azure/azure-verified-modules-tools",null,"999")
Candidate plan and output safety.rejects a broadened or differently scoped flexible federation expression("wrong repository","pr-check","9876",null,"Azure/azure-verified-modules-tools",null,"6844498")
Configured repository-sync bot identity.rejects missing or invalid configuration before it can be used("*AVM_APP_BOT_LOGIN*","12345","configured
bot[bot]")
Get-AvmPrReviewerRoutingEligibility.rejects substituted and ambiguous team permission responses("true","Azure/terraform-azure-avm-res-storage-storageaccount")
Get-AvmPrReviewerRoutingEligibility.rejects substituted and ambiguous team permission responses(True,"Azure/other")
Get-AvmPrReviewerRoutingEligibility.rejects substituted and ambiguous team permission responses(null,"Azure/terraform-azure-avm-res-storage-storageaccount")
…

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Workflow test results

  1 files  ± 0  134 suites  +4   41s ⏱️ +8s
569 tests +14  569 ✅ +14  0 💤 ±0  0 ❌ ±0 
594 runs  +14  594 ✅ +14  0 💤 ±0  0 ❌ ±0 

Results for commit e73f9c6. ± Comparison against base commit adf4f31.

This pull request removes 23 and adds 37 tests. Note that renamed tests count towards both.
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors(".*Failed to list PR-check runs.*runs unavailable.*", $fixture.apiErrorStage = 'runs' ,"run API error")
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors(".*Failed to list jobs.*jobs unavailable.*", $fixture.apiErrorStage = 'jobs' ,"jobs API error")
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors(".*Failed to read current labels.*labels unavailable.*", $fixture.apiErrorStage = 'labels' ,"label API error")
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors(".*Failed to read observer run.*observer unavailable.*", $fixture.apiErrorStage = 'observer' ,"observer API error")
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors(".*Failed to rerun PR-check run.*rerun denied.*", $fixture.apiErrorStage = 'rerun' ,"rerun API error")
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors(".*No PR-check run matched.*", $fixture.noRuns = $true ,"missing run")
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors(".*base changed.*", $fixture.baseChangeAt = 1 ,"base change")
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors(".*from a fork.*", $fixture.fork = $true ,"fork")
PR-check label rerun action.fails closed for untrusted observer metadata(".*came from.*not.*observer.*", $fixture.observer.path = '.github/workflows/other.yml' ,"path")
PR-check label rerun action.fails closed for untrusted observer metadata(".*did not complete successfully.*", $fixture.observer.conclusion = 'failure' ,"conclusion")
…
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors("base change",".*base changed.*", $fixture.baseChangeAt = 1 )
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors("fork",".*from a fork.*", $fixture.fork = $true )
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors("jobs API error",".*Failed to list jobs.*jobs unavailable.*", $fixture.apiErrorStage = 'jobs' )
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors("label API error",".*Failed to read current labels.*labels unavailable.*", $fixture.apiErrorStage = 'labels' )
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors("missing run without labels",".*No PR-check run matched.*", $fixture.noRuns = $true; $fixture.labels = @() )
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors("missing run",".*No PR-check run matched.*", $fixture.noRuns = $true )
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors("observer API error",".*Failed to read observer run.*observer unavailable.*", $fixture.apiErrorStage = 'observer' )
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors("rerun API error",".*Failed to rerun PR-check run.*rerun denied.*", $fixture.apiErrorStage = 'rerun' )
PR-check label rerun action.fails closed for live forks, base changes, missing runs, and API errors("run API error",".*Failed to list PR-check runs.*runs unavailable.*", $fixture.apiErrorStage = 'runs' )
PR-check label rerun action.fails closed for untrusted observer metadata("conclusion",".*did not complete successfully.*", $fixture.observer.conclusion = 'failure' )
…

@jaredfholgate
Jared Holgate (jaredfholgate) marked this pull request as ready for review December 4, 2026 10:38
@jaredfholgate
Jared Holgate (jaredfholgate) requested a review from a team December 4, 2026 10:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant