Skip to content

fix: honor --test_filter and keep rules_lint as a dev dep - #38

Open
anonrig wants to merge 1 commit into
fremtind:mainfrom
anonrig:honor-test-filter-and-dev-lint
Open

anonrig wants to merge 1 commit into
fremtind:mainfrom
anonrig:honor-test-filter-and-dev-lint

Conversation

@anonrig

@anonrig anonrig commented Sep 6, 2026

Copy link
Copy Markdown

Why

aspect_rules_lint is only used for //tools:format, but 0.2.3 lists it as a runtime bazel_dep. Consumers then fetch download_utils from gitlab.arm.com even when they never load lint. Separately, the sequencer only implements Bazel sharding, so bazel test --test_filter (TESTBRIDGE_TEST_ONLY) is ignored and the whole suite runs. Passing --testNamePattern as a js_test args Make fragment fails when the env var is unset: Vitest treats the unexpanded string as a file filter and collects no tests.

What

Mark aspect_rules_lint as dev_dependency = True so it stays available for format in this repo and is not forced on consumers. Set test.testNamePattern from TESTBRIDGE_TEST_ONLY in the generated Vitest config (the config already runs at test time with the env). Document --test_filter in troubleshooting.

Consumers should not fetch aspect_rules_lint; it is only used for
//tools:format. Map TESTBRIDGE_TEST_ONLY to Vitest testNamePattern so
`bazel test --test_filter` does not silently run the whole suite.
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