Skip to content

quality: runfiles mode on the split command, move JS and python lint tools to split (part of #15405) - #15929

Merged
TrapsterDK merged 1 commit into
mainfrom
split-runfiles
Dec 6, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
split-runfiles

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Batch 2, feature E of #15405.

  • Command carries a runfiles mode: none, own or own_if_present. quality_exec builds RUNFILES_MANIFEST_FILE or RUNFILES_DIR for the program it spawns, using one helper (launcher::runfiles_env) on every host. With the manifest-only layout on Windows, the manifest is used. The plan schema moves to v7, and exec and runner change together.
  • Removed: real_core.bzl runfiles_env, ALWAYS_OWN_MANIFEST and launch::policy_for/RunfilesPolicy. One table in real/tool_env.rs now drives both the full runner and the split plan.
  • Moved to split: djlint, docstrfmt, eslint, gplint, graphql_eslint (lint), mbake, prettier, remark, stylelint and yamllint. Each one has a case in split_commands_spawn_what_the_full_runner_spawns that compares argv and env, including the runfiles variable.
  • Still on the full runner: ansible_lint (K), cfn_lint (I, J), cmakelint (I), sqlfluff (I, J, K) and redocly (J).
  • Fix: eslint_typed_owned now stages frameworks/react.mjs. The shipped frameworks.mjs has imported it since quality: fix review findings for #15842 #15845 (part of #15298) #15865, and real_result_eslint_typed failed on 78ddddd because of it.

Known failure that this PR does not cause: on 78ddddd, real_result_vale_asciidoc_dirty and real_result_docstrfmt_rst_dirty fail to build with vale path tool asciidoctor has no split plan / vale path tool rst2html has no split plan. Split vale (#15923) rejects PATH helpers that need runfiles env. I reproduced this on the base commit.

Tests: tools/dx test on the quality runner, exec, adapter, column_units, real_pipeline_unit, real_aspect_presence, real_result_{yamllint_shipped_clean,eslint_typed,sqlfluff_shipped_clean} and 18 matrix targets for the touched families. 31 passed. The only failures were the two vale-dependent targets above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw5ZsSt78ouJoi3QnQ

…tools to split (part of #15405)

Command carries a runfiles mode (none, own, own_if_present) and quality_exec
derives RUNFILES_MANIFEST_FILE or RUNFILES_DIR from the program it spawns
through one helper for every host. The plan schema moves to v7.

This retires real_core.bzl runfiles_env, ALWAYS_OWN_MANIFEST and
launch::policy_for in favour of one table in tool_env.rs.

djlint, docstrfmt, eslint, gplint, graphql_eslint, mbake, prettier, remark,
stylelint and yamllint now plan through the split engine.

eslint_typed_owned stages frameworks/react.mjs, which the shipped
frameworks.mjs has imported since #15865.
@TrapsterDK
TrapsterDK merged commit 5794a74 into main Dec 6, 2026
0 of 7 checks passed
@TrapsterDK
TrapsterDK deleted the split-runfiles branch December 6, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant