Skip to content

julia: ship the source-built libjulia-internal to consumers (part of #13965) - #14199

Merged
TrapsterDK merged 2 commits into
mainfrom
cloud/11123
Nov 21, 2026
Merged

TrapsterDK merged 2 commits into
mainfrom
cloud/11123

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Pull Request

Linked Issue

Part of #13965
Part of #11123

Changes

  • MODULE.bazel: the six julia_src* archives move from dx_pins_dev to dx_pins. //julia/private/runtime:source_toolchain is registered without dev_dependency, so consumers on Linux x86_64 also run Julia actions on the source-built libjulia-internal.
  • julia/private/runtime and patches/julia get a module_srcs filegroup and join //:module_srcs.

Verification

  • tools/dx check --apply --output=text MODULE.bazel BUILD.bazel julia/private/runtime/BUILD.bazel patches/julia/BUILD.bazel: no findings, no rewrites.

Tested: //tools/testing:module_extension_srcs_test, //tools/testing:module_srcs_test, //julia/private/runtime:julia_src_version_test, //julia/private/runtime:libjulia_internal_test, //core/modules:consumer_deps_test, //core/modules:versions_contract, //tools/api:api_test, //patches:update_readme_test, //julia/tests/fixtures/hello:greet_test, //julia/tests/fixtures/hello:hello_output_test — all pass locally.

Not run: the nested consumer test //tools/testing/hermetic:julia_fixture (nested Bazel cannot run in this container); /evidence requested below. Draft until it passes.

Remaining for #13965: turn the three _BYTE_EDITS into C patches in patches/julia/, send deterministic_objectid.patch upstream, run determinism_check on hello_standalone.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

/evidence platforms=["linux_x86_64"] task=test scope=//tools/testing/hermetic:julia_fixture


Generated by Claude Code

@TrapsterDK TrapsterDK added the needs-review Touches review paths; needs a second-session Review: comment label Nov 20, 2026 — with Claude
@github-actions

Copy link
Copy Markdown
Contributor

Evidence started on cloud/11123: https://github.com/devhusdk/rules_dx/actions/runs/44712863474

Copy link
Copy Markdown
Collaborator Author

analysis (PR-time checks on linux_x86_64) fails on MODULE.bazel.lock is no longer up-to-date because an input to the extension '@@//dart:extensions.bzl%pub' changed: ... third_party/dart/pubspec.lock. Not from this PR: the same bazel build --nobuild --lockfile_mode=error //dart/tests/fixtures/dart_app/ledger:ledger fails on main at 0d79035 (the base), after #14187 added the inputs marker to that pubspec.lock. This PR does not touch dart, and dx_pins has no entry in MODULE.bazel.lock, so moving the julia_src* archives needs no lock change.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 0) fails only on //android/tests/conformance:format_error_test (subject_matches_mode panics at tools/testing/conformance/runner_test.rs:16). Not from this PR: the same test fails the same way on main at 0d79035, this PR's base, and the diff touches no android or conformance code.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 22) fails only on //rust/tests:rust_analyzer_acquisition_test (ide_acquisition_answers_version panics at tools/ide/ide_acquisition_test.rs:49). Not from this PR: it fails the same way on main at 0d79035, the base, and the diff touches no rust or IDE code. Shard 12 failed on the dart pub lockfile error noted above.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 23): the //tools/ci guards host_env_test, hub_literals_test, lint_attributes_test, lock_hub_names_test and lock_registry_test fail the same way on main at 0d79035 (the base). Their julia lines (julia/private/runtime/defs.bzl run-shell, julia_src.BUILD.bazel genrule) come from #14192, already on main. aggregate_gates_test, config_consistency_test and prose_rules_test are known main failures, and this PR does not touch the files they check. //tools/api:api_test passes locally on this head and on this head merged with main 3cd7b0a, so I could not reproduce its CI failure; the job log does not show its output.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shards 4, 8, 10, 13, 15 and 26: none of these failures come from this PR. Each one fails the same way on main at 0d79035 (the base), or is a CI scope error:

  • Shard 8: //core/quality/testdata:matrix_sql_lint_parse_error and matrix_text_typos_fail fail on the base.
  • Shard 10: //core/tests:pins fails on the base with julia_src_{libllvm,libunwind,libuv,zstd} url names the version. version is 20.1.8+2 and the URL spells it %2B2; the entries came with julia: build patched libjulia-internal 1.12.5 from source on Linux x86_64 (part of #11123, #13448) #13449 and are unchanged on main 3cd7b0a. The shard's other tests aborted.
  • Shard 15: //gazelle/julia:stdlib_test, //gazelle/csharp:generation_test, //gazelle/ocaml:ocaml_test and //gazelle/rust:generation_test fail on the base.
  • Shards 4 and 13: the builds aborted, and no test failed on its own.
  • Shard 26: dx: invalid_scope: unsupported scope "@llvm//tests/stage0_features:stage0_features_test". The affected-tests job passed an external label to dx test; this PR does not touch that workflow or llvm.

Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 11) fails only on //csharp/tests/fixtures/xunit:csharp_coverage_test_on, which also fails on main at 0d79035 (the base). This PR touches no C# code.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shard 25: //tools/testing:toolchain_gate_test was this PR's. The source_toolchain registration, now non-dev, lacked //config:toolchains_on. e9c30ab adds the gate and lists the registration under GATED; the test passes locally, and the julia runtime and hello tests still pass. //tools/testing/consumer:root_module_test fails on main at 0d79035 with 12 problems. With this PR it has 10: the julia dev-registration and dev-repo problems are gone and none are new. //tools/testing:language_skeleton_test is a known main failure.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shards 7 and 24 (head e16cb7f): //core/quality/testdata:matrix_rust_typos_fail, //tools/ide:lsp_headless_rust_analyzer_test and //tools/testing/consumer:apple_consumer_test also fail on main at 0d79035 (the base). This PR touches none of their code.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shard 5 (head e9c30ab): no test failed. The //core/quality/testdata targets aborted, as in shards 4 and 13, and none of them is julia code.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shard 4 (head e9c30ab): //config:workspace_policy fails on main at 0d79035 (the base) with FAIL: observations. Its julia lines are the per-language policy fields, which this PR does not change.


Generated by Claude Code

…13965)

The julia_src archives move from dx_pins_dev to dx_pins, and
//julia/private/runtime:source_toolchain is no longer a dev registration,
so consumers on Linux x86_64 also run Julia actions on the source-built
library. julia/private/runtime and patches/julia join //:module_srcs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hw629GmEoQWzzT84or
A non-dev registration of a shared toolchain type needs the gate, so
//tools/testing:toolchain_gate_test lists it with the gated ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hw629GmEoQWzzT84or
@TrapsterDK
TrapsterDK marked this pull request as ready for review November 21, 2026 00:17
@TrapsterDK
TrapsterDK merged commit 47d9248 into main Nov 21, 2026
@TrapsterDK
TrapsterDK deleted the cloud/11123 branch November 21, 2026 00:17
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.

2 participants