Skip to content

Commit

Permalink
ci: improve the JFR copying logic
Browse files Browse the repository at this point in the history
  • Loading branch information
triceo committed Jan 15, 2025
1 parent 141858a commit 90e19a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/performance_score_director.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ jobs:
path: |
./timefold-solver-benchmarks/scoredirector-benchmark.properties
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.baseline }}/*.log
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.baseline }}/*.jfr
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.baseline }}/combined.jfr
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.baseline }}/*.html
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.baseline }}/*.json
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.branch }}/*.log
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.branch }}/*.jfr
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.branch }}/combined.jfr
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.branch }}/*.html
./timefold-solver-benchmarks/results/scoredirector/${{ github.event.inputs.branch }}/*.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ private static File findJfrFile(File file) {
return result;
}
}
} else if (file.getName().endsWith(".jfr")) {
} else if (file.getName().startsWith("jfr-") && file.getName().endsWith(".jfr")) {
// Only match the jfr-cpu.jfr file produced by JMH.
// Otherwise the previously copied files could also be matched.
return file;
}
return null;
Expand Down

0 comments on commit 90e19a8

Please sign in to comment.