test: fix rebrand-lag test failures; drop Windows installer#2
Merged
Conversation
The OpenCode→PentestCode rebrand updated product code but left test fixtures asserting the old branding, so `bun turbo test` and the HttpApi exerciser were red on main. Bring the fixtures in line with the rebranded behavior (no product-code changes): - provider plugins (vercel/openrouter/llmgateway/nvidia/kilo/zenmux/cerebras/ cloudflare-*): expect pentestcode referer/title/source/integration/user-agent values instead of opencode. - webfetch: user-agent "pentestcode". - observability: pentestcode.client / pentestcode.run resource attributes. - config: fixtures write pentestcode.json/.jsonc and .pentestcode dirs (the loader no longer reads opencode.*). - global/project: tmp dir "pentestcode", project-id file .git/pentestcode. - agent/session-runner(-recorded)/permission: default agent is "pentest" (renamed from "build"). - location-layer: pentestcode.json fixture; drop apply_patch/edit/todowrite from expected tools (removed from core builtins). - skill: built-in skill is customize-pentestcode. - httpapi exerciser: send Basic auth user "pentestcode" to match the server's rebranded OPENCODE_SERVER_USERNAME default. Windows installer removal: - delete install.ps1 (Windows curl-entrypoint) and script/sign-windows.ps1; no build/CI references remained. Update the CLAUDE.md release checklist. Verified: core 1075/0, full `bun turbo test` 8/8, check:generated clean, test:httpapi coverage+auth 208/208.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The OpenCode→PentestCode rebrand updated product code but left test fixtures asserting the old branding, so
bun turbo testand the HttpApi exerciser were red onmain. This brings the fixtures in line with the rebranded behavior — no product-code changes, only test fixtures + Windows installer removal.Rebrand-lag test fixes (36 unit failures + HttpApi auth)
pentestcodereferer/title/source/integration/user-agent values instead ofopencode.pentestcode.pentestcode.client/pentestcode.runresource attributes.pentestcode.json/.jsoncand.pentestcodedirs (the loader no longer readsopencode.*).pentestcode, project-id file.git/pentestcode.pentest(renamed frombuild).pentestcode.jsonfixture; dropapply_patch/edit/todowritefrom expected tools (removed from core builtins in the fork).customize-pentestcode.pentestcodeto match the server's rebrandedOPENCODE_SERVER_USERNAMEdefault (was sendingopencode→ 401 on every protected route).Legitimate
opencodereferences were left intact: theopencodeprovider id, theopencode.ai/zenURL, app localStorage namespaces (opencode.global.dat) and DOM ids (#opencode-titlebar-right) — these are unchanged in product code, so e2e fixtures already match.Windows installer removal
install.ps1(the Windows curl entrypoint) andscript/sign-windows.ps1; no build/CI references remained.Verified locally
packages/coretests: 1075 pass, 0 fail.bun turbo test: 8/8 tasks pass.check:generated: clean.test:httpapicoverage + auth: 208/208 pass.