Skip to content

Conversation

@mbland
Copy link
Collaborator

@mbland mbland commented Oct 27, 2025

Description

Removes unnecessary scala_deps.scala() tags from the dt_patches/test_dt_patches{,_user_srcjar} and
test/compiler_sources_integrity modules. Removes bazel shutdown commands to speed up several tests, notably
dt_patches/dt_patch_test.sh and test/shell/test_examples.sh.

Motivation

These changes are broken out from a larger change to commit MODULE.bazel.lock files. That upcoming change will explain the rationale for doing so, but these changes stand alone as incremental improvements in their own right.

Removing the scala_deps.scala() tags prevents the scala_deps extension from creating repos for the default Scala toolchain. These particular tests define their own Scala toolchains, so the tests still pass without the extra default Scala toolchain footprint. This has the additional benefit of making the resulting MODULE.bazel.lock files much smaller.

The test speedups from removing bazel shutdown were opportunistic improvements during the course of the MODULE.bazel.lock investigation.

Removes unnecessary `scala_deps.scala()` tags from the
`dt_patches/test_dt_patches{,_user_srcjar}` and
`test/compiler_sources_integrity` modules. Removes `bazel shutdown`
commands to speed up several tests, notably
`dt_patches/dt_patch_test.sh` and `test/shell/test_examples.sh`.

---

These changes are broken out from a larger change to commit
`MODULE.bazel.lock` files. That upcoming change will explain the
rationale for doing so, but these changes stand alone as incremental
improvements in their own right.

Removing the `scala_deps.scala()` tags prevents the `scala_deps`
extension from creating repos for the default Scala toolchain. These
particular tests define their own Scala toolchains, so the tests still
pass without the extra default Scala toolchain footprint. This has the
additional benefit of making the resulting `MODULE.bazel.lock` files
much smaller.

The test speedups from removing `bazel shutdown` were opportunistic
improvements during the course of the `MODULE.bazel.lock` investigation.
@mbland
Copy link
Collaborator Author

mbland commented Oct 27, 2025

@simuons @WojciechMazur Once this pull request and #1783 lands, I'll be able to send a pull request for MODULE.bazel.lock changes.

Here's a preview of what it will look like, using a commit stacked on top of the changes from this pull request and #1783:

@mbland mbland merged commit 747b660 into bazel-contrib:master Oct 28, 2025
1 check passed
@mbland mbland deleted the test-updates branch October 28, 2025 00:15
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.

2 participants