8000 The most infamous flaky test · Issue #840 · scala/scala-dev · GitHub
[go: up one dir, main page]

Skip to content

The most infamous flaky test #840

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

Open
som-snytt opened this issue Apr 24, 2023 · 5 comments · May be fixed by scala/scala#10867
Open

The most infamous flaky test #840

som-snytt opened this issue Apr 24, 2023 8000 · 5 comments · May be fixed by scala/scala#10867

Comments

@som-snytt
Copy link

scala/scala#10105 (comment)

presentation/doc sees Unexpected foo method comment: None.

Personally, I am surprised that foo requires comment.

Parking it here as internal.

@som-snytt
Copy link
Author

@lrytz
Copy link
Member
lrytz commented Aug 20, 2024

i saw it locally 👻

@som-snytt
Copy link
Author
som-snytt commented Aug 22, 2024

Duplicates #72 !

I corrected the title.

@som-snytt som-snytt changed the title The less famous flaky test The most infamous flaky test Aug 22, 2024
@lrytz
Copy link
Member
lrytz commented Aug 23, 2024

@som-snytt
Copy link
Author
som-snytt commented May 22, 2025

I forgot to investigate the suggestion from August. (Also at this comment #72 (comment))

This test completes on Windows 10, which does the loadSources (of 2 files), one run of the test (2 askDocComment), shutdown, many times.

object Test {
  def main(args: Array[String]): Unit = {
    def run(): Boolean = {
      val it = new ITest {
        loadSources()
      }
      val res =
        try it.dorun()
        finally it.askShutdown()
      res
    }
    var n = 10000
    while (n > 0 && run()) {
      n -= 1
    }
    println(s"done at $n")
  }
}

The test was turned off in 2013 scala/scala@8986ee4

then back on in 2014 scala/scala@1122e9e

then back off in 2016 for Windows scala/scala@8e52acd

I see from the OP and a year later that it persisted on Linux and also both getDocComments were susceptible to failure; I had only seen the last fail.

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 a pull request may close this issue.

2 participants
0