Skip to content

fix: skip POSIX outcome API fixtures on Windows - #71247

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan-literate-enigma
Oct 23, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan-literate-enigma

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Summary

Windows CI fails because the outcome API test fixture installs a POSIX shell script as gh, which Windows cannot execute. Skip tests using this fixture on Windows, matching the existing convention for shell-backed CLI mocks.

Platform-independent cache tests remain enabled on Windows. Production behavior is unchanged.

Validation

  • Focused outcome API and earlier failing CGO tests passed.
  • Outcome API tests passed with the integration build tag.
  • make build, make fmt, and make agent-report-progress passed, including impacted tests and workflow drift checks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review October 22, 2026 23:44
Copilot AI max review requested due to automatic review settings October 22, 2026 23:44
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

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.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · opus55 · ~12 AIC · ⌖ ~37 AIC · ◇ ~15 AIC · ⊞ 1.9K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · sonnet50 · ~14 AIC · ⌖ ~16 AIC · ◇ ~7 AIC · ⊞ 12.7K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail 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.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · gpt56 · ~6 AIC · ⌖ ~6 AIC · ⊞ 14.8K · ◷

Generated by Ponytail Reviewer for #71247

@github-actions github-actions Bot 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.

Skills-Based Review 🧠

Small, surgical fix — approving.

📋 Analysis

This change adds a runtime.GOOS == "windows" skip guard to installOutcomeAPIFixture, with the exact same skip message already used in run_workflow_validation_test.go. Applying /diagnosing-bugs and /codebase-design lenses:

  • Root cause matches symptom: the fixture writes a POSIX #!/bin/sh script as gh, which Windows cannot execute — skipping on Windows is the correct, minimal fix rather than attempting to fake cross-platform shell execution.
  • Consistent with existing convention: identical skip pattern and message already established elsewhere in the test suite, so no new abstraction or vocabulary is introduced.
  • Scope is appropriately narrow: only the fixture-installing helper is skipped; the PR description confirms platform-independent cache tests remain enabled on Windows, preserving coverage where possible.
  • No regression test is needed here since this is a CI-environment compatibility fix, not a logic bug — the "regression" being prevented is a false failure, not behavior.

Nothing actionable found; this is a model example of fixing a flaky/broken-on-Windows test the same way prior precedent did.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · ~13 AIC · ⌖ ~15 AIC · ⊞ 10.2K
Comment /matt to run again

@github-actions github-actions Bot 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.

Review summary

No blocking correctness issues found in the changed test-only platform guard. The Windows skip is consistent with the POSIX shell fixture limitation; cache-only tests remain available on Windows. Static review only; no tests were run by this review.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

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.

🟢 Approval recommended

The minimal, test-only guard targets the unsupported fixture without affecting portable tests or production code.

No open issues 🎉

What changed in this PR

Fixes Windows CI failures by skipping outcome API tests that depend on a POSIX shell-backed gh fixture.

Changes:

  • Adds a Windows-only skip in the shared fixture helper.
  • Leaves platform-independent cache tests enabled and production behavior unchanged.
File Description
pkg/​cli/​outcome_api_cache_test.go Imports runtime and skips the unsupported shell fixture on Windows.

Review effort: Max

@pelikhan
pelikhan merged commit c7f7918 into main Oct 23, 2026
122 of 127 checks passed
@pelikhan
pelikhan deleted the pelikhan-literate-enigma branch October 23, 2026 00:14
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.93.2

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.

2 participants