Skip to content

Publish a Windows 386 extension binary - #74369

Merged
pelikhan merged 2 commits into
mainfrom
copilot/add-support-windows-386
Nov 3, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/add-support-windows-386

Conversation

Copilot AI commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

gh extension install could not install on environments identified as windows-386 because releases lacked a matching binary.

  • Release assets: Add windows-386 to the release build platform list, producing dist/windows-386.exe.
  • Regression coverage: Check that the release target is listed and that the Windows 386 binary compiles.

Copilot AI linked an issue Nov 3, 2026 that may be closed by this pull request
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Request support for windows-386 architecture in extension Publish a Windows 386 extension binary Nov 3, 2026
Copilot AI requested a review from pelikhan November 3, 2026 04:00
@pelikhan
pelikhan marked this pull request as ready for review November 3, 2026 05:12
Copilot AI adaptive review requested due to automatic review settings November 3, 2026 05:12
@pelikhan

pelikhan commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

@copilot check install.sh supports it

@github-actions

github-actions Bot commented Nov 3, 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 🏗️ · routed: gpt56 max · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 3, 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 Nov 3, 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 Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Generated by Ponytail Reviewer for #74369

@github-actions

github-actions Bot commented Nov 3, 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 · haiku45 · ~7 AIC · ⌖ ~11 AIC · ⊞ 9.4K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-03T05:15:19Z
review_event: COMMENT
top_themes: test assertion scope; release-path coverage
files_reviewed: scripts/build-release.sh, scripts/test-build-release.sh, .changeset/add-windows-386-release-binary.md
comment_count: 2

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.7K · ◷
Comment /review 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.

Comment

The change is functionally small, but the added regression test does not exercise the release path and its configuration check is too loose; see the inline comments.

Highlights
  • The grep assertion can pass without windows-386 in the platform array.
  • The direct cross-compile does not verify build-release.sh produces the Windows asset.

These are non-blocking test-quality issues, but they weaken confidence in the claimed release coverage.

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

# Test 4: Build Windows 386 binary for release
echo ""
echo "Test 4: Verify Windows 386 is included in release builds"
if ! grep -Eq '^[[:space:]]+windows-386$' "$PROJECT_ROOT/scripts/build-release.sh"; then

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.

This assertion can pass even after windows-386 is removed from the platforms array, because it only greps for a matching line anywhere in the file and therefore does not prove the release target is configured.

💡 Why this matters and how to fix it

Extract the platforms=(...) block and assert the entry occurs inside that block, or exercise the release script with a target override and verify its output. That keeps this regression test tied to the configuration it is meant to protect.

exit 1
fi

CGO_ENABLED=0 GOOS=windows GOARCH=386 go build \

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.

This compiles windows/386 directly into TEST_DIR instead of running build-release.sh, so it never verifies the release loop creates dist/windows-386.exe with the expected .exe naming and checksum flow.

💡 Why this matters and how to fix it

The test can pass while the actual release path skips or misnames the new asset. Exercise the real script for this target (or factor the target loop into a testable helper) and assert the resulting dist/windows-386.exe exists.

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

What this change does: Adds windows-386 to the release platform list. Adds a shell regression block that checks the list and cross-compiles the target.

Should fix:

  1. The new regression test is never run (scripts/test-build-release.sh:L114-L133)

    • What this is: This is 20 new lines in a script with no tracked caller. The release workflow runs build-release.sh directly, and the Make test targets do not invoke this script.
    • Problem: The Windows-386 check is not part of an automated gate, so it adds maintenance without delivering the stated regression coverage.
    • Fix: Remove this block, or wire test-build-release.sh into an existing test target or workflow.
    • If we skip it: Future edits can break the Windows-386 release path without this check failing in CI.

Verdict: fix 1 first.
Lean: -20 lines possible.

Generated by ✂️ Ponytail Reviewer for #74369 · codex · routed: gpt56 max · ~3 AIC · ⌖ ~1 AIC · ⊞ 118
Comment /ponytail to run again

exit 1
fi

CGO_ENABLED=0 GOOS=windows GOARCH=386 go build \

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.

Lean: This adds 20 lines to a script with no tracked caller; release automation runs build-release.sh directly, so this Windows-386 check never runs in an automated gate. Remove the block or wire test-build-release.sh into a test target; as written, it is maintenance without coverage.

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 regression checks for preserving windows-386 are not connected to any automated test target or workflow, so they will never run in CI and cannot prevent the regression.

1 open issue
What changed in this PR

Adds a Windows 386 release binary so the extension can be installed on 32-bit Windows environments.

Changes:

  • Adds windows-386 to the release platform matrix, producing dist/windows-386.exe.
  • Adds regression checks for the platform entry and Windows 386 compilation.
  • Adds a patch changeset documenting the new release asset.
  • The regression script is not currently wired into the repository’s standard test target or CI, so these checks will not run automatically.
File Summary
scripts/​test-build-release.sh Adds checks for the Windows 386 release target and binary compilation.
scripts/​build-release.sh Includes Windows 386 in release binary generation.
.changeset/​add-windows-386-release-binary.md Documents the patch release change.

Review effort: Lite (auto)

Comment on lines +114 to +117
# Test 4: Build Windows 386 binary for release
echo ""
echo "Test 4: Verify Windows 386 is included in release builds"
if ! grep -Eq '^[[:space:]]+windows-386$' "$PROJECT_ROOT/scripts/build-release.sh"; then

@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 🧠

Applied /diagnosing-bugs, /tdd and /codebase-design. The core change is correct: windows-386 is added to the release platform list, and I ran scripts/test-build-release.sh locally, where all four tests passed. The open point is that the regression coverage is not enforced in CI.

📋 Key Themes & Highlights

Key Themes

  • Unwired regression test: scripts/test-build-release.sh is not invoked by the Makefile or any workflow, so the new Test 4 cannot catch a future removal of windows-386.
  • Duplicated build flags: the Test 4 go build copies the flags from build-release.sh, so the two can drift apart.

Positive Highlights

  • ✅ Minimal, surgical change. The dist/* glob in the release upload picks up windows-386.exe automatically.
  • ✅ The changeset entry is correctly typed as patch and explains the user-facing fix.
  • ✅ Test 4 verifies the artifact is actually produced, not only that the string is present.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~3 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again

exit 1
fi

CGO_ENABLED=0 GOOS=windows GOARCH=386 go build \

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.

[/codebase-design] This compile step copies the go build flags from scripts/build-release.sh (CGO_ENABLED=0, -trimpath, -ldflags). If the release flags change, this check keeps passing while building something different from what ships. Consider sharing the flags between the two scripts, or relying on the real release build for the compile check.

@copilot please address this.

fi
echo "PASS: Binary version does not contain 'dev'"

# Test 4: Build Windows 386 binary for release

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.

[/diagnosing-bugs] [/tdd] This regression check never runs in CI. Nothing in the Makefile or .github/workflows/ invokes scripts/test-build-release.sh (install.yml only runs test-install-script.sh), so the regression coverage claimed in the PR body is not enforced. Removing windows-386 later would ship unnoticed.

💡 Suggested fix

Either wire this script into a CI job, or move the platform-list assertion into cmd/gh-aw/version_test.go beside TestBuildReleaseScriptExists, which already runs under test-unit. The Go option is cheaper: this script takes about 2 minutes locally because of the extra go build calls, while the grep check is instant.

@copilot please address this.

Copilot AI commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@copilot check install.sh supports it

Yes. /home/runner/work/gh-aw/gh-aw/install-gh-aw.sh maps i386/i686 to 386, detects Git Bash/MSYS/Cygwin as Windows, and downloads/checksums windows-386.exe. No installer change is needed.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Note

The pull request was not created — a fallback review issue was created instead due to protected file changes: #74423

PR finisher dispatch requested for the following outstanding work (see Sous-chef lines below).

Staged for publication (not yet confirmed pushed):

  • Merged origin/main into the branch.
  • Removed the unwired Windows-386 block from scripts/test-build-release.sh and added an equivalent parsed-array check (windows-386 in platforms, .exe extension, dist/${p}${ext} output) to scripts/release-workflows.test.cjs, which make test-scripts runs.

Validation: node --test scripts/release-workflows.test.cjs passes. make agent-report-progress could not complete because pinned Prettier is not installed and npm ci failed.

Remaining: review replies and resolutions are deferred until the push is published. CI needs a maintainer re-trigger.

Sous-chef head: dd72938
Sous-chef work: 3f2ddb24403f674950a244efc696804d7762ce0ad1553b95300b2f5ff6e24bdd 4da37cde9bc3089fc5f682f0746921e279705d55ffdba69cdf7170dbb4c2284b 60586dcc1c1f7f440af45b689bad4c693f321a402d5a88911778a1f7471420cd a10c0d0e9f009bc0fc002638a8dca7b855aae9891387a7fb3af8b158e4a9b8b3 a2e02bff71eabf3a91e396154dc37247a86c14aafa08b2e144c1444f7c023c3d eef643235dd8e8eeae55d4b5b3d924b8b3c1604e13d893ba35b24119f4d092d1
Sous-chef state: 8e4fb524469f5b460fdb55efecb4fd8b984e7bed0d0d1287a719b30df2f017ad

Generated by 🏁 PR Finisher · copilot · auto · ~22 AIC · ⌖ ~2 AIC · ⊞ 10.7K · ◷

@pelikhan
pelikhan merged commit 1a7689c into main Nov 3, 2026
114 checks passed
@pelikhan
pelikhan deleted the copilot/add-support-windows-386 branch November 3, 2026 06:20
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.0

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.

Failed to install on Windows 10 Pro 64 bit

3 participants