Repository navigation
Conversation
Eight assertions in PythonPycParser.test.ts bounded elapsed time (1000 ms, one 250 ms). They depend on host speed and fail on loaded CI shards without a regression. On an idle host two of them did not catch the regression they were written for. Seven are replaced or removed: - Deleted where the test already pins exact code-object lists, nested_code indexes, relationship counts and a 64 KiB report bound (shared TYPE_REF chain; shared container listed once per owner). - Shared byte string: count SHA-256 input bytes during the parse; the payload is digested once. - Shared 300,000-bit integer: count BigInt string conversions during the parse. - Doubling tuple key: require the expansion preflight (boundary "string") to reject it, not the key-walk step budget. - Long TYPE_REF chains: parse under the tightest limits that admit the stream (objects read, marshal depth, file size), so the parser's own nested-walk step, key-walk step and key-byte budgets bound the work. The 250 ms wide-dictionary bound stays. Rebuilding the dict child list on every walk step leaves every parser counter unchanged and its copies are garbage, so neither a counter nor retained heap observes it, and spying on Array.prototype.push recurses into the spy. Validation: each regression was reintroduced in PythonPycParser.ts (uncommitted) and the base and new test files were run against it. Digest per reference: base passed (840 ms), new failed (1,259,339,778 bytes hashed). Bit length per reference: base passed, new failed (401 conversions). Re-walking shared keys: base passed, new failed (boundary "objects"). No expansion preflight, nested re-walk (36,018,000 steps vs 12,000), no key interning (36,018,002 key bytes vs 34,672) and nested code per reference: both failed. test:local on the file: 66 passed. check:fast: passed. Refs morluto#10513
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The PR appears safe to merge; no actionable defects were found. SummaryReplaces or removes seven elapsed-time checks in
Reviews (1) · Last reviewed commit: "test(python): replace pyc wall-clock bou..." · Reviewed by Greptile |
Davmunrey
left a comment
There was a problem hiding this comment.
Status:
- Greptile found no issues.
- The 250 ms wide-dictionary bound is left unchanged pending your decision, as described in the PR body.
- Format and static checks pass with the branch merged into current main.
Summary
Refs #10513. This covers only
src/python/PythonPycParser.test.ts. It replaces or deletes 7 of the file's 8Date.now() - startedbounds. The parser is unchanged.Change and scope
Hash.prototype.updateinput bytes, which must stay under 2× the payload.BigInt.prototype.toStringcalls, at most 1.boundary: "string").Evidence and regression coverage
Each regression was put back into the parser, then both the old and new tests were run:
objectsinstead ofstring)The remaining regressions fail in both versions.
Gap: the 250 ms wide-dictionary bound (1282) is left unchanged. It has no deterministic measure without a production counter, a global push wrapper or a perf lane, so it needs a maintainer decision.
Validation performed
npm run test:local -- src/python/PythonPycParser.test.ts: 66 passed.npm run check:fastpassed.Author readiness
Human owner: @Davmunrey
Before merge
type(scope): outcome.