Skip to content

ci(test): cover internal/memory on windows-latest - #575

Merged
runkids merged 1 commit into
runkids:mainfrom
star-nebula:ci/windows-allowlist-memory
Oct 15, 2026
Merged

runkids merged 1 commit into
runkids:mainfrom
star-nebula:ci/windows-allowlist-memory

Conversation

@star-nebula

Copy link
Copy Markdown
Contributor

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)

Linked Issue

Follows #344, not Closes — that issue tracks the whole windows-latest campaign and still has packages outside the allow-list.

What

Adds ./internal/memory to the windows-test package list. The job's comment states the list holds the packages that already pass on windows-latest, and that each fix adds its package back. internal/memory was never on it at all: git log -S internal/memory -- .github/workflows/test.yaml returns no commit, and the package is not among the 14 that #344 measured as failing there. Its 36 tests therefore never run on the platform whose binaries goreleaser publishes.

Checks run

  • Windows pre-flight (the check that could actually fail this): cross-compiled the package's test binary with GOOS=windows GOARCH=amd64 go test -c and ran it on a real Windows host (Windows 10.0.26200, amd64, NTFS) — 36 top-level tests, 36 pass, 0 fail, exit 0. This is the method Windows ships release binaries but no job ever tests them: a windows-latest run fails 14 of 28 packages #344 describes using as a per-fix pre-flight.
  • test.yaml parses; the allow-list is 23 entries, alphabetically ordered, no duplicates.
  • python3 scripts/ai-context.py check → ok.
  • Privilege difference checked. The pre-flight host has Developer Mode on, so symlink-backed subcases really ran. In internal/memory/store_test.go those sites degrade instead of failing: :73, :78, :320 and :323 append their symlink subcases only when os.Symlink succeeds, and :252 calls t.Skip(err). A runner without Developer Mode covers fewer subcases but cannot fail on them.

Not covered

  • make check was not run. The devcontainer is the environment wiki/testing.md designates, and this machine's Docker Desktop engine cannot mount its WSL distro (Wsl/Service/CreateInstance/MountDisk/HCS/E_ACCESSDENIED). This PR adds no Go code, so there are no new tests and nothing for make check to cover beyond what the pre-flight already exercised.
  • The pre-flight binary came from a Go 1.26.0 toolchain; the runner uses the go.mod toolchain (1.25.5). The windows-latest job on this branch is the authoritative confirmation.

Checklist

  • I've read CONTRIBUTING.md
  • Tests included and passing (make check) — not true here: make check needs the devcontainer, which is unavailable (see "Not covered"). No Go code changed, so no test to add; the covering evidence is the Windows pre-flight above.
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

The windows-test job lists only the packages verified to pass on Windows, so
that the job is green on arrival. internal/memory never reached that list: it
is absent from runkids#344's set of failing packages, and no commit ever added it,
which leaves its 36 tests unrun on the platform whose binaries are published.

Cross-compiled the package's test binary for windows/amd64 and ran it on a
real Windows host: 36 top-level tests passed, 0 failed, exit code 0. The
symlink call sites in store_test.go skip or drop their subcases when the
privilege is missing, so a runner without Developer Mode cannot fail on them.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T07:24:35.332919Z 96562d1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@runkids
runkids merged commit 750059a into runkids:main Oct 15, 2026
8 checks passed
@runkids

runkids commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Thanks!

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