Skip to content

release: consumer smoke test cases pin rules_py and rules_flutter (part of #10990, part of #12005) - #12571

Merged
TrapsterDK merged 23 commits into
mainfrom
issue-10990-release-harness
Nov 14, 2026
Merged

TrapsterDK merged 23 commits into
mainfrom
issue-10990-release-harness

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #10990. Part of #12005.

Changed

  • deploy/private/release/tests/candidate_consumer_test.rs: the candidate consumer appends rules_py_override() and rules_flutter_override() and writes their patches with write_rules_py_patches. It still asserts no rules_dx override, so rules_dx resolves only from the staged registry.
  • deploy/private/release/tests/quickstart_consumer_test.rs: both cases add rules_flutter_override() and copy patches/rules_flutter.
  • deploy/private/release/tests/BUILD.bazel: the five rules_flutter patches the override names are test data.
  • quickstart_consumer_test.rs: nested Bazel runs with a PATH holding only the host ldd; rules_py's rules_py_uv_host repository runs ldd --version and failed with Unable to determine host libc! under the harness's /dx_no_path.
  • candidate_consumer_test.rs: its nested Bazel runs and the GCC shim PATH also hold the host ldd.
  • candidate_consumer_test.rs: the preset rc's @rules_dx// flags are rewritten to @my_dx//, the consumer's repo name (No repository visible as '@rules_dx').
  • quickstart_consumer_test.rs: on Windows the quickstart and bcr_test_module consumers start with a .bazelrc holding the preset's :windows lines (MSVC-ABI host and execution platform, rust-lld) plus the licence lines docs/cli/commands/windows.md asks users to add. Unpinned, these consumers build @rules_dx//cli/cli:dx from source before dx init writes the preset; the default Windows host has an unconstrained ABI, so the llvm cc toolchain drove GNU-style clang++ while rustc targeted x86_64-pc-windows-msvc and passed /NOLOGO, kernel32.lib.
  • quickstart_consumer_test.rs ok (shared with the candidate case): a failing nested run's last 80 lines also go to the uncaptured stderr, so a run killed by its timeout still shows why a case failed.
  • BUILD.bazel: size = "small" from dx generate.
  • candidate_consumer_test.rs: the candidate consumer's .bazelrc gets the same licence lines (run 43532004526: MSVC license check failed for windows_support++msvc_runtime+msvc_runtime).

Evidence

  • evidence.yml run 43580082925 (windows_x86_64, //deploy/private/release/tests:release_consumer_smoke_test, test_timeout=3000, head 8a7b751): PASSED in 2897.7s, all three cases.
  • evidence.yml run 43578902287 (windows_x86_64): TIMEOUT at the default 600s; the candidate case reached dx check and the quickstart cases had not started.
  • evidence.yml run 43540215718 (windows_x86_64, release_consumer_smoke_test): rejected at "Validate workflow inputs" before any test ran: flags holds '--test_timeout=3000'; only --//label=value and --config=name are accepted. The rules_rust patch mirror and BAZEL_SH fixes in e06c8de have no Windows result yet.
  • evidence.yml run 43536703509 (windows_x86_64): FAILED. Quickstart and bcr cases: process_wrapper (exec config) linked by clang++ with MSVC flags, because the consumer's rules_rust lacked exec_scope_universal.patch, so toolchain_linker_preference=rust did not reach the exec configuration. Candidate case: No suitable shell toolchain found (no BAZEL_SH in the nested env). Both fixed in e06c8de: RULES_RUST_PATCHES mirrors the root MODULE.bazel list, and nested runs get BAZEL_SH on Windows.
  • evidence.yml run 43534788015 (windows_x86_64, //deploy/private/release/tests/...): FAILED, TIMEOUT at 600s. The candidate case failed at bazel build and bcr_test_module_runs_its_presubmit_targets failed; their assertion text was lost with the timeout. No /NOLOGO link error in the log.
  • evidence.yml run 43532004526 (windows_x86_64, //deploy/private/release/tests:release_consumer_smoke_test): FAILED. @@rules_dx+//cli/cli:dx failed to link: clang++ received MSVC-style flags (/NOLOGO, kernel32.lib) as input files. That is the Windows toolchain link step, not a file this PR changes; the test ran 555s and 3 cases failed on it.
  • Run 43521265403 (windows_x86_64): release_consumer_smoke_test TIMEOUT at 600s; the quickstart assertion text is not in the log because the timeout killed the output.
  • //tools/testing/nested:dx_nested_test: PASSED locally. dx check --affected did not finish in 19 minutes and was stopped. Nested consumer cases were not run locally; the proof is the ci.yml network job.
  • ci.yml run 43375254866 network job (previous head): rules_py and rules_flutter now resolve; it failed on the two errors above. Its examples/adopt-polyglot:consumer_test failure (rules_py@2.0.0-alpha.11 not found) and the other failing jobs are not this PR's files.
  • ci.yml run 43377887197 (network job): quickstart cases got past ldd; the candidate case still failed Unable to determine host libc! (its runs did not get the ldd PATH).
  • ci.yml run 43383662342 (network job): failed. The candidate case got past ldd and the GCC step, then failed at bazel build with the same no such package 'rust/private' error (@@rules_rust++crate+dx_crates__serde_json-1.0.151//:_bs).
  • bazel build //deploy/private/release/tests:release_consumer_smoke_test: OK.
  • dx check --affected / dx format --affected: clean apart from the filtered nested test.
  • Not run: //deploy/private/release/tests:release_consumer_smoke_test is nested Bazel and was not run locally. Evidence run 43373560723 (linux_x86_64) is not proof: evidence.yml adds --config=rbe on linux_x86_64, so the test ran remotely. rules_dx_source() then resolved to the runfiles tree instead of a git checkout, which gave not a git repository and 'javascript' is not a package. The proof run is the ci.yml network job (merge_group, schedule or dispatch), which runs the test locally. Main's network job (run 43208363961) fails on the two things this PR changes: rules_py@2.0.0-alpha.11 not found and FLUTTER_VERSIONS[flutter_version].

Remaining for #10990

  • Cold Windows runs take about 2900s, above the target's moderate timeout, until the release nested cache set below is recorded.
  • Decide how the dynamic candidate and quickstart consumers share one recorded lock (nested_cache_update fails when locks differ), then record the release cache set (nested_repository_cache.set, tools/testing/nested_cache/release.txt, release.MODULE.bazel.lock) with bazel run //tools/testing:nested_cache_update -- //deploy/private/release/tests:release_consumer_smoke_test online, or evidence.yml flags=--config=nested_record plus --from.
  • Switch the target to nested_bazel_test(cache = "release") and drop NESTED_BAZEL_NETWORK_*.
  • Record the cold time in tools/testing/nested_smoke.txt.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

@TrapsterDK TrapsterDK added the needs-review Touches review paths; needs a second-session Review: comment label Nov 13, 2026
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Run 43383662342: the ldd fix works. The candidate case now gets past host libc detection and the GCC step. All three nested cases (candidate, readme quickstart, bcr_test_module) now fail only at no such package 'rust/private' from @@rules_rust++crate+dx_crates__*//:_bs. A consumer cannot build @rules_dx//:dx from source until the owner picks one fix: (a) a rules_rust patch that renders annotation labels (build_script_toolchains //rust/private:build_script_cc_env, msvc_lib tools) canonical to the declaring module, which changes MODULE.bazel and the lock, or (b) make the quickstart and candidate consumers use a prebuilt dx. Other failing jobs (preflight crate digest, hermetic*, docs-check, workflow-check, coverage-cells, adopt-polyglot consumer_test) are not in this PR's files. Pending local follow-up: generate wants size = "small" on the rust_test in deploy/private/release/tests/BUILD.bazel.

@TrapsterDK
TrapsterDK force-pushed the issue-10990-release-harness branch from 39c5faa to a5694f1 Compare November 13, 2026 23:07
@TrapsterDK
TrapsterDK marked this pull request as ready for review November 14, 2026 00:18
@TrapsterDK
TrapsterDK marked this pull request as draft November 14, 2026 00:19
@TrapsterDK
TrapsterDK force-pushed the issue-10990-release-harness branch from e06c8de to a7c4b4a Compare November 14, 2026 01:24
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Run 43544584889 (12115 stacked on these commits) failed: the consumers copy patches/rules_rust and patches/llvm, but deploy/private/release/tests:release_consumer_smoke_test data lists neither. 12115 commit b8e8103 adds them; this branch needs the same.

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Windows evidence, head after 4 harness commits (llvm, windows_support, protobuf patches, platform-specific config in the quickstart rc). Run 43547707961 still FAILED, but the failures moved: no clang++ /NOLOGO link error, no shell toolchain error, candidate case passes bazel build, bazel test and mod explain. Remaining: cargo_build_script_runner in the nested exec config (windows_msvc_host) panics "Unable to start command ... bs.exe: Os code 267 NotADirectory" for dx check (candidate) and rules_rust_prost build scripts (bcr_test_module, quickstart). Earlier runs: 43544044821, 43545833502, 43542810880, 43540414173. Not ready; cache record and nested_bazel_test switch not done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

@TrapsterDK
TrapsterDK force-pushed the issue-10990-release-harness branch from 74d1ddb to ec10a45 Compare November 14, 2026 03:05
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Windows evidence run 43554771413 dispatched (test_timeout=3000). Run 43552343929 got past the cargo build-script error 267 (nested root now under a short path); it then failed on missing BAZEL_SH for dx check, rules_julia patches, and the 300s call deadline, fixed in the latest commit.

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Windows evidence run 43554771413 failed, not green: quickstart: Config value 'dx_build_dev' is not defined in any .rc file; bcr_test_module: no cc toolchain for //:android_device_cc; candidate: dx check phases clean, a later step fails. Run 43551227398 shows 267 NotADirectory fixed by the short nested root. PR stays draft.

@TrapsterDK
TrapsterDK force-pushed the issue-10990-release-harness branch from 1007814 to fcb903c Compare November 14, 2026 04:41
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Rebased onto main (fcb903c). Run 43554771413 fixes:

  • quickstart Config value 'dx_build_dev' is not defined: the Windows .bazelrc repeated preset lines, so dx init --apply added no preset imports (owned-line collision). The quickstart now cuts .bazelrc back to the licence lines before dx init.
  • candidate dx check generate finding: app_test gets size = "small"; a failing dx check now prints the rewritten BUILD.bazel.
  • LLVM_PATCHES and the test data follow main (msvc_link_lib_env.patch removed in cc: rules_dx clang-cl toolchains set LIB on MSVC link actions (part of #11416) #12667, toolchains_gate added).

bcr_test_module //:android_device_cc on Windows: the NDK toolchain is pinned for linux_x86_64 exec only. Tracked in #12700; this PR waits on it.

Windows evidence run 43557933128 dispatched. PR stays draft.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

@TrapsterDK
TrapsterDK force-pushed the issue-10990-release-harness branch from fcb903c to d05a9bd Compare November 14, 2026 05:46
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Rebased onto main (35e7a37). Run 43557933128 failed on no such package 'config' from @@llvm+//toolchain: toolchains_gate.patch names @@//config:toolchains_on, the consumer's root. Nested consumers now pin llvm without it (d05a9bd). Windows evidence run 43563120784 dispatched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Windows evidence rounds (rebased on 35e7a37):

  • 43563120784: llvm no such package 'config' gone (d05a9bd). Timed out at 600s.
  • 43565776024 (test_timeout=3000): quickstart/bcr dx_upstream link: rust-lld: could not open 'libc++.lib'; the pre-init Windows .bazelrc lacked --@rules_dx//config:toolchains=true, so the gated clang_cl cc toolchain was off. Fixed in 3a6a78b.
  • 43569002745: dx now builds. Remaining, not fixed here:
    • candidate and quickstart: Windows dx generate removes rust_binary/rust_test (dx generate --diff shows both deleted; quickstart then hits No test targets were found). The gazelle runner also logs cut.exe: the delimiter must be a single character.
    • bcr_test_module: android_sdk: accept android-sdk-license before acquisition for dx_android_ndk_windows_x86_64 (NDK now pinned for Windows exec via android: pin NDK r27 for windows_x86_64 and macos exec hosts (part of #12700) #12708).
      PR stays draft.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Rebased onto main (fe4070d); kept main's timeout = "moderate".

  • dx generate dropping rust_binary/rust_test was not Windows-specific: the rust gazelle removed any flat-layout rule (srcs = ["main.rs"] outside src//tests/) as stale on Linux too. It now keeps rules naming a present source no generated rule claims (f5758e6, fixture gazelle/rust/testdata/merge/crates/flat).
  • bcr_test_module/MODULE.bazel accepts android-sdk-license via dx_licenses.accept, as consumer roots do.
  • //gazelle/rust:generation_test, //gazelle/rust:rust_test: PASSED locally.
    Windows evidence run 43573361995 dispatched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Windows evidence run 43573361995 (f5758e6, test_timeout=3000): 2 of 3 cases pass.

  • candidate_consumer_test: ok (the check step keeps the flat rust rules now).
  • bcr_test_module_runs_its_presubmit_targets: ok (android-sdk-license accepted).
  • the_readme_quickstart_runs_as_written: FAILED at the dx test step after dx init --apply: ERROR: No test targets were found, yet testing was requested / dx: no_tests: no test targets match the scope. The README quickstart BUILD.bazel is empty; on Windows no test target is left after init. Not fixed here.
    PR stays draft.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

TrapsterDK and others added 8 commits November 14, 2026 09:46
…e the other consumers (part of #10990, part of #12005)

The candidate consumer gets rules_py_override and rules_flutter_override with their
patches and still resolves rules_dx only from the staged registry. Both quickstart
cases add rules_flutter_override and copy the rules_flutter patches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hygW8NyPkC1Ea1mT4L
… names my_dx (part of #10990)

The quickstart cases run nested Bazel with a PATH holding only the host
ldd, which the rules_py host platform repository runs on Linux. The
candidate consumer rewrites the preset's @rules_dx flags to its my_dx
repo name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hygW8NyPkC1Ea1mT4L
The candidate consumer's nested Bazel runs and its GCC shim PATH now hold
the host ldd, as the quickstart cases do, so rules_py's host platform
repository can determine the libc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hygW8NyPkC1Ea1mT4L
…inker (part of #10990)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…s and the licence lines (part of #10990)

The unpinned quickstart and bcr_test_module consumers build dx from source
before dx init writes the preset. On Windows the default host has an
unconstrained ABI, so the llvm cc toolchain drives GNU-style clang++ while
rustc targets x86_64-pc-windows-msvc and passes MSVC link flags. The
consumers now start with the preset's Windows lines (MSVC-ABI host and
execution platform, rust-lld) and the licence lines windows.md asks users
to add; the candidate consumer gets the licence lines too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…e uncaptured stderr (part of #10990)

Run 43534788015 hit its 600s timeout after the candidate and bcr_test_module
cases failed, so libtest never printed their assertions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
… on Windows (part of #10990)

The consumer's rules_rust override now lists every patch of the root
MODULE.bazel; without exec_scope_universal the exec configuration lost
toolchain_linker_preference=rust and linked process_wrapper with clang++
given MSVC flags. Nested Bazel and dx runs get BAZEL_SH on Windows so
the candidate's test analysis finds a shell toolchain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
TrapsterDK and others added 15 commits November 14, 2026 09:46
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…atch (part of #10990)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…pt runfiles resolve (part of #10990)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…iles (part of #12075)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…st data (part of #10990)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…uild-script working directories fit CreateProcess (part of #10990)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…d a Windows-length call deadline (part of #10990)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…didate app_test is size small, llvm patch list follows main (part of #10990)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…/config labels name the root repository (part of #10990)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…//config:toolchains line, so the clang_cl cc toolchain serves libc++.lib (part of #10990)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…claims; bcr_test_module accepts android-sdk-license (part of #10990)

A flat-layout rust_binary(srcs = ["main.rs"]) or rust_test outside src/
and tests/ was removed as stale by dx generate on every platform, which
the candidate consumer hit on Windows. bcr_test_module accepts the
Android SDK licence the way consumer roots do, so the Windows NDK
repository resolves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…notice (part of #10990)

The README quickstart runs `tools/dx test //...` right after `dx init` in an
empty workspace; Bazel exits 4 there and dx failed with no_tests. Narrower
patterns without tests still fail with no_tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
@TrapsterDK
TrapsterDK force-pushed the issue-10990-release-harness branch from f5758e6 to 8a7b751 Compare November 14, 2026 09:05
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Rebased onto main (d8dbee9); kept main's win32_x86_32.patch beside the rules_rust patch list in deploy/private/release/tests/BUILD.bazel.

  • Quickstart no_tests: not Windows-specific. dx init in the README's empty workspace generates no test targets on any platform, so Bazel exits 4 on dx test //.... dx test //... now passes with dx: the workspace has no test targets (JSON notice workspace_without_tests); narrower patterns still fail with no_tests (8a7b751, cli/cli/src/exec/test_reports.rs).
  • //cli/cli:dx_cli_test filtered to exec::test_reports and exec::workflow: 275 passed. The unfiltered suite hit its test timeout locally in exec::workflow::stream_probe_tests, not this change.

Windows evidence run 43578902287 dispatched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Evidence run 43578902287 (windows_x86_64): TIMEOUT at 600s; the candidate case reached dx check and the quickstart cases (RUST_TEST_THREADS=1) never started, so the cold nested builds exceed 600s. Redispatched as run 43580082925 with test_timeout=3000.

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Evidence run 43580082925 (windows_x86_64, test_timeout=3000) PASSED on 8a7b751. The red analysis check is //cli/cli:dx_cli_test TIMEOUT in exec::startup_defaults_launcher_tests::init_and_completion_run_without_a_workspace, which also times out on origin/main locally; this PR does not touch that test or dx init. Locally on the rebased tree: //tools/testing/nested:dx_nested_test and //gazelle/rust tests pass.

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