dafny-lang / dafny

Dafny is a verification-aware programming language
https://dafny.org
Other
2.84k stars 254 forks source link

Unstable CLI test `git-issues/git-issue-697j.dfy`, related to Rust backend #5537

Open keyboardDrummer opened 3 weeks ago

keyboardDrummer commented 3 weeks ago

https://github.com/dafny-lang/dafny/actions/runs/9399349297/job/25886601888

[xUnit.net 00:19:37.60]   Finished:    IntegrationTests
  Failed git-issues/git-issue-697j.dfy [11 m 28 s]
  Error Message:
   System.AggregateException : One or more errors occurred. (Command returned non-zero exit code (255): dotnet /Users/runner/work/dafny/dafny/dafny/Source/IntegrationTests/bin/Debug/net6.0/TestDafny.dll for-each-compiler --dafny /Users/runner/work/dafny/dafny/unzippedRelease/dafny/dafny --refresh-exit-code=0 TestFiles/LitTests/LitTest/git-issues/git-issue-697j.dfy -- --allow-warnings
Output:
Using legacy resolver and verifying...
Using refresh resolver and verifying...
Executing on C#...
Executing on C# (with --include-runtime:false)...
Executing on JavaScript...
Executing on Go...
Executing on Java...
Executing on Python...
Executing on C++...
Executing on Rust...
OutputCheck on TestFiles/LitTests/LitTest/git-issues/git-issue-697j.dfy.rs.check failed. Output was:

Executing on ResolvedDesugaredExecutableDafny...

Error:
ERROR: Could not find any match for CheckLiteral Directive (TestFiles/LitTests/LitTest/git-issues/git-issue-697j.dfy.rs.check:1 Literal: 'Unhandled exception: System.InvalidOperationException: Operation is not valid due to the current state of the object.'). The output is above.
MikaelMayer commented 3 weeks ago

One of the things I've observed is that the Rust backend downloads a lot of dependencies and sometimes fails if one of these dependencies cannot be downloaded. This might be one of the case. It's going to slow us down.

stefan-aws commented 2 weeks ago

Occurred again: https://github.com/dafny-lang/dafny/actions/runs/9484546490/job/26134366577.

robin-aws commented 2 weeks ago

One of the things I've observed is that the Rust backend downloads a lot of dependencies and sometimes fails if one of these dependencies cannot be downloaded. This might be one of the case. It's going to slow us down.

Is that the root cause here though? It seems unlikely given the failure.

If it is a problem, there are caching tools that might help:

robin-aws commented 2 weeks ago

Another hit: https://github.com/dafny-lang/dafny/actions/runs/9501604196/job/26187543420

stefan-aws commented 2 weeks ago

Another one: https://github.com/dafny-lang/dafny/actions/runs/9501604196/job/26208722085