Skip to content

Fix Vite cache identity and Rollup compatibility#16

Merged
Matthew-Redo merged 4 commits into
mainfrom
alee/vite-install-state
Jul 10, 2026
Merged

Fix Vite cache identity and Rollup compatibility#16
Matthew-Redo merged 4 commits into
mainfrom
alee/vite-install-state

Conversation

@candrewlee14

@candrewlee14 Andrew Lee (candrewlee14) commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a generated .yarn-state.yml marker for nodejs_install so tools like Vite invalidate dependency caches when Bazel's install manifest changes.
  • Keep the marker in sync on both full installs and unchanged-manifest fast paths.
  • Restore configure_rollup compatibility for existing callers.
  • Clean up CI test setup so the repo's checks pass again.

Validation

  • bazel test :test
  • bazel test tools/lint:format_test tools/lint:lint_test
  • Redo override: bazel run --override_module=rules_javascript=/tmp/rules_javascript-eval nodejs_install
  • Redo override: bazel build --override_module=rules_javascript=/tmp/rules_javascript-eval //protocols/http/open-redirect-function:bundle
  • GitHub Actions Build 28813439209 passed Lint and Test.

Write a package-manager state marker from the Bazel install manifest so tools that key dependency caches from node_modules state invalidate when the generated layout changes.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@candrewlee14 Andrew Lee (candrewlee14) added the bug Something isn't working label Jul 6, 2026
Allow existing callers to keep using configure_rollup while newer rollup_bundle callers pass config directly.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@candrewlee14 Andrew Lee (candrewlee14) changed the title Fix Vite cache identity for nodejs_install Fix Vite cache identity and Rollup compatibility Jul 6, 2026
Andrew Lee (candrewlee14) and others added 2 commits July 6, 2026 12:10
Make the workflow write the bazelrc file this repo imports, disable worker sandboxing on GitHub runners, and refresh the npm audit fixture so the test suite can run cleanly.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
The nested Bazel snapshot run can exceed Jest's default timeout on GitHub runners even after the underlying test passes.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@Matthew-Redo
Matthew-Redo marked this pull request as ready for review July 10, 2026 00:02
@Matthew-Redo
Matthew-Redo merged commit 837a75f into main Jul 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

2 participants