10000 [1.x] Flaky test: `sbt.parseKey` · Issue #7899 · sbt/sbt · GitHub
[go: up one dir, main page]

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

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

Open
Friendseeker opened this issue Nov 19, 2024 · 2 comments
Open

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

Friendseeker opened this issue Nov 19, 2024 · 2 comments
Labels

Comments

@Friendseeker
Copy link
Member
[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
Copy link
Member Author
Friendseeker commented Nov 19, 2024

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

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

@Friendseeker
Copy link
Member Author

Here's another failure

[info] Using random seed: 839403317671
[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: Falsified after 156 passed tests
[info] > StructureKeyMask(Env:
[info]     Tasks:
[info]     cs (delegates: )
[info]     aa (delegates: )
[info]     ab (delegates: )
[info] Build file:///aaaaaaa/#a :
[info]     Project a
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]     Project aa
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]         B
[info]   Build file:///aaaaaaa/ :
[info]     Project a
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]         Aa
[info]         B
[info]     Project aa
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]         Aa
[info]     Project cs
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]         Aa
[info]     Project aaa
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info] current: ProjectRef(file:///aaaaaaa/,a)
[info] Settings:
[info] 	Global / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "a") / A / aa / <key>
[info] 	   cs,ab,aa
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "a") / Aa / ab / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "aa") / Aa / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "aa") / Aa / aa / <key>
[info] 	   aa,cs,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "aaa") / A / <key>
[info] 	   cs,ab,aa
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "cs") / <key>
[info] 	   ab,cs,aa
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "a") / ab / <key>
[info] 	   ab,aa,cs
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "a") / cs / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "aa") / A / cs / <key>
[info] 	   ab,aa,cs
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "aa") / B / aa / <key>
[info] 	   ab,cs,aa
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "aa") / ab / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	Zero / A / aa / <key>
[info] 	   aa,ab,cs
[info] All keys:
[info] 	ab, aa, cs,ScopedKey(Scope(Select(BuildRef(file:///aaaaaaa/#a)), Select(ConfigKey(A)), Select(cs), Zero),ab),ScopeMask(false,false,true,false))
[info] > === Not Equal ===
[info] > --- lhs ---
[info] > Select(ConfigKey(A))
[info] > --- rhs ---
[info] > Zero
[info] > === Not Equal ===
[info] > --- lhs ---
[info] > Select(ProjectRef(file:///aaaaaaa/,cs))
[info] > --- rhs ---
[info] > Select(ProjectRef(file:///aaaaaaa/,a))
[info] > parsed subproject: Select(ProjectRef(file:///aaaaaaa/,cs))
[info] > current subproject: ProjectRef(file:///aaaaaaa/,a)
[info] > Key: {file:///aaaaaaa/#a} / A / cs / ab
[info] > Mask: ScopeMask(false,false,true,false)
[info] > Key string: 'cs / ab'
[info] > Parsed: Right(ProjectRef(uri("file:///aaaaaaa/"), "cs") / ab)
[info] > Structure: Env:
[info]     Tasks:
[info]     cs (delegates: )
[info]     aa (delegates: )
[info]     ab (delegates: )
[info] Build file:///aaaaaaa/#a :
[info]     Project a
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]     Project aa
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]         B
[info]   Build file:///aaaaaaa/ :
[info]     Project a
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]         Aa
[info]         B
[info]     Project aa
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]         Aa
[info]     Project cs
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info]         Aa
[info]     Project aaa
[info]       Delegates:
[info]         
[info]       Configurations:
[info]         A
[info] current: ProjectRef(file:///aaaaaaa/,a)
[info] Settings:
[info] 	Global / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "a") / A / aa / <key>
[info] 	   cs,ab,aa
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "a") / Aa / ab / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "aa") / Aa / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "aa") / Aa / aa / <key>
[info] 	   aa,cs,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "aaa") / A / <key>
5924
;
[info] 	   cs,ab,aa
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/"), "cs") / <key>
[info] 	   ab,cs,aa
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "a") / ab / <key>
[info] 	   ab,aa,cs
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "a") / cs / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "aa") / A / cs / <key>
[info] 	   ab,aa,cs
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "aa") / B / aa / <key>
[info] 	   ab,cs,aa
[info] 
[info] 	ProjectRef(uri("file:///aaaaaaa/#a"), "aa") / ab / <key>
[info] 	   cs,aa,ab
[info] 
[info] 	Zero / A / aa / <key>
[info] 	   aa,ab,cs
[info] All keys:
[info] 	ab, aa, cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0