Skip to content

test(javascript): execute the registered Webpack export fixture - #6951

Merged
gensokyo-dev merged 1 commit into
mainfrom
test/webpack-factory-oracle-20261024
Oct 24, 2026
Merged

gensokyo-dev merged 1 commit into
mainfrom
test/webpack-factory-oracle-20261024

Conversation

@gensokyo-dev

@gensokyo-dev gensokyo-dev commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Problem and outcome

Main CI on 21a20306b failed the Webpack CLI/MCP export case: from.helper was missing. The fixture redeclared its factory parameter __webpack_require__ with const. Node rejects the complete bundle with SyntaxError: Identifier '__webpack_require__' has already been declared; the old CommonJS oracle ran only the body and missed the invalid factory. Factory-role ownership was deliberately tightened in 5cbcd5855.

Pass the loader into the registered factory and execute the exact analyzed bundle in a fresh Node VM context for the runtime oracle. Remove the superseded body-only oracle file. All runtime/static export keys, computed-key omissions, CLI/MCP Evidence identity assertions and timeouts remain intact. Product analysis and contracts are unchanged. No separate issue was opened for this direct main-health repair.

The prerequisite maintainer PR #6945 fixed four other fixture drifts: bound-target error tags, the launcher's copied environment module, the required package member, and XML plist lint provenance. This PR was rebased onto that merged main b869fa762 before final verification.

Executed evidence and validation

Linux x64, pinned Node 24.22.1 / npm 11.16.0, two CPUs:

  • Clean 21a20306b: the focused public CLI/MCP case reproduced the missing key (14.25 s wall / 16.40 s CPU / 1625.5 MiB sampled process-family RSS). Node --check independently rejected the original wrapped factory.
  • Updated focused case passed (13.31 s / 15.25 s / 1690.0 MiB). Restoring the original invalid body under the new oracle failed immediately with the duplicate-declaration syntax error; the reviewed fixture was restored.
  • All three complete relevant files passed: applicationWorkflowCli, javascriptFactoryExportRoles, javascriptStaticAnalysisModuleIndex — 70 tests, 36.43 s wall / 45.28 s CPU / 2410.0 MiB. This exercises the production CLI, stdio MCP and Node's execution of the complete self-authored bundle.
  • npm run check and git diff --check passed (27.09 s wall / 49.08 s CPU / 2607.0 MiB).
  • A broader rebased eight-file local run reached its declared 240 s guard, peak 3238.0 MiB; it is not a full pass, and interrupted CPU accounting is incomplete. The Apple and JavaScript files completed successfully, while compact MCP startup was marked failed at 31.41 s. After stopping that group, the bounded startup, corrupted-catalog and three tar-listing controls all passed: 5 tests, 28.18 s wall / 32.66 s CPU / 1476.1 MiB. No timeout was extended. Complete remote CI subsequently passed all 29 deferred-runtime tests, including that startup case.

Focused comparisons reused build artifacts; each fixture/VM was fresh. The uncached prerequisite build passed (22.25 s wall / 29.12 s CPU / 1087.5 MiB). RSS sums descendants sampled every 100 ms: shared pages may double-count and short-lived/reparented children may be missed. Commands had elapsed guards and an 8 GiB sampled stop; no OOM occurred. These are validation costs, not a speedup claim; agent tokens and remote process-family costs were not measured.

CI and merged main

PR CI 40065098040 passed on bb021cb94: all eight shards, Source tests, static checks, build, Portable aggregation and CI required; its merged report records 31318 passed / 232 skipped. Title/readiness passed and exact-head Codex review completed with no findings or unresolved threads.

Latest main d87e73f2 is green: main CI 40066318409 completed successfully, including CI required. Its merged test report records 31321 passed / 232 skipped. All eight built shards, Source tests, documentation, static checks, build, Portable aggregation, real Apple CLI/MCP, browser, web source-map/network, agentenv, EVM, APK, JavaScript recovery, recorded crashes, reconstruction readiness, reverse-tool quality, all four SQLite Node configurations, Windows capability/package validation and Linux/macOS native package baselines passed. The run finished with 38 successful jobs and 5 existing optional skips. A final branch lookup confirmed that this exact tested commit was still latest main.

The existing selection skipped Deep static checks, nativeaot, web_runtime, Source-built conformance fixtures and ghidra_bridge; no execution claim is made for those lanes. Superseded runs on known-broken intermediate revisions were cancelled to avoid redundant runner work; they are not passes. Final successful runs were not retried. Main also includes #6950's independent entropy optimization, so the main run validates the integrated tree rather than claiming whole-tree equality with the PR's earlier base.

Author readiness

Human owner: @gensokyo-dev

The owner explicitly delegated readiness declarations and agent-managed review. Inspection and execution were performed by Codex; no separate human inspection is claimed.

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 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-24T05:09:51.205923Z bb021cb New commits
ℹ️ 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.

@gensokyo-dev
gensokyo-dev force-pushed the test/webpack-factory-oracle-20261024 branch from a543269 to bb021cb Compare October 24, 2026 05:08
@gensokyo-dev
gensokyo-dev merged commit d87e73f into main Oct 24, 2026
44 checks passed
@gensokyo-dev
gensokyo-dev deleted the test/webpack-factory-oracle-20261024 branch October 24, 2026 05:27
shoyann added a commit to shoyann/rea that referenced this pull request Oct 26, 2026
Bring in the upstream Apple metadata error-contract tests (morluto#6945) and
Webpack factory fixture correction (morluto#6951). Preserve the five-file
physical symlink target fix relative to main.
@morluto morluto added the area: tests Test suite and verification label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants