sbt / sbt

sbt, the interactive build tool
https://scala-sbt.org
Apache License 2.0
4.81k stars 937 forks source link

[1.x] Flaky test: `sbt.parseKey` #7899

Open Friendseeker opened 1 week ago

Friendseeker commented 1 week ago
[info] Using random seed: 519638224558
[info] + sbt.ParseKey.An explicitly specified axis is always parsed to that explicit value: OK, passed 5000 tests
...
[error] Error: Total 134, Failed 0, Errors 1, Passed 133, Ignored 1
[error] Error during tests:
[error]     sbt.ParseKey

c.c. https://github.com/sbt/sbt/actions/runs/11907481092/job/33181240933

A successful CI run for comparison

[info] Using random seed: 519625719454
[info] + sbt.ParseKey.An explicitly specified axis is always parsed to that explicit value: OK, passed 5000 tests
[info] + sbt.ParseKey.An unspecified project axis resolves to the current project: OK, passed 5000 tests
[info] + sbt.ParseKey.An unspecified task axis resolves to Zero: OK, passed 1000 tests
[info] + sbt.ParseKey.An unspecified configuration axis resolves to the first configuration directly defining the key or else Zero: OK, passed 1000 tests

So it appears that "An unspecified project axis resolves to the current project" sometimes fail.

Friendseeker commented 1 week ago

https://eed3si9n.com/hedgehog-scala/

Fantastic. The blog is written just in time. (sbt-parseKey uses Hedgedog)