Repository navigation
Publish a Windows 386 extension binary - #74369
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot check install.sh supports it |
|
✅ 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: 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.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully!
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: 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.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
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-386in the platform array. - The direct cross-compile does not verify
build-release.shproduces 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 |
There was a problem hiding this comment.
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 \ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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:
-
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.shdirectly, 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.shinto 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.
- What this is: This is 20 new lines in a script with no tracked caller. The release workflow runs
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 \ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
🟡 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-386to the release platform matrix, producingdist/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)
| # 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 |
There was a problem hiding this comment.
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.shis not invoked by the Makefile or any workflow, so the new Test 4 cannot catch a future removal ofwindows-386. - Duplicated build flags: the Test 4
go buildcopies the flags frombuild-release.sh, so the two can drift apart.
Positive Highlights
- ✅ Minimal, surgical change. The
dist/*glob in the release upload picks upwindows-386.exeautomatically. - ✅ The changeset entry is correctly typed as
patchand 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 \ |
There was a problem hiding this comment.
[/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 |
There was a problem hiding this comment.
[/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.
Yes. |
|
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):
Validation: Remaining: review replies and resolutions are deferred until the push is published. CI needs a maintainer re-trigger. Sous-chef head: dd72938
|
|
🎉 This pull request is included in a new release. Release: |

gh extension installcould not install on environments identified aswindows-386because releases lacked a matching binary.windows-386to the release build platform list, producingdist/windows-386.exe.