Commit Graph

17488 Commits

Author SHA1 Message Date
Anatolii Kmetiuk 1a3c6b5007 Fix #8340: Add regression test 2025-12-10 11:34:25 +09:00
eugene yokota 507d221048
Merge pull request #8402 from anatoliykmetyuk/fix/forked-test-resources-access
Fix #8345: forked test execution doesn't access main resources
2025-12-08 23:14:35 -05:00
eugene yokota 6cb1751583
Merge pull request #8404 from azdrojowa123/build-target-sources
Return build targets sources from `buildTarget/dependencySources` request
2025-12-08 23:13:32 -05:00
Aleksandra Zdrojowa 0d9f40811b return build targets sources from `buildTarget/dependencySources` request #8403 2025-12-08 19:22:35 +01:00
Anatolii Kmetiuk 4bcf866193 Add regression test for #8345 2025-12-08 14:35:31 +09:00
Anatolii Kmetiuk 862884b330 Fix #8345: forked test execution doesn't access main resources
Fixes issue where tests running in forked mode (Test / fork := true)
cannot access resources from src/main/resources, while non-forked
execution works correctly.

Root cause: Context classloader not set: tests using
Thread.currentThread().getContextClassLoader() couldn't find
resources because the context classloader wasn't set to the
URLClassLoader with the classpath

Solution: Set context classloader in ForkTestMain.runTests() to the
URLClassLoader containing the test classpath
2025-12-08 14:17:09 +09:00
eugene yokota 33019a6453
Merge pull request #8401 from xuwei-k/Xfatal-warnings-Werror
Use `-Werror` instead of `-Xfatal-warnings`
2025-12-06 14:32:45 -05:00
xuwei-k 2b9211e5b4 use -Werror instead of -Xfatal-warnings 2025-12-05 16:22:07 +09:00
eugene yokota 87765c7035
Merge pull request #8399 from azdrojowa123/popOnFailure-order
change the order of FailureWall & PopOnFailure in the reload command
2025-12-04 21:10:12 -05:00
Aleksandra Zdrojowa 1f269ad604 change the order of FailureWall & PopOnFailure in the reload command #8389
- it's done to prevent the sbt process from being killed in case of task failure after a load failure has been executed
2025-12-04 16:12:11 +01:00
eugene yokota ba8acdd27c
Merge pull request #8394 from eed3si9n/wip/repro-resource
[2.x] fix: Fixes managed resources missing from the JAR
2025-11-29 01:38:31 -05:00
Eugene Yokota ffc2f8c35d fix: Fixes managed resources missing from the JAR
**Problem**
RC-7 is missing the managed resources.

**Solution**
This triggers managed resources so they get generated.
2025-11-28 23:51:08 -05:00
eugene yokota 1fbe516465
Merge pull request #8390 from xuwei-k/mima-RC7
Update mima setting
2025-11-26 21:25:04 -05:00
xuwei-k 97700a4b76 Update mima setting 2025-11-27 07:16:46 +09:00
eugene yokota e7c969f1bf
Merge pull request #8388 from eed3si9n/wip/history
[2.x] fix: Fixes JLine history
2025-11-25 23:37:39 -05:00
Eugene Yokota f097a12f7e fix: Fixes JLine history
**Problem**
JLine history disappears if we change the Scala version.

**Solution**
Put it back into a non-crossed path.
2025-11-25 23:06:46 -05:00
eugene yokota 476a8fb3a0
Merge pull request #8382 from eed3si9n/wip/remove-old-remote
[2.x] Remove sbt 1.x remote cache impl
2025-11-25 12:58:39 -05:00
eugene yokota b43b73c319
Merge branch 'develop' into wip/remove-old-remote 2025-11-25 02:34:16 -05:00
eugene yokota 17f8fceed3
Merge pull request #8385 from eed3si9n/wip/merge-1.12.x
[2.x] merge 1.12.x
2025-11-25 02:33:29 -05:00
Eugene Yokota fe266cd59e Merge branch '1.12.x' into wip/merge-1.12.x 2025-11-25 02:13:03 -05:00
eugene yokota 90a209edb5
Merge pull request #8387 from hamzaremmal/i8386
[1.x] do not assume scala3_library to be a jar
2025-11-25 00:25:37 -05:00
Hamza Remmal 531c5d18db
do not assume scala3_library to be a jar 2025-11-24 22:01:33 +01:00
Eugene Yokota 5730383340 Merge branch '1.12.x' into wip/merge-1.12.x 2025-11-24 02:14:17 -05:00
dependabot[bot] ee03e7606e [1.x] Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 14:14:23 +09:00
dependabot[bot] 36e0331909 Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 14:14:09 +09:00
Eugene Yokota 77e74871ad Remove sbt 1.x remote cache imple 2025-11-23 22:47:21 -05:00
eugene yokota 9bfc80c65c
Merge pull request #8379 from eed3si9n/wip/clean
[2.x] Adds cleanFull command
2025-11-23 18:07:57 -05:00
Eugene Yokota d1e0a5a35d cleanFull 2025-11-23 14:45:21 -05:00
Eugene Yokota c8edb171ee [2.x] Adds cleanExpunge command
**Problem**
We might want to clear the disk cache.

**Solution**
This adds cleanExpunge command.
2025-11-22 23:12:18 -05:00
eugene yokota fe6e9b4802
Merge pull request #8377 from eed3si9n/wip/compiler-bridge
[2.x] perf: Cache compiler bridge binary
2025-11-22 15:30:00 -05:00
Eugene Yokota 68b2b7d025 [2.x] perf: Cache compiler bridge binary
**Problem**
Compiler bridge resolution calls out to Coursier,
and it shows up on the profiler.

**Solution**
This uses sbt 2.x caching to cache the prebuilt compiler bridge binaries
to avoid calling Coursier from second time onwards.
2025-11-19 03:26:13 -05:00
eugene yokota df11b264db
Merge pull request #8375 from azdrojowa123/reload-on-source-changes
Trigger only load (without loadFailed) in the case of NetworkChannel
2025-11-19 00:44:47 -05:00
Aleksandra Zdrojowa da42031bb3 remove the `isInteractive` check when deciding whether to trigger an additional reload #8371 2025-11-18 21:48:11 +01:00
eugene yokota 17d54e1985
Merge pull request #8374 from eed3si9n/wip/copy-directory
[2.x] perf: Avoid copying directories
2025-11-18 01:12:41 -05:00
Eugene Yokota 6c56a769fd Enable sbt-native-packager test 2025-11-18 00:34:47 -05:00
Eugene Yokota 6a2e0a9b04 [2.x] perf: Avoid copying directories
**Problem**
Directory copying is showing up as performance hot spots.

**Solution**
This avoid copying classes or resources.
2025-11-17 05:25:59 -05:00
Aleksandra Zdrojowa 8770ad9de8 trigger an additional reload only if it's a ConsoleChannel, an interactive NetworkChannel, or a NetworkChannel where the exec ID is known, to ensure the response can be propagated correctly #8371 2025-11-17 11:16:07 +01:00
Aleksandra Zdrojowa 5d42dd65c8 filter out `bspReload` to avoid triggering an additional reload if bspReload is in the remaining commands #8371 2025-11-17 10:19:45 +01:00
eugene yokota 67b4434507
Merge pull request #8373 from eed3si9n/wip/early
[2.x] scalaEarlyVersion setting and source directories
2025-11-16 18:20:49 -05:00
Eugene Yokota d0ae314748 scalaEarlyVersion setting and source directories
**Problem**
During the milestone releases of Scala, e.g. Scala 2.13.0-M1,
scalaBinaryVersion by design points to 2.13.0-M1,
and also the source directory uses scala-2.13.0-M1,
but in most cases we actually want to pretend compatibility
and use scala-2.13 directory.

**Solution**
This introduces a new setting called scalaEarlyVersion,
which is the scalaBinaryVersion of the release version of milestones.
We have been calling this "partial version", but that broke
down for Scala 3, which adopted semantic versioning.
2025-11-16 18:02:17 -05:00
eugene yokota dabfb24023
Merge pull request #8368 from eed3si9n/wip/parser
[1.x] fix: Parse with -Xsource:3
2025-11-15 01:47:15 -05:00
Eugene Yokota 6daa99b2db fix: Parse with -Xsource:3
**Problem**
On IntelliJ the users are getting the hint to upgrade to -Xsource:3
style, however the supported syntax do not parse.

**Solution**
This adds -Xsource:3 to the parser. The metabuild compilation uses
-Xsource:3 since sbt 1.6.0.
2025-11-14 00:51:28 -05:00
eugene yokota 2459663387
Merge pull request #8365 from eed3si9n/wip/cache-is-super-shell
[2.x] perf: cache isSupershellEnabled
2025-11-13 00:16:48 -05:00
Eugene Yokota a38a1aa4d0 [2.x] perf: cache isSupershellEnabled
**Problem**
isSupershellEnabled apparently shows up in profiling
constructing the Map structure for sys props.

**Solution**
Cache isSupershellEnabled.
2025-11-12 22:38:45 -05:00
eugene yokota 7a96851176
Merge pull request #8364 from eed3si9n/wip/cache-analysis
[2.x] perf: Cache Zinc Analysis across compilations
2025-11-12 22:27:02 -05:00
Eugene Yokota 8023eeee20 perf: Cache Zinc Analysis across compilation
**Problem**
Protobuf reading shows up as one of the bottlenecks during no-op compilation.

**Solution**
This adds a local, in-memory cache of Zinc Analysis using the timestamp
and the file size of the persisted protobuf file.
2025-11-12 02:35:18 -05:00
eugene yokota 83376f3cea
Merge pull request #8363 from eed3si9n/wip/hash
[2.x] perf: Cache content hash of binary files
2025-11-11 17:41:42 -05:00
Eugene Yokota 4265b92aa4 perf: Cache content hash of binary files
**Problem**
sha256 is currently a bottleneck for no-op compilation.

**Solution**
This adds a local, in-memory cache of sha256 hashes of binary files
using their timestamp and file size.
The size of the digest cache can be configured using localDigestCacheByteSize,
which is set to 1MB by default.
2025-11-11 15:59:42 -05:00
eugene yokota 9a00d7cf3c
Merge pull request #8362 from eed3si9n/wip/profile-docs
[2.x] docs: Update flamegraph guide --lines
2025-11-09 18:07:38 -05:00
Eugene Yokota b17330c9b8 docs: Update flamegraph guide --lines 2025-11-09 18:06:13 -05:00