Repository navigation
fix(artifacts): omit required_value where reader limits know only a lower bound - #14646
Conversation
…ower bound A reader-limit refusal reports required_value only when a retry at that value is admitted. Deno specifier text and remote body totals, VFS entry and name-unit counts, Deno and wxapkg plaintext totals, and the shared path registry's part and node counts stop at the first crossing, so those refusals now omit it. Declared lengths and table counts keep it.
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Medium impact] The PR appears safe to merge; the previous test gap is fixed and no new blocking issue was found. SummaryThe PR omits
Reviews (2) · Last reviewed commit: "test(resources): assert path budget refu..." · Reviewed by Greptile |
Capture the path_nodes and path_parts refusals and check readerLimit has no required_value, so restoring the lower-bound value fails.
…depth refusal #14646 stopped reporting required_value for artifact_limits path budgets because the path-depth count stops at the limit and knows only a lower bound. The .NET bundle journey still expected 257, which failed any CI run that selected it.
Summary
Part of #14236 and #14234. Applies the rule from #14625/#14645:
required_valueis reported only when it is the complete need, so a retry at that value is not refused by the same limit. A count or total that stops at the first crossing is a lower bound and is now omitted.Behavior change
details.reader_limit.required_valueis no longer reported for:artifact_limits.deno.specifier_text_bytesandremote_body_bytes(running totals across the table)artifact_limits.deno.vfs_entriesandvfs_name_units(the walk stops at the first entry or path past the allowance)artifact_limits.expanded_bytesfrom the Deno and wxapkg readers (later members are not counted)artifact_limits.{bun,dotnet_bundle,deno}.path_partsandpath_nodesfrom the shared path registry (later or deeper paths may need more)Refusals that compare a declared length or count keep
required_value: Deno metadata and VFS header JSON, table records, wxapkg table bytes, and tar extended headers.Not changed here: the older running-total expansion and metadata refusals in the Bun, Godot, Node SEA, ISO 9660, .NET bundle and ZIP readers have the same shape. They predate this work and are left for a follow-up so this stays scoped to the sites #14620 added or centralized.
Validation
src/resources/ArtifactPaths.test.ts,src/artifacts/deno/DenoVirtualFs.test.ts(assertsrequired_valueis absent),src/artifacts/deno/DenoSectionLayout.test.ts,src/artifacts/WxapkgArtifactReader.boundaries.test.ts, each run alone withnpm run test:local.oxfmt. Typecheck, full lint and broad suites are left to CI to keep local load down.