Skip to content

Commit 3d7ba37

Browse files
KSemenenkoclaude
andcommitted
Remove adapter control tests from Benchmarks
The preparation job ran 35 minutes of native and model adapter controls (million-record OpenSearch, Redis, HelixDB, MongoDB and ClickHouse loads, plus model checks) before any database job could start. Each measured database job already loads and verifies the same data through the same adapters. Removed the controls, their exclusive Aspire resources, the contracts and influxdb-readback dispatch modes, the per-worker adapter step and their documentation. Added the per-family corpus requirement document referenced by SessionExecution. Verified: Debug ComparisonHost build with warnings as errors; repository governance passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a622132 commit 3d7ba37

12 files changed

Lines changed: 91 additions & 797 deletions

File tree

‎.github/workflows/benchmarks.yml‎

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ on:
33
push:
44
branches: [main]
55
workflow_dispatch:
6-
inputs:
7-
mode:
8-
description: Run native controls, focused InfluxDB readback, or the full database suite
9-
type: choice
10-
options: [contracts, influxdb-readback, full]
11-
default: full
126
permissions: {contents: read, actions: read}
137
concurrency:
148
group: keyload-benchmarks-${{ github.ref }}
@@ -77,7 +71,6 @@ jobs:
7771
docker info --format 'Docker kernel: {{.KernelVersion}}'
7872
- name: Resolve the latest released KeyLoad server image to one digest
7973
id: keyload-image
80-
if: (github.event_name == 'push' || inputs.mode == 'full')
8174
env:
8275
REGISTRY_TOKEN: ${{ github.token }}
8376
KEYLOAD_IMAGE_REPOSITORY: ghcr.io/managedcode/keyload
@@ -90,10 +83,8 @@ jobs:
9083
printf 'KeyLoad cells use %s\n' "$reference" >> "$GITHUB_STEP_SUMMARY"
9184
docker logout ghcr.io
9285
- name: Pack the compiled benchmark runtime
93-
if: (github.event_name == 'push' || inputs.mode == 'full')
9486
run: node scripts/Features/BenchmarkComparisons/compiled-test-bundle.mjs --pack
9587
- name: Save compiled runtime identities
96-
if: (github.event_name == 'push' || inputs.mode == 'full')
9788
uses: actions/upload-artifact@v7
9889
with:
9990
name: comparison-compiled-runtime-identity
@@ -104,23 +95,13 @@ jobs:
10495
retention-days: 90
10596
- name: Save the compiled benchmark runtime
10697
id: runtime-bundle
107-
if: (github.event_name == 'push' || inputs.mode == 'full')
10898
uses: actions/upload-artifact@v7
10999
with:
110100
name: comparison-compiled-test-bundle
111101
path: artifacts/benchmark-runtime-bundle/*
112102
if-no-files-found: error
113103
compression-level: 0
114104
retention-days: 90
115-
- name: Test external database bulk operations and joined cleanup
116-
if: inputs.mode != 'influxdb-readback'
117-
run: dotnet benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/KeyLoad.ComparisonHost.dll --output Detailed --maximum-parallel-tests 1 --minimum-expected-tests 8 --treenode-filter '/*/*/NativeDatabaseTests/*' --results-directory "$GITHUB_WORKSPACE/benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/TestResults/NativeAdapters" --report-trx --timeout 40m
118-
- name: Test InfluxDB million-record readback and joined cleanup
119-
if: github.event_name == 'workflow_dispatch' && inputs.mode == 'influxdb-readback'
120-
run: dotnet benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/KeyLoad.ComparisonHost.dll --output Detailed --maximum-parallel-tests 1 --minimum-expected-tests 1 --treenode-filter '/*/*/NativeDatabaseTests/InfluxBulkReadbackPreservesCompleteBodiesAndHealthyContinuation' --results-directory "$GITHUB_WORKSPACE/benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/TestResults/NativeAdapters" --report-trx --timeout 5m
121-
- name: Test vector queue and event session operations on real databases
122-
if: (github.event_name == 'push' || inputs.mode == 'contracts' || inputs.mode == 'full')
123-
run: dotnet benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/KeyLoad.ComparisonHost.dll --output Detailed --maximum-parallel-tests 1 --minimum-expected-tests 9 --treenode-filter '/*/*/ModelDatabaseTests/*' --results-directory "$GITHUB_WORKSPACE/benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/TestResults/ModelAdapters" --report-trx --timeout 20m
124105
- name: Test bounded terminal execution diagnostics
125106
run: dotnet benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/KeyLoad.ComparisonHost.dll --output Detailed --minimum-expected-tests 1 --treenode-filter '/*/*/ComparisonHostCaptureTests/*' --results-directory "$GITHUB_WORKSPACE/benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/TestResults/TerminalDiagnostics" --report-trx
126107
- name: Save original preparation diagnostics
@@ -131,17 +112,13 @@ jobs:
131112
path: |
132113
TestResults/**
133114
benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/TestResults/**
134-
benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/database-adapters/**/*.log
135-
benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/database-adapters/**/resource-observations.json
136-
benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/database-adapters/**/host-mountinfo.txt
137115
artifacts/qualification/**
138116
artifacts/code-quality/**
139117
${{ runner.temp }}/keyload-cell-github/**
140118
if-no-files-found: warn
141119
retention-days: 90
142120
comparison-keyload:
143121
name: ${{ matrix.jobName }}
144-
if: (github.event_name == 'push' || inputs.mode == 'full')
145122
needs: [comparison-runtime]
146123
runs-on: ubuntu-22.04
147124
timeout-minutes: 240
@@ -168,9 +145,6 @@ jobs:
168145
with:
169146
runtime-artifact-id: ${{ needs.comparison-runtime.outputs.runtime-artifact-id }}
170147
keyload-image: ${{ matrix.target == 'KeyLoad' && needs.comparison-runtime.outputs.keyload-image || '' }}
171-
- name: Test selected database adapter against real infrastructure
172-
if: matrix.nodeCount == 1 && contains(fromJSON('["TimescaleDB","SQL Server","MySQL","ClickHouse","InfluxDB"]'), matrix.target)
173-
run: dotnet benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/KeyLoad.ComparisonHost.dll --output Detailed --github-reporter-style full --maximum-parallel-tests 1 --minimum-expected-tests 1 --treenode-filter '/*/*/AdditionalDatabaseTests/*' --results-directory "$KEYLOAD_COMPARISON_EVIDENCE_DIRECTORY/AdapterTestResults" --report-trx --timeout 15m
174148
- name: Run database workload
175149
id: workload
176150
run: dotnet benchmarks/KeyLoad.ComparisonHost/bin/Release/net10.0/KeyLoad.ComparisonHost.dll --output Detailed --github-reporter-style full --maximum-parallel-tests 1 --minimum-expected-tests 1 --treenode-filter '/*/*/BenchmarkSessionTests/*' --results-directory "$KEYLOAD_COMPARISON_EVIDENCE_DIRECTORY/TestResults" --report-trx --timeout 210m
@@ -194,7 +168,6 @@ jobs:
194168
artifact-name: comparison-case-qualification-session-${{ matrix.id }}
195169
comparison-postgresql:
196170
name: ${{ matrix.jobName }}
197-
if: (github.event_name == 'push' || inputs.mode == 'full')
198171
needs: [comparison-runtime]
199172
runs-on: ubuntu-22.04
200173
timeout-minutes: 240
@@ -205,7 +178,6 @@ jobs:
205178
steps: *database-steps
206179
comparison-qdrant:
207180
name: ${{ matrix.jobName }}
208-
if: (github.event_name == 'push' || inputs.mode == 'full')
209181
needs: [comparison-runtime]
210182
runs-on: ubuntu-22.04
211183
timeout-minutes: 240
@@ -216,7 +188,6 @@ jobs:
216188
steps: *database-steps
217189
comparison-rabbitmq:
218190
name: ${{ matrix.jobName }}
219-
if: (github.event_name == 'push' || inputs.mode == 'full')
220191
needs: [comparison-runtime]
221192
runs-on: ubuntu-22.04
222193
timeout-minutes: 240
@@ -227,7 +198,6 @@ jobs:
227198
steps: *database-steps
228199
comparison-redis:
229200
name: ${{ matrix.jobName }}
230-
if: (github.event_name == 'push' || inputs.mode == 'full')
231201
needs: [comparison-runtime]
232202
runs-on: ubuntu-22.04
233203
timeout-minutes: 240
@@ -238,7 +208,6 @@ jobs:
238208
steps: *database-steps
239209
comparison-neo4j:
240210
name: ${{ matrix.jobName }}
241-
if: (github.event_name == 'push' || inputs.mode == 'full')
242211
needs: [comparison-runtime]
243212
runs-on: ubuntu-22.04
244213
timeout-minutes: 240
@@ -249,7 +218,6 @@ jobs:
249218
steps: *database-steps
250219
comparison-mongodb:
251220
name: ${{ matrix.jobName }}
252-
if: (github.event_name == 'push' || inputs.mode == 'full')
253221
needs: [comparison-runtime]
254222
runs-on: ubuntu-22.04
255223
timeout-minutes: 240
@@ -260,7 +228,6 @@ jobs:
260228
steps: *database-steps
261229
comparison-opensearch:
262230
name: ${{ matrix.jobName }}
263-
if: (github.event_name == 'push' || inputs.mode == 'full')
264231
needs: [comparison-runtime]
265232
runs-on: ubuntu-22.04
266233
timeout-minutes: 240
@@ -271,7 +238,6 @@ jobs:
271238
steps: *database-steps
272239
comparison-kurrentdb:
273240
name: ${{ matrix.jobName }}
274-
if: (github.event_name == 'push' || inputs.mode == 'full')
275241
needs: [comparison-runtime]
276242
runs-on: ubuntu-22.04
277243
timeout-minutes: 240
@@ -282,7 +248,6 @@ jobs:
282248
steps: *database-steps
283249
comparison-surrealdb:
284250
name: ${{ matrix.jobName }}
285-
if: (github.event_name == 'push' || inputs.mode == 'full')
286251
needs: [comparison-runtime]
287252
runs-on: ubuntu-22.04
288253
timeout-minutes: 240
@@ -293,7 +258,6 @@ jobs:
293258
steps: *database-steps
294259
comparison-helixdb:
295260
name: ${{ matrix.jobName }}
296-
if: (github.event_name == 'push' || inputs.mode == 'full')
297261
needs: [comparison-runtime]
298262
runs-on: ubuntu-22.04
299263
timeout-minutes: 240
@@ -304,7 +268,6 @@ jobs:
304268
steps: *database-steps
305269
comparison-timescaledb:
306270
name: ${{ matrix.jobName }}
307-
if: (github.event_name == 'push' || inputs.mode == 'full')
308271
needs: [comparison-runtime]
309272
runs-on: ubuntu-22.04
310273
timeout-minutes: 240
@@ -315,7 +278,6 @@ jobs:
315278
steps: *database-steps
316279
comparison-sqlserver:
317280
name: ${{ matrix.jobName }}
318-
if: (github.event_name == 'push' || inputs.mode == 'full')
319281
needs: [comparison-runtime]
320282
runs-on: ubuntu-22.04
321283
timeout-minutes: 240
@@ -326,7 +288,6 @@ jobs:
326288
steps: *database-steps
327289
comparison-mysql:
328290
name: ${{ matrix.jobName }}
329-
if: (github.event_name == 'push' || inputs.mode == 'full')
330291
needs: [comparison-runtime]
331292
runs-on: ubuntu-22.04
332293
timeout-minutes: 240
@@ -337,7 +298,6 @@ jobs:
337298
steps: *database-steps
338299
comparison-clickhouse:
339300
name: ${{ matrix.jobName }}
340-
if: (github.event_name == 'push' || inputs.mode == 'full')
341301
needs: [comparison-runtime]
342302
runs-on: ubuntu-22.04
343303
timeout-minutes: 240
@@ -348,7 +308,6 @@ jobs:
348308
steps: *database-steps
349309
comparison-influxdb:
350310
name: ${{ matrix.jobName }}
351-
if: (github.event_name == 'push' || inputs.mode == 'full')
352311
needs: [comparison-runtime]
353312
runs-on: ubuntu-22.04
354313
timeout-minutes: 240
@@ -360,7 +319,7 @@ jobs:
360319
comparison-aggregate:
361320
name: Combine benchmark results
362321
needs: [comparison-runtime, comparison-keyload, comparison-postgresql, comparison-qdrant, comparison-rabbitmq, comparison-redis, comparison-neo4j, comparison-mongodb, comparison-opensearch, comparison-kurrentdb, comparison-surrealdb, comparison-helixdb, comparison-timescaledb, comparison-sqlserver, comparison-mysql, comparison-clickhouse, comparison-influxdb]
363-
if: ${{ always() && !cancelled() && (github.event_name == 'push' || inputs.mode == 'full') && needs.comparison-runtime.result == 'success' }}
322+
if: ${{ always() && !cancelled() && needs.comparison-runtime.result == 'success' }}
364323
runs-on: ubuntu-22.04
365324
timeout-minutes: 150
366325
env:
@@ -399,7 +358,6 @@ jobs:
399358
if: >-
400359
always() && !cancelled() &&
401360
needs.comparison-aggregate.result == 'success' &&
402-
(github.event_name == 'push' || inputs.mode == 'full') &&
403361
github.repository == 'managedcode/KeyLoad' && github.event.repository.id == 477801965 &&
404362
github.ref == 'refs/heads/main'
405363
runs-on: ubuntu-22.04

‎benchmarks/KeyLoad.ComparisonHost/DatabaseAdapters/Cases/AdditionalDatabaseTests.cs‎

Lines changed: 0 additions & 76 deletions
This file was deleted.

‎benchmarks/KeyLoad.ComparisonHost/DatabaseAdapters/Cases/InfluxDocumentReadback.cs‎

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)