Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve debug logging for integration.ide[bsp-server].local #4264

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jan 7, 2025

Added some logging and reproduced the failure locally, indicating the flakiness is caused it is a sequence ordering instability in the return value of workspaceBuildTargets

[3387-1] X mill.integration.BspServerTests.requestSnapshots 32882ms 
[3387-1]   os.SubprocessException: Result of git…: 1
[3387-1]   diff --git a/var/folders/rt/f1pd6fz92x3__6jg0cmgdd580000gn/T/2103572287842600910jsonStr b/var/folders/rt/f1pd6fz92x3__6jg0cmgdd580000gn/T/16267358687599680664expectedJsonStr
[3387-1]   index 8935f3ef329..3ac57e39baa 100644
[3387-1]   --- a/var/folders/rt/f1pd6fz92x3__6jg0cmgdd580000gn/T/2103572287842600910jsonStr
[3387-1]   +++ b/var/folders/rt/f1pd6fz92x3__6jg0cmgdd580000gn/T/16267358687599680664expectedJsonStr
[3387-1]   @@ -2,16 +2,17 @@
[3387-1]      "targets": [
[3387-1]        {
[3387-1]          "id": {
[3387-1]   -        "uri": "file:///Users/lihaoyi/Github/mill/out/integration/ide/bsp-server/local/test.dest/mill.integration.BspServerTests/sandbox/run-1/hello-java"
[3387-1]   +        "uri": "file:///Users/lihaoyi/Github/mill/out/integration/ide/bsp-server/local/test.dest/mill.integration.BspServerTests/sandbox/run-1/hello-kotlin"
[3387-1]          },
[3387-1]   -      "displayName": "hello-java",
[3387-1]   -      "baseDirectory": "file:///Users/lihaoyi/Github/mill/out/integration/ide/bsp-server/local/test.dest/mill.integration.BspServerTests/sandbox/run-1/hello-java",
[3387-1]   +      "displayName": "hello-kotlin",
[3387-1]   +      "baseDirectory": "file:///Users/lihaoyi/Github/mill/out/integration/ide/bsp-server/local/test.dest/mill.integration.BspServerTests/sandbox/run-1/hello-kotlin",
[3387-1]          "tags": [
[3387-1]            "library",
[3387-1]            "application"
[3387-1]          ],
[3387-1]          "languageIds": [
[3387-1]   -        "java"
[3387-1]   +        "java",
[3387-1]   +        "kotlin"
[3387-1]          ],
[3387-1]          "dependencies": [],
[3387-1]          "capabilities": {
[3387-1]   @@ -69,17 +70,16 @@
[3387-1]        },
[3387-1]        {
[3387-1]          "id": {
[3387-1]   -        "uri": "file:///Users/lihaoyi/Github/mill/out/integration/ide/bsp-server/local/test.dest/mill.integration.BspServerTests/sandbox/run-1/hello-kotlin"
[3387-1]   +        "uri": "file:///Users/lihaoyi/Github/mill/out/integration/ide/bsp-server/local/test.dest/mill.integration.BspServerTests/sandbox/run-1/hello-java"
[3387-1]          },
[3387-1]   -      "displayName": "hello-kotlin",
[3387-1]   -      "baseDirectory": "file:///Users/lihaoyi/Github/mill/out/integration/ide/bsp-server/local/test.dest/mill.integration.BspServerTests/sandbox/run-1/hello-kotlin",
[3387-1]   +      "displayName": "hello-java",
[3387-1]   +      "baseDirectory": "file:///Users/lihaoyi/Github/mill/out/integration/ide/bsp-server/local/test.dest/mill.integration.BspServerTests/sandbox/run-1/hello-java",
[3387-1]          "tags": [
[3387-1]            "library",
[3387-1]            "application"
[3387-1]          ],
[3387-1]          "languageIds": [
[3387-1]   -        "java",
[3387-1]   -        "kotlin"
[3387-1]   +        "java"
[3387-1]          ],
[3387-1]          "dependencies": [],
[3387-1]          "capabilities": {
[3387-1]     os.proc.call(ProcessOps.scala:230)
[3387-1]     os.call$.apply(ProcessOps.scala:42)
[3387-1]     mill.integration.BspServerTestUtil$.$anonfun$compareWithGsonSnapshot$4(BspServerTestUtil.scala:77)
[3387-1]     scala.Predef$.assert(Predef.scala:279)
[3387-1]     mill.integration.BspServerTestUtil$.compareWithGsonSnapshot(BspServerTestUtil.scala:76)
[3387-1]     mill.integration.BspServerTests$.$anonfun$tests$4(BspServerTests.scala:91)
[3387-1]     mill.integration.BspServerTests$.$anonfun$tests$4$adapted(BspServerTests.scala:52)
[3387-1]     mill.integration.BspServerTestUtil$.withBspServer(BspServerTestUtil.scala:184)
[3387-1]     mill.integration.BspServerTests$.$anonfun$tests$3(BspServerTests.scala:52)
[3387-1]     mill.integration.BspServerTests$.$anonfun$tests$3$adapted(BspServerTests.scala:39)
[3387-1]     mill.testkit.IntegrationTestSuite.integrationTest(IntegrationTestSuite.scala:20)
[3387-1]     mill.testkit.IntegrationTestSuite.integrationTest$(IntegrationTestSuite.scala:12)
[3387-1]     mill.testkit.UtestIntegrationTestSuite.integrationTest(UtestIntegrationTestSuite.scala:7)
[3387-1]     mill.integration.BspServerTests$.$anonfun$tests$2(BspServerTests.scala:39)

@lihaoyi lihaoyi changed the title Stabilize integration.ide[bsp-server].local Improve debug logging for integration.ide[bsp-server].local Jan 7, 2025
@lihaoyi lihaoyi marked this pull request as ready for review January 8, 2025 01:17
@lihaoyi lihaoyi merged commit b042bd1 into com-lihaoyi:main Jan 8, 2025
26 checks passed
@lefou lefou added this to the 0.12.6 milestone Jan 8, 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