Skip to content

[avenger] Stub engine release lookups in workflow integration tests - #80525

Merged
pelikhan merged 1 commit into
mainfrom
avenger/integration-testmain-release-lookup-6554f628511b49df
Nov 23, 2026
Merged

pelikhan merged 1 commit into
mainfrom
avenger/integration-testmain-release-lookup-6554f628511b49df

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

CI failure

Integration: Workflow Compiler (run 45249829683) failed in TestCompileDefaultModelRouting_ProviderMatrix/*/routed (require.Zero(compiled.warnings)).

Root cause

The !integration TestMain stubs engine release-metadata lookups, but the integration build tag had no equivalent. Compiles therefore tried a live lookup, failed in the sandbox, and emitted Could not validate engine.cooldown ..., which counted as a warning (introduced by #80476).

Fix

Add pkg/workflow/test_main_integration_test.go ((go/redacted):build integration) with the same lookup stub.

Validation

go test -tags integration -parallel=8 -run TestCompileDefaultModelRouting|TestEngineReleaseCooldown|TestCompileEngineReleaseCooldown ./pkg/workflow passes; go vet -tags integration and gofmt are clean. Broad suites were not run per the runtime budget.

Generated by 🦸 Avenger · copilot · routed: sonnet55 high · ~38 AIC · ⌖ ~2 AIC · ⊞ 4.6K · history

  • expires on Nov 25, 2026, 12:38 PM UTC-08:00

@pelikhan
pelikhan marked this pull request as ready for review November 23, 2026 20:39
Copilot AI adaptive review requested due to automatic review settings November 23, 2026 20:39
@pelikhan
pelikhan merged commit 95949e9 into main Nov 23, 2026
14 checks passed
@pelikhan
pelikhan deleted the avenger/integration-testmain-release-lookup-6554f628511b49df branch November 23, 2026 20:39
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

The [aw] No-Op Runs tracker omits agent messages. The category uses structured run status, not interpretation of agent prose.

No-op message

PR #80525 is already merged; per review policy, no specification review or publication was performed.

Generated by PR Specification Reviewer for #80525 · copilot · gpt56 · ~1 AIC · ⌖ ~2 AIC · ⊞ 1.8K · history

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~2 AIC · ⊞ 7.1K · history

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Ponytail Reviewer completed successfully!

Generated by Ponytail Reviewer for #80525 · codex · routed: gpt61 medium · ~5 AIC · ⌖ ~1 AIC · ⊞ 176 · history

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

The [aw] No-Op Runs tracker omits agent messages. The category uses structured run status, not interpretation of agent prose.

No-op message

No action needed: the only changed test file, pkg/workflow/test_main_integration_test.go, is a new integration-tagged TestMain that stubs engineReleaseTimeLookup. It adds no behavioral test cases, and it has the required (go/redacted):build integration tag, no mock-library usage, and no goleak entries. Its sibling test_main_test.go is !integration, so the two cannot both compile. Per the act-vs-noop rubric, no report is posted.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.4K · history

Copilot stopped reviewing on behalf of pelikhan due to an error November 23, 2026 20:41
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

The [aw] No-Op Runs tracker omits agent messages. The category uses structured run status, not interpretation of agent prose.

No-op message

Completed PR #80525 review: submitted one inline finding and a REQUEST_CHANGES review; recorded the review-history outcome.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.7K · history

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The integration test harness discards the result of m.Run(), allowing failed assertions to produce a successful process exit and potentially mask CI failures.

1 open issue
What changed in this PR

Adds an integration-specific test entry point that stubs engine release-metadata lookups, keeping workflow compiler integration tests deterministic and independent of live network access.

Changes:

  • Adds an integration-tagged TestMain for deterministic release metadata behavior.
  • Preserves injected HTTP clients for cooldown-specific tests.
  • Prevents unrelated integration compiles from emitting release metadata warnings.
File Description
pkg/​workflow/​test_main_integration_test.go Adds integration-test setup that stubs engine release-metadata lookups while preserving explicitly injected HTTP clients.

Review effort: Lite (adaptive)

Comment on lines +5 to +19
import (
"testing"
"time"
)

// TestMain keeps integration compiler tests independent of live release
// metadata, matching the unit-test TestMain. Cooldown tests inject HTTP responses.
func TestMain(m *testing.M) {
engineReleaseTimeLookup = func(c *Compiler, endpoint, packageName, version string) (time.Time, error) {
if c.engineReleaseClient != nil {
return c.fetchEngineReleaseTime(endpoint, packageName, version)
}
return time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC), nil
}
m.Run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants