Repository navigation
Trim own-file-only core exports; workerd parity never passes when it compared nothing - #899
Merged
Merged
Conversation
A direct `node scripts/workerd-parity.ts` has no npm_execpath, so it skipped before building anything and printed one terse SKIP line with exit 0; that is why PR #898's second run showed no SAME lines. The skip now says it compared 0 requests and why, and the comparison fails when it compared zero requests or fewer than it declared. The verdict lives in scripts/workerd-parity-verdict.ts so a test reaches it without the network. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ir own file The TypeScript language service found 61 core exports that no other module, test or script references and that no package.json#exports entry reaches; they are now module-local. BodySchemaFormat had no reference at all and is removed. Policy-module members (name, phases, compile, ...) stay exported: the registry reads them through the PolicyModule contract. Test-only and script-only exports are kept (they back unit tests and the repository checks). No behavior changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Two small cleanups. Neither changes runtime behavior.
Core exports
Method: the TypeScript language service over
tsconfig.json, plus a text search of every candidate across the repo. "Public" means reachable from anypackage.json#exportsentry.PolicyModule)exportremovedBodySchemaFormat)workerd parity
node scripts/workerd-parity.tsnever compared anything.npm_execpathis only set undernpm run, so it skipped at once, and printed one terse line and exited 0.scripts/workerd-parity-verdict.ts.SKIP: compared 0 requests: …with the reason, andWORKERD_PARITY_REQUIRED=1turns it intoFAILand exit 1.test/workflows.test.tscovers these rules and a direct invocation.Evidence (macOS, Node 26)
npm run verifypasses (1160 root tests plus the workspaces).npm run test:packagepasses.WORKERD_PARITY_REQUIRED=1 npm run test:workerd: 37/37 identical.🤖 Generated with Claude Code