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

[benchmark] check digests for input files only #1314

Merged
merged 1 commit into from
Feb 6, 2021
Merged

Conversation

pepeiborra
Copy link
Collaborator

As mentioned in #1306 the benchmark suite can occasionally fail with errors like below. I don't know what causes this. One theory is that it's caused by Shake trying to compute the output file digest. To eliminate potential variables and since we don't need output digests, let's disable them.

After doing this, I've run the benchmark suite several times without seeing any more errors

Fixes #1306 (hopefully)

Error when running Shake build system:
  at want, called at bench/hist/Main.hs:87:16 in main:Main
* Depends on: bench_example_HLS
  at need, called at src/Development/Benchmark/Rules.hs:154:37 in shake-bench-0.1.0.0-inplace:Development.Benchmark.Rules
* Depends on: bench-results/bench_example_HLS/HEAD/edit.heap.svg
* Raised the exception:
bench-results/bench_example_HLS/HEAD/edit.heap.svg: openFile: resource busy (file is locked)

Benchmark benchHist: ERROR
cabal: Benchmarks failed for bench:benchHist from ghcide-0.7.2.0.

Getting some weird crashes without this change:

```
Error when running Shake build system:
  at want, called at bench/hist/Main.hs:87:16 in main:Main
* Depends on: bench_example_HLS
  at need, called at src/Development/Benchmark/Rules.hs:154:37 in shake-bench-0.1.0.0-inplace:Development.Benchmark.Rules
* Depends on: bench-results/bench_example_HLS/HEAD/edit.heap.svg
* Raised the exception:
bench-results/bench_example_HLS/HEAD/edit.heap.svg: openFile: resource busy (file is locked)

Benchmark benchHist: ERROR
cabal: Benchmarks failed for bench:benchHist from ghcide-0.7.2.0.
```
@pepeiborra pepeiborra added the merge me Label to trigger pull request merge label Feb 6, 2021
@mergify mergify bot merged commit cc4bb62 into master Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Benchmark suite can fail unexpectedly
2 participants