Skip to content

layout: move js tests out of families/js and delete the js family module (part of #10199) - #10258

Merged
TrapsterDK merged 4 commits into
mainfrom
js-family-delete
Nov 10, 2026
Merged

TrapsterDK merged 4 commits into
mainfrom
js-family-delete

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #10199.

Moves the js tests into <lang>/tests, merges the js npm deps and packageExtensions into the root, adds the node-app lock to the root MODULE.bazel as a dev npm extension, rewrites @rules_dx_js// labels and families/js/ paths, and deletes families/js, its families.json entry (aspects and file extensions move to core), and .bcr/families/js. Root pnpm-lock.yaml regenerated with the hermetic pnpm; support matrix regenerated.

Local results (consumer and nested-Bazel tests not run):

  • Analysis of the issue's test scopes, //modules:lang_json_test, //cli/audit:dx_audit_test, and most //javascript/tests/... //typescript/tests/... //svelte/tests/... //vue/tests/... pass.
  • Failing, not yet compared with main: //astro/tests/app:site_static_test (css pattern), //javascript/tests/fixtures/node-app/{cli:cli_test,cli:exit_codes_test,registry:registry_test} (jest "Could not find a config file"), //mdx/tests/app:site_dist and //vue/tests/app:site_dist (vite "fileName ... neither absolute nor relative paths").
  • //modules:families_test fails on family "php" lists extensions "@rules_dx//php/composer:extensions.bzl%composer", and //docs:update_tool_configs_test on helmfmt; both are outside this change.
  • MODULE.bazel.lock was unchanged by bazel mod deps.

Remains: resolve the failures above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: changes requested

  • PR body: the author lists failing tests not compared with main: //astro/tests/app:site_static_test, //javascript/tests/fixtures/node-app/{cli:cli_test,cli:exit_codes_test,registry:registry_test} (jest config not found), //mdx/tests/app:site_dist, //vue/tests/app:site_dist. These likely regress from the move (fixture config/files not reaching the new root, e.g. jest.config.cjs and the vite paths). Fix or show they fail identically on main before merge.
  • MODULE.bazel:1515-1525: the node-app npm_translate_lock reuses root //:.npmrc and .bazelignore. Confirm the jest failures above are not caused by the dx_js_node_app hub or the npm_node_app link, since the node-app lock is no longer a separate workspace.
  • tools/testing/hermetic/BUILD.bazel:343-365: the fixtures are now mapped from root labels. These are consumer-test inputs that were not run, so the node-app jest failure may also surface there.
  • modules/families.json: the js aspects and file extensions moved into core. Confirm modules/families_test passes. The php composer failure is reported as unrelated; verify it also fails on main.

This review used the API file list only. The 300-file diff is too large for gh pr diff.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Fixed: rebased onto current main keeping main's changes (conflicts in BUILD.bazel, MODULE.bazel, docs/README.md, modules/families.json, libs/families/BUILD.bazel, support_matrix); exit_codes_test now runs the registry from its runfiles path instead of the canonicalized execroot path, which lost the js_binary runfiles ('RUNFILES environment variable is not set'). After the rebase, cli_test, registry_test, exit_codes_test, //astro/tests/app:site_static_test, //mdx/tests/app:site_dist, //vue/tests/app:site_dist, //modules:families_test and //modules:lang_json_test pass; the node-app jest config failure and the php composer families_test failure no longer reproduce. Support matrix regeneration is a no-op; the hermetic fixture labels query clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: changes requested

  • tools/testing/hermetic/BUILD.bazel:262: the cpp_rust hermetic_qualification still lists families = ["js", "jvm"]. families/js is deleted, so family_modules() (tools/testing/hermetic/src/lib.rs:2007) composes a rules_dx_js override to a missing path and the cpp_rust consumer fails. Drop "js" and check no other entry names a deleted family (jvm is gone too).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Fixed: dropped js and jvm from the cpp_rust hermetic_qualification families (js is the only family this PR deletes; no other entry names it); rebased onto current origin/main, resolving the typecheck BUILD loads to //javascript/private/quality:tsc_report.bzl, .bazelignore and the cli/depcheck fixture labels. //modules:families_test and //javascript/tests/typecheck/... pass; the touched typecheck packages query clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: changes requested

  • tools/testing/BUILD.bazel:21: FAMILY_MODULES still lists "js". module_srcs_test (lines 228-231) then depends on @rules_dx_js//:module_srcs and sets MODULE_SRCS_rules_dx_js, a label into the deleted family and a repo with no bazel_dep in MODULE.bazel. Drop "js". Other entries already point at families that no longer exist (for example dotnet, jvm, lua), so check the whole list against families/ in the same edit.
  • MODULE.bazel:1604-1607: the comment above dx_dev_hub explains rationale, which AGENTS.md disallows in comments. Trim it to what the block is.

I checked fcd051d96 read-only (no build or test run) and found no remaining @rules_dx_js or families/js references outside this list, no "js" family entry in the hermetic qualifications, and no consumer or example loads from <lang>/private.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

TrapsterDK and others added 4 commits November 10, 2026 06:24
…ule (part of #10199)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd
…_hub comment (part of #10199)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Fixed: dropped "js" from FAMILY_MODULES in tools/testing/BUILD.bazel (remaining entries match families/) and from .bcr/config.yml moduleRoots; trimmed the dx_dev_hub comment in MODULE.bazel; rebased onto current origin/main (js family entry folded into core families.json, support_matrix @rules_dx_js removed, root-label BUILD conflicts resolved). Also fixed core/modules package_name and the lang_json_test array length that broke on main (#10418). //core/modules:families_test, lang_json_test, //tools/testing:module_srcs_test, //javascript/tests/typecheck/..., //tools/docs/support_matrix:all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: approve

Checked head e34e2c0 read-only via the API (no build or test run). Earlier findings are fixed: FAMILY_MODULES in tools/testing/BUILD.bazel and .bcr/config.yml moduleRoots now match the seven families with a MODULE.bazel, and no js entry remains. No @rules_dx_js or families/js reference remains in MODULE.bazel or the tree. The cpp_rust qualification no longer names js. No compat code or aliases seen in the files inspected.

The 444-file diff was not read in full.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK
TrapsterDK marked this pull request as ready for review November 10, 2026 05:45
@TrapsterDK TrapsterDK added the needs-review Touches review paths; needs a second-session Review: comment label Nov 10, 2026
@TrapsterDK
TrapsterDK merged commit 29c86de into main Nov 10, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the js-family-delete branch November 10, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Touches review paths; needs a second-session Review: comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant