Skip to content

java guard: rules_scala exe/scalac_bootstrap from #14409 fails the java prebuilt guard #14594

Closed

Description

@TrapsterDK

Blocks #13971.

Where: the Java prebuilt guard on main flags rules_scala exe/scalac_bootstrap, added by #14409. The jline sources jar is also unrecorded.

Fix: build scalac_bootstrap from source or from a recorded, sha256-pinned input so the guard passes without an allowlist entry, and record the jline sources jar. Guard allowlists only shrink.

Activity

  1. added
    P2
    cloud-pool
    on Nov 21, 2026
  2. TrapsterDK commented on Nov 21, 2026

    @TrapsterDK
    CollaboratorAuthor

    cloud-claim f5be43c8


    Generated by Claude Code

  3. added
    cloud-taken
    and removed
    cloud-pool
    on Nov 21, 2026
  4. TrapsterDK commented on Nov 21, 2026

    @TrapsterDK
    CollaboratorAuthor

    /evidence platforms=["linux_x86_64"] task=test scope=//tools/testing/consumer:java_prebuilt_guard_test


    Generated by Claude Code

  5. TrapsterDK commented on Nov 21, 2026

    @TrapsterDK
    CollaboratorAuthor

    Next slice: read the java guard evidence requested above (main, linux_x86_64) for the rule kind and path that reach rules_scala exe/scalac_bootstrap. The Java check aspects (java/private/quality/jvm.bzl) don't load Scala. The candidates are the registered dx_scala_toolchains (resolved by something that requests @rules_scala//scala:toolchain_type) and scalac_check_aspect's exec attrs (_dependency_analyzer is a rules_scala target, resolved wherever the aspect applies). required_providers can't gate the aspect: rules_scala's rules advertise only JavaInfo. Record the jline sources jar in the java cache set with /lock-refresh nested=true on the fixing PR.


    Generated by Claude Code

  6. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor
  7. added
    cloud-pool
    and removed
    cloud-taken
    on Nov 22, 2026
  8. TrapsterDK commented on Nov 22, 2026

    @TrapsterDK
    CollaboratorAuthor

    cloud-claim 85af6871


    Generated by Claude Code

  9. added
    cloud-taken
    and removed
    cloud-pool
    on Nov 22, 2026
  10. TrapsterDK commented on Nov 22, 2026

    @TrapsterDK
    CollaboratorAuthor

    /evidence platforms=["linux_x86_64"] task=test scope=//tools/testing/consumer:java_prebuilt_guard_test


    Generated by Claude Code

  11. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor
  12. TrapsterDK commented on Nov 22, 2026

    @TrapsterDK
    CollaboratorAuthor

    Next slice: read evidence run https://github.com/devhusdk/rules_dx/actions/runs/45011978294 (current main; was still queued). The earlier run 44956487215 never reached the rules_scala check: it failed first on dx_target_guard:pcov (allow_files), which #14510 fixed after that commit. Facts so far: since #14409, rules_scala lives in rules_dx++dx_pins+rules_scala, which compiled_binaries counts as rules_dx (prefix rules_dx+), and the allowlist's repo line only covers scala consumers. In the main repo, somepath from every java command root (dx:generate, generate_check, env, codegen, docs/site:scope_tools, //:dx, cosign, gitleaks, trivy, java/private/ide:java_tool, java/private/tools/lock) and from the java hello/junit fixtures reaches neither scalac:scalac_bootstrap nor exe:exe. So the path is the dx_prebuilt_guard check/docs aspect wrapper (or a nested-only root). The only registrations are @dx_scala_toolchains//:all (scala and testing toolchain types only). The aspect query couldn't run here: the cloud proxy returns 403 for the bazel-contrib/rules_ruby archive (attach: bazel-contrib/rules_ruby).


    Generated by Claude Code

  13. added
    cloud-pool
    and removed
    cloud-taken
    on Nov 22, 2026
  14. TrapsterDK commented on Nov 22, 2026

    @TrapsterDK
    CollaboratorAuthor

    cloud-claim 841a08fd


    Generated by Claude Code

  15. added
    cloud-taken
    and removed
    cloud-pool
    on Nov 22, 2026
  16. TrapsterDK commented on Nov 22, 2026

    @TrapsterDK
    CollaboratorAuthor

    Already fixed: evidence run https://github.com/devhusdk/rules_dx/actions/runs/45011978294 ran //tools/testing/consumer:java_prebuilt_guard_test uncached (--noremote_accept_cached) on main 4d1324d, linux_x86_64: PASSED in 36.7s. Closing.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2cloud-taken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions