Skip to content

Conversation

@tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Apr 18, 2025

Otherwise we seem to recompile more than needed:

[info] Build triggered by /Users/tgodzik/Documents/dotty/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala. Running 'scala3-presentation-compiler/testOnly dotty.tools.pc.tests.hover.HoverTermSuite -- *named-tuples5'.
[info] compiling 27 Scala sources to /Users/tgodzik/Documents/dotty/compiler/target/scala-3.7.0-RC3/classes ...
[info] compiling 4 Java sources to /Users/tgodzik/Documents/dotty/sbt-bridge/src/target/classes ...
[info] compiling 1 Scala source to /Users/tgodzik/Documents/dotty/out/bootstrap/scala3-presentation-compiler/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/test-classes ...

after changes to a test in PC

I am not 100% why this was needed.

Otherwise we seem to recompile more than needed:
```
[info] Build triggered by /Users/tgodzik/Documents/dotty/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala. Running 'scala3-presentation-compiler/testOnly dotty.tools.pc.tests.hover.HoverTermSuite -- *named-tuples5'.
[info] compiling 27 Scala sources to /Users/tgodzik/Documents/dotty/compiler/target/scala-3.7.0-RC3/classes ...
[info] compiling 4 Java sources to /Users/tgodzik/Documents/dotty/sbt-bridge/src/target/classes ...
[info] compiling 1 Scala source to /Users/tgodzik/Documents/dotty/out/bootstrap/scala3-presentation-compiler/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/test-classes ...
```
after changes to a test in PC

I am not 100% why this was needed.
@tgodzik tgodzik requested a review from hamzaremmal April 18, 2025 14:44
@hamzaremmal hamzaremmal self-assigned this Apr 24, 2025
@hamzaremmal
Copy link
Member

I'm not able to reproduce this locally. If I change a the same test, I only have the expected number of compilations:

sbt:scala3> scala3-presentation-compiler/testOnly dotty.tools.pc.tests.hover.HoverTermSuite -- *named-tuples5'
[info] compiling 1 Scala source to /Users/hamzaremmal/Desktop/scala/scala3/out/bootstrap/scala3-presentation-compiler-testcases/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes ...
[info] compiling 97 Scala sources to /Users/hamzaremmal/Desktop/scala/scala3/out/bootstrap/scala3-presentation-compiler/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/test-classes ...
[info] Test run dotty.tools.pc.tests.hover.HoverTermSuite started
[info] Test run dotty.tools.pc.tests.hover.HoverTermSuite finished: 0 failed, 0 ignored, 0 total, 0.0s
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[info] No tests to run for scala3-presentation-compiler / Test / testOnly
[success] Total time: 7 s, completed Apr 25, 2025, 1:27:28 PM
sbt:scala3> scala3-presentation-compiler/testOnly dotty.tools.pc.tests.hover.HoverTermSuite -- *named-tuples5'
[info] Test run dotty.tools.pc.tests.hover.HoverTermSuite started
[info] Test run dotty.tools.pc.tests.hover.HoverTermSuite finished: 0 failed, 0 ignored, 0 total, 0.0s
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[info] No tests to run for scala3-presentation-compiler / Test / testOnly
[success] Total time: 2 s, completed Apr 25, 2025, 1:27:34 PM
sbt:scala3> scala3-presentation-compiler/testOnly dotty.tools.pc.tests.hover.HoverTermSuite -- *named-tuples5'
[info] compiling 1 Scala source to /Users/hamzaremmal/Desktop/scala/scala3/out/bootstrap/scala3-presentation-compiler/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/test-classes ...
[info] Test run dotty.tools.pc.tests.hover.HoverTermSuite started
[info] Test run dotty.tools.pc.tests.hover.HoverTermSuite finished: 0 failed, 0 ignored, 0 total, 0.0s
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[info] No tests to run for scala3-presentation-compiler / Test / testOnly
[success] Total time: 3 s, completed Apr 25, 2025, 1:28:31 PM
sbt:scala3> scala3-presentation-compiler/testOnly dotty.tools.pc.tests.hover.HoverTermSuite -- *named-tuples5'
[info] compiling 1 Scala source to /Users/hamzaremmal/Desktop/scala/scala3/out/bootstrap/scala3-presentation-compiler/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/test-classes ...
[info] Test run dotty.tools.pc.tests.hover.HoverTermSuite started
[info] Test run dotty.tools.pc.tests.hover.HoverTermSuite finished: 0 failed, 0 ignored, 0 total, 0.0s
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[info] No tests to run for scala3-presentation-compiler / Test / testOnly
[success] Total time: 3 s, completed Apr 25, 2025, 1:29:25 PM
[info] Publishing build scan...

@tgodzik any more info about how this manifests itself. Otherwise, we should close the PR, the previous configuration is better imho.

@tgodzik
Copy link
Contributor Author

tgodzik commented Apr 28, 2025

Ok, I will try to figure out what is going or add an option to turn off develocity locally.

@tgodzik tgodzik closed this Apr 28, 2025
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