Skip to content

Commit 905caa5

Browse files
committed
ci: test the stuff
1 parent 0ccb5bd commit 905caa5

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

.github/workflows/performance_score_director.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,13 @@ jobs:
6767
tar -xzf $FILENAME
6868
ls -l
6969
70-
# Fine-tuned for stability on GHA.
71-
- name: Phase 0 - (Baseline) Configure the benchmark
72-
working-directory: ./timefold-solver-benchmarks
73-
shell: bash
74-
run: |
75-
echo "forks=15" > scoredirector-benchmark.properties
76-
echo "warmup_iterations=5" >> scoredirector-benchmark.properties
77-
echo "measurement_iterations=5" >> scoredirector-benchmark.properties
78-
echo "relative_score_error_threshold=0.02" >> scoredirector-benchmark.properties
79-
echo "score_director_type=cs" >> scoredirector-benchmark.properties
80-
echo "example=${{ matrix.example }}" >> scoredirector-benchmark.properties
81-
cat scoredirector-benchmark.properties
82-
chmod +x run-scoredirector.sh
83-
8470
- name: Phase 1 - (Baseline) Compile the benchmark
8571
working-directory: ./timefold-solver-benchmarks
8672
shell: bash
8773
run: |
8874
mvn clean install -B -Dquickly -Dversion.ai.timefold.solver=${{ github.event.inputs.baseline }} -Dversion.tools.provider="${{ github.event.inputs.async_profiler_version }}"
8975
mv target/benchmarks.jar target/benchmarks-baseline.jar
76+
ls -l target
9077
9178
- name: Phase 1 - (SUT) Checkout timefold-solver
9279
uses: actions/checkout@v4
@@ -130,8 +117,23 @@ jobs:
130117
run: |
131118
mvn clean install -B -Dquickly -Dversion.tools.provider="${{ github.event.inputs.async_profiler_version }}"
132119
mv target/benchmarks.jar target/benchmarks-sut.jar
120+
ls -l target
121+
122+
# Fine-tuned for stability on GHA.
123+
- name: Phase 2 - Configure the benchmark
124+
working-directory: ./timefold-solver-benchmarks
125+
shell: bash
126+
run: |
127+
echo "forks=15" > scoredirector-benchmark.properties
128+
echo "warmup_iterations=5" >> scoredirector-benchmark.properties
129+
echo "measurement_iterations=5" >> scoredirector-benchmark.properties
130+
echo "relative_score_error_threshold=0.02" >> scoredirector-benchmark.properties
131+
echo "score_director_type=cs" >> scoredirector-benchmark.properties
132+
echo "example=${{ matrix.example }}" >> scoredirector-benchmark.properties
133+
cat scoredirector-benchmark.properties
134+
chmod +x run-scoredirector.sh
133135
134-
- name: Phase 2 - Benchmark the baseline
136+
- name: Phase 2 - (Baseline) Run the benchmark
135137
working-directory: ./timefold-solver-benchmarks
136138
id: benchmark_baseline
137139
env:
@@ -144,7 +146,7 @@ jobs:
144146
echo "RANGE_END=$(jq '.[0].primaryMetric.scoreConfidence[1]|round' results/scoredirector/${{ github.event.inputs.baseline }}/results.json)" >> "$GITHUB_OUTPUT"
145147
echo "RANGE_MID=$(jq '.[0].primaryMetric.score|round' results/scoredirector/${{ github.event.inputs.baseline }}/results.json)" >> "$GITHUB_OUTPUT"
146148
147-
- name: Phase 3 - Benchmark the SUT
149+
- name: Phase 2 - (SUT) Run the benchmark
148150
id: benchmark_new
149151
working-directory: ./timefold-solver-benchmarks
150152
env:
@@ -158,7 +160,7 @@ jobs:
158160
echo "RANGE_END=$(jq '.[0].primaryMetric.scoreConfidence[1]|round' results/scoredirector/${{ github.event.inputs.branch }}/results.json)" >> "$GITHUB_OUTPUT"
159161
echo "RANGE_MID=$(jq '.[0].primaryMetric.score|round' results/scoredirector/${{ github.event.inputs.branch }}/results.json)" >> "$GITHUB_OUTPUT"
160162
161-
- name: Phase 4 - Archive benchmark data
163+
- name: Phase 3 - Archive benchmark data
162164
uses: actions/upload-artifact@v4
163165
with:
164166
name: results-${{ matrix.example }}-${{ github.event.inputs.baseline }}_vs_${{ github.event.inputs.branch }}
@@ -167,7 +169,7 @@ jobs:
167169
./timefold-solver-benchmarks/target/benchmarks-sut.jar
168170
./timefold-solver-benchmarks/results/scoredirector
169171
170-
- name: Phase 4 - Report results
172+
- name: Phase 3 - Report results
171173
working-directory: ./timefold-solver-benchmarks
172174
env:
173175
OLD_RANGE_START: ${{ steps.benchmark_baseline.outputs.RANGE_START }}

0 commit comments

Comments
 (0)