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

Flaky Test RandomJavaClassTest.generatesSameSrc #130

Open
volodya-lombrozo opened this issue Feb 13, 2025 · 0 comments
Open

Flaky Test RandomJavaClassTest.generatesSameSrc #130

volodya-lombrozo opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@volodya-lombrozo
Copy link
Owner

We got strange exception related to the RandomJavaClassTest.generatesSameSrc test.

[INFO]
[ERROR] Failures:
[ERROR]   RandomJavaClassTest.generatesSameSrc:60 We expect that the generated source code will be the same, but they weren't 'Params(factor=0.5, seed=1972803176841766147)'
Expected: "package $;\n\nimport static java.lang.Math.max;\nimport static java.nio.file.Files.*;\nimport static java.lang.Math.pow;\nimport java.util.TreeMap;\n\nclass DELrD {\n  public DELrD() {\n    long b;\n\n    long h$;\n\n    h$ = 0b11 * 92 - 80 / 0l;\n  }\n\n  public void KV() {\n    long $$$$h;\n\n    long DHY;\n\n    DHY = 0314L + 0xDl - 0_____7_14;\n  }\n\n  public void $W$lR() {\n    long $$Vf;\n\n    long $g$;\n\n    boolean t$Lg;\n  }\n}\n"
     but: was "package $;\n\nimport static java.lang.Math.max;\nimport static java.nio.file.Files.*;\nimport static java.lang.Math.pow;\nimport java.util.TreeMap;\n\nclass DELrD {\n  public DELrD() {\n    long b;\n\n    long h$;\n\n    h$ = 0b11 * 92 - 80 / 0l;\n  }\n\n  public void KV() {\n    long $$$$h;\n\n    long DHY;\n\n    $$$$h = 0314L + 0xDl - 0_____7_14;\n  }\n\n  public void $W$lR() {\n    long $$Vf;\n\n    long $g$;\n\n    boolean t$Lg;\n  }\n}\n"

Full log is here:

flaky-test.log.txt

The problem was revealed here:

#129 (comment)

Most probably, it's a flaky test.

@volodya-lombrozo volodya-lombrozo added bug Something isn't working help wanted Extra attention is needed labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant