Skip to content

build(ui_generation_agentic): bump jspdf, faker, swiper (majors) - #6813

Draft
kajalj22 wants to merge 7 commits into
kajalj/bump-ui-npm-minorfrom
kajalj/bump-ui-npm-major
Draft

kajalj22 wants to merge 7 commits into
kajalj/bump-ui-npm-minorfrom
kajalj/bump-ui-npm-major

Conversation

@kajalj22

@kajalj22 kajalj22 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What / why

Stacked on #6812. Major-version bumps of the remaining scanner-flagged npm packages in the generated-UI stack images (resources_servers/ui_generation_agentic/docker/ui-vite, ui-next), kept separate because they cross a major boundary.

  • jspdf 3.0.4 → 4.2.1 in both stacks (jspdf-autotable 5.0.8 → 5.0.9 alongside; its peer range already allows jspdf 4).
  • ui-next: @faker-js/faker 9.9.0 → 10.6.0, swiper 11.2.10 → 14.4.0, and an overrides entry pinning sharp to 0.35.5. next already resolves 0.35.5 on its own; the override is for the nested copies colorthief (^0.33.5) and ndarray-pixels (^0.33.4) pull in, which is a breaking-range jump for a 0.x package and so lives here rather than in build(ui_generation_agentic): bump flagged npm deps (same-major) #6812. Both use only sharp's core surface (constructor, resize, ensureAlpha, raw, toBuffer), unchanged across 0.33 → 0.35. A comment above the manifest heredoc records why the override exists and when to drop it.
  • Both package-lock.json files regenerated with docker/regen_locks.sh (from build(ui_generation_agentic): bump flagged npm deps (same-major) #6812), which fails if a lock root stops mirroring its Dockerfile manifest.

These packages are only consumed by model-generated sample apps at runtime; nothing in the repo imports them. jspdf 4 changed html(), AcroForm and addJS; swiper 14 changed CSS import paths and dropped the legacy React wrapper; faker 10 renamed a few locale/method entry points. Generated apps that hit those surfaces will fail to build and be scored accordingly, which is the intended behaviour for an out-of-date API.

Validation

  • Lock root dependencies equal the Dockerfile package.json heredoc for both stacks
  • Resolved versions checked in both locks (jspdf 4.2.1, faker 10.6.0, swiper 14.4.0, single sharp 0.35.5)
  • docker/build_images.sh rebuild of ui-vite and ui-next images (no Docker daemon available locally; images are not built in PR CI)

Rollout

Merge after #6812. Rebuild and republish the stack images with docker/build_images.sh.

🤖 Generated with Claude Code

jspdf 4.2.1 (+ jspdf-autotable 5.0.9) in ui-vite and ui-next; @faker-js/faker
10.6.0 and swiper 14.4.0 in ui-next. Lockfiles regenerated from the manifests.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test e354ba0

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review

@copy-pr-bot

copy-pr-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

kajalj22 and others added 2 commits November 25, 2026 15:37
colorthief and ndarray-pixels still declare ^0.33, so this is the breaking-range
half of the sharp bump; next already resolves 0.35.5 by itself.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 3208d37

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP WITH CARE

I reviewed all four changed files and their build, agent and scoring consumers. The focused probes did not reproduce a dependency regression.

RISK: Supply the required real-rollout evidence

Could you attach representative model-driven smoke rollouts for both rebuilt stacks? AGENTS.md requires these for behavior-changing environment work. The PR records manifest/version checks but explicitly leaves the image rebuild unrun. The Swiper bump and the other major updates change the installed toolchain available to generated apps. Their build result gates scoring, so compatibility affects rewards, not only packaging. CI's 73 server tests use a scripted sandbox rather than rebuilding these images.

Keep the security bumps and existing scoring semantics. Rebuild ui-next and ui-vite from this head, record their image digests, and run representative tasks exercising the upgraded packages through the standard offline, single-file workflow. Attach the generated files, verifier build outcomes, judge results and reward/masking fields, with inspection notes. Acceptance is evidence that both rebuilt stacks support that complete workflow, with any failures explained. This is a required evidence gap, not a demonstrated incorrect reward or library defect.

Validation

The review ran in default-branch CI image 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:54800b761ceea0f1b3b7d1a62b4008046207395b, using Node 22.14.0 and npm 10.9.2. Neither admitted head nor base had a successful container-build check of its own.

  • Manifest/lock consistency and mocked build-context wiring passed. The exact full Next manifest and lock installed successfully with the Dockerfile's npm ci command.
  • PDF text, tables, pagination and PNG probes passed on base and head. A fresh Vite PDF app built and type-checked successfully.
  • Faker imports, Swiper React/CSS imports, navigation and cleanup probes passed. A fresh Next app using them built successfully; its configured type/lint skips were not counted as passes.
  • Actual sharp consumers decoded five image formats, extracted palettes, round-tripped PNG and rejected malformed input. One AVIF palette differed across codec versions; no read contract requires identical lossy output.

I relied on head CI for lint, both component-lock checks and the changed-server suite, which reported 73 passed. Sandbox tests, core shard 2 and wheel build/validation also passed. Core shards 0, 1 and 3 were still running at my last read, so aggregate testing was not complete. The full-server shard row was skipped, not passed. Autobot PR risk #6813 failed with risk:unknown: grading failed; that output does not identify a code defect.

No Docker image build or real model rollout was performed during this review.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

kajalj22 and others added 2 commits November 26, 2026 22:16
…floor

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 0d621c3

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci added risk:high Autobot PR risk: high support User questions, support, or maintenance requests area:build Packaging, dependencies, containers, and releases labels Nov 27, 2026
@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 719ca1b

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP WITH CARE

I reviewed all four changed files and their build, agent and scoring consumers, including two delegated dependency reviews. I compared the current head with the reachable previous-review commit 3208d37c451db70f4983f308fec1dc2c6ee143d4. The focused probes did not reproduce a dependency defect, but the prior evidence finding is still open.

RISK: Supply the required real-rollout evidence

Could you attach representative model-driven smoke rollouts for both rebuilt stacks? AGENTS.md requires these for behavior-changing environment work. The PR still explicitly leaves image rebuilding unrun, and its discussion supplies no rollout results.

The Next dependency changes and Vite PDF changes change the toolchain available to generated apps. Build failures become unmasked zero rewards, so compatibility affects tasks using the rebuilt images. The server tests use a scripted sandbox; their success does not validate the installed stack end to end.

Keep the security upgrades and existing scoring semantics. Rebuild ui-next and ui-vite from this head, record their image digests, and run representative model-driven tasks exercising the upgraded packages through the standard offline, single-file workflow. Attach generated code, verifier build outcomes, judge/reward/masking output and inspection notes. Acceptance is evidence that both actual images support that complete workflow, with any failures explained. This is a required evidence gap, not a demonstrated incorrect reward or library defect.

Validation

The review ran in default-branch CI image 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:54800b761ceea0f1b3b7d1a62b4008046207395b, because the head's Build Gym container check was skipped. CPU probes used Node 22.14.0 and npm 10.9.2 outside the admitted checkouts.

  • Manifest/lock consistency passed for both revisions and stacks. A mocked Docker command confirmed the build script supplies each stack's lock context. A clean offline installation of the complete current Next manifest and lock passed.
  • PDF text, tables, pagination and PNG probes passed on base and head. Browser-resolved PDF bundle execution passed. Fresh Vite and Next PDF apps built and type-checked successfully.
  • Faker imports and Swiper React/CSS imports worked. Simulated-DOM navigation and cleanup passed, and a fresh Next sample built. That separate build's configured type/lint skips were not counted as passes.
  • Actual sharp consumers decoded five image formats, extracted palettes, round-tripped PNG and rejected malformed input. An AVIF palette differed across codec versions; I found no consumer contract requiring identical lossy output.

I relied on this head's successful CI lint, both component-lock checks, all four core shards, sandbox tests and aggregate Unit tests / Test. The changed-server log reports 73 passed. The full-server shard row and container-build check were skipped, not passed.

No Docker stack image build, real model rollout or full browser visual test was performed. The probes therefore do not close the finding above.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@kajalj22

Copy link
Copy Markdown
Contributor Author

/ok to test 8da761c

@kajalj22

Copy link
Copy Markdown
Contributor Author

/review reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP WITH CARE

I reviewed all four changed files and their build, verifier and scoring consumers, with two delegated dependency reviews. I found no additional confirmed dependency defect. The prior rollout-evidence finding is still open.

All four changed files are byte-identical to the reachable previous-review commit 719ca1b67aac1cf843d37eb2fdc5892a5615267f. The only change since that review strengthens an upstream lockfile test; it does not supply the missing evidence.

RISK: Supply representative rollouts for both rebuilt stacks

Could you attach representative model-driven smoke rollouts using the rebuilt ui-next and ui-vite images? AGENTS.md and CONTRIBUTING.md require real smoke evidence for behavior-changing environment work. The PR still leaves image rebuilding unchecked, and its discussion provides no rollout results.

The Next upgrades and Vite PDF upgrades change the toolchain available to generated apps. Compatibility matters for tasks using those images because build failures become unmasked zero rewards. The server tests use a scripted sandbox, so green tests do not validate the installed images end to end.

Keep the security upgrades and current scoring semantics. Rebuild both images from this head, record their immutable digests, and run representative model-driven tasks exercising the upgraded packages through the standard single-file workflow. Attach the generated code, verifier build outcomes, judge/reward/masking results and inspection notes. Acceptance is evidence that both actual images support that workflow, with any failures explained. A full evaluation or training run is not required. This is a required evidence gap, not a demonstrated scoring regression.

Validation

I used default-branch CI image 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:228a16b96df8f925220a7edbff2d7d22317c78fb, because this head’s Build Gym container check was skipped. CPU probes used Node 22.14.0 and npm 10.9.2 installed in a scratch virtual environment outside the admitted trees.

  • lock_probe.py passed manifest/root-pin and single-copy override checks for base, previous review and head. A fake Docker command confirmed that the actual build script supplies the matching lock contexts; this was not an image build.
  • full-install.sh passed the production npm ci --legacy-peer-deps command for both complete head manifest/lock pairs without changing either lock.
  • verifier-probe.sh passed Next and Vite sample builds through copies of the real verifier script with only the template location changed. Next exercised Faker, Swiper React/modules/CSS and PDF imports; Vite exercised PDF imports. Next’s configured type/lint skips were not counted as passes. A separate delegated Next sample type-check passed.
  • Delegated base/head probes passed PDF tables, forms, images and JavaScript output; Faker imports/locales; simulated-DOM Swiper navigation and cleanup; and sharp consumers across five image formats. The HTML-to-PDF probe used a renderer stub, not real browser rasterization.

I relied on this head’s successful CI lint, both component-lock checks, all four core shards, sandbox tests, combined coverage and aggregate Unit tests / Test. The changed-server log reports 73 passed. Full-server shards and the container build were skipped, not passed; the server-suite aggregate succeeded without running those shards.

No Docker stack image build, real model rollout or full browser visual test was performed. The successful probes do not close the RISK above.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build Packaging, dependencies, containers, and releases risk:high Autobot PR risk: high support User questions, support, or maintenance requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants