Skip to content

Commit fb249c9

Browse files
committed
refactoring
1 parent 25284a4 commit fb249c9

1,043 files changed

Lines changed: 6797 additions & 19292 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/Features/BenchmarkComparisons/FunctionalHeavyLoadSetup/AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Purpose, entry points and ownership
44

5-
Prepare the existing KeyLoad functional cluster million-record ingestion gate with its exact-source images and native runner. Follow root and workflow policies. This action runs no workload and produces no measurements. Preserve the original native admission/workload steps and original result upload as top-level Benchmarks job steps for authenticated provider accounting. No database reset or additional measurement matrix.
5+
Prepare the existing KeyLoad functional cluster million-record ingestion gate with exact-source native server projects and its native test executable. Follow root and workflow policies. This action runs no workload and produces no measurements. Preserve the original native admission/workload steps and original result upload as top-level Benchmarks job steps for authenticated provider accounting. No database reset or additional measurement matrix.
66

77
## Boundaries and protected risks
88

‎.github/workflows/Features/BenchmarkComparisons/FunctionalHeavyLoadSetup/action.yml‎

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Functional CLUSTER heavy-load setup
2-
description: Prepare source-bound images and the existing native functional CLUSTER runner.
3-
inputs:
4-
bundle-artifact-id:
5-
description: Same-source immutable Docker image bundle
6-
required: true
2+
description: Build the real native functional cluster tests; Aspire launches server projects and membership storage.
73
runs:
84
using: composite
95
steps:
@@ -14,22 +10,6 @@ runs:
1410
- name: Check Docker
1511
shell: bash
1612
run: docker version
17-
- name: Download exact source Docker images
18-
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
19-
with:
20-
artifact-ids: ${{ inputs.bundle-artifact-id }}
21-
path: ${{ runner.temp }}/keyload-image-bundle
22-
- name: Load and verify Docker images
23-
id: images
24-
shell: bash
25-
run: node scripts/Features/BenchmarkComparisons/import-images.mjs --bundle="$RUNNER_TEMP/keyload-image-bundle"
26-
- name: Configure exact source KeyLoad image
27-
env:
28-
KEYLOAD_SERVER_IMAGE: ${{ steps.images.outputs.server-image }}
29-
shell: bash
30-
run: |
31-
test -n "$KEYLOAD_SERVER_IMAGE"
32-
printf 'KeyLoad__ContainerImages__Server=%s\nKEYLOAD_IMAGE_RECEIPT=%s\n' "$KEYLOAD_SERVER_IMAGE" "$RUNNER_TEMP/keyload-images/image-receipt.json" >> "$GITHUB_ENV"
3313
- name: Restore .NET packages
3414
shell: bash
3515
run: dotnet restore KeyLoad.slnx

‎.github/workflows/Features/BenchmarkComparisons/SessionContracts/action.yml‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ runs:
55
steps:
66
- name: Check native KurrentDB discovery settings
77
shell: bash
8-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/IsolatedKurrentDiscoverySettingsTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/kurrent-discovery
8+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/IsolatedKurrentDiscoverySettingsTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/kurrent-discovery
99
- name: Check exact OpenSearch vector query contract
1010
shell: bash
11-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/OpenSearchVectorQueryTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/opensearch-query
11+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/OpenSearchVectorQueryTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/opensearch-query
1212
- name: Check exact OpenSearch vector response contract
1313
shell: bash
14-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/OpenSearchVectorResponseTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/opensearch-response
14+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/OpenSearchVectorResponseTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/opensearch-response
1515
- name: Check TimescaleDB Docker image and startup tools
1616
env:
1717
KEYLOAD_TIMESERIES_IMAGE_FACTS_DIRECTORY: ${{ runner.temp }}/keyload-timeseries-image-facts
@@ -30,67 +30,67 @@ runs:
3030
retention-days: 90
3131
- name: Test database cluster resource models
3232
shell: bash
33-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/Isolated*Resource*/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/resource-models
33+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/Isolated*Resource*/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/resource-models
3434
- name: Test native session shutdown and original failure retention
3535
shell: bash
36-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/(IsolatedNativeTeardownSuccessTests|IsolatedNativeTeardownFailureTests|IsolatedNativeLogCaptureConcurrentDisposeTests)/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/session-shutdown --KeyLoadTests:ReportTrx=true
36+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/(IsolatedNativeTeardownSuccessTests|IsolatedNativeTeardownFailureTests|IsolatedNativeLogCaptureConcurrentDisposeTests)/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/session-shutdown --KeyLoadTests:ReportTrx=true
3737
- name: Test MongoDB readiness configuration
3838
shell: bash
39-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/MongoReadinessResourceTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/mongo-resource
39+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/MongoReadinessResourceTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/mongo-resource
4040
- name: Test MongoDB node identity
4141
shell: bash
42-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/MongoReadinessIdentityTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/mongo-identity
42+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/MongoReadinessIdentityTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/mongo-identity
4343
- name: Test MongoDB startup failure handling
4444
shell: bash
45-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/MongoReadinessTaskFailureTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/mongo-task-failure
45+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/MongoReadinessTaskFailureTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/mongo-task-failure
4646
- name: Test KurrentDB storage failure handling
4747
shell: bash
48-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/IsolatedKurrentVolumeRegressionFailureTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/kurrent-volume-failure
48+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/IsolatedKurrentVolumeChecksFailureTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/kurrent-volume-failure
4949
- name: Test KeyLoad request admission
5050
shell: bash
51-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/IsolatedKeyLoadAdmissionTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/keyload-admission
51+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/IsolatedKeyLoadAdmissionTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/keyload-admission
5252
- name: Test bounded database log buffers
5353
shell: bash
54-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/ComparisonResourceLogBufferTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/log-buffer
54+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/ComparisonResourceLogBufferTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/log-buffer
5555
- name: Test live benchmark progress capture
5656
shell: bash
57-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/ComparisonProgress*/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/live-progress
57+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/ComparisonProgress*/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/live-progress
5858
- name: Test shared native session entry and safe failures
5959
shell: bash
60-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/(ComparisonHostStartupTests|ComparisonHostCleanupTests|BenchmarkSessionNativeParserTests)/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/live-entry
60+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/(ComparisonHostStartupTests|ComparisonHostCleanupTests|BenchmarkSessionNativeParserTests)/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/live-entry
6161
- name: Test shared session live acknowledgement and cancellation counters
6262
shell: bash
63-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/BenchmarkSessionProgressTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/live-counters
63+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/BenchmarkSessionProgressTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/live-counters
6464
- name: Test document resource budgets and current native topology
6565
shell: bash
66-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/(DocumentResourceBudgetTests|NativeTopologyAdmissionTests)/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/document-admission --KeyLoadTests:ReportTrx=true
66+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/(DocumentResourceBudgetTests|NativeTopologyAdmissionTests)/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/document-admission --KeyLoadTests:ReportTrx=true
6767
- name: Test controlled native shared-session operations and cancellation
6868
shell: bash
69-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/DocumentComparisonNativeTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/document-native --KeyLoadTests:ReportTrx=true
69+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/DocumentComparisonNativeTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/document-native --KeyLoadTests:ReportTrx=true
7070
- name: Test KeyLoad replay admission
7171
shell: bash
72-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/IsolatedKeyLoadReplayAdmissionTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/replay-admission
72+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/IsolatedKeyLoadReplayAdmissionTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/replay-admission
7373
- name: Test Redis replica error reporting
7474
shell: bash
75-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/RedisReplicaDiagnosticTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/redis-diagnostics
75+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/RedisReplicaDiagnosticTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/redis-diagnostics
7676
- name: Test MongoDB startup error reporting
7777
shell: bash
78-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/MongoBootstrapDiagnosticTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/mongo-diagnostics
78+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/MongoBootstrapDiagnosticTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/mongo-diagnostics
7979
- name: Test KurrentDB cleanup error reporting
8080
shell: bash
81-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/KurrentCleanupDiagnosticTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/kurrent-diagnostics
81+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/KurrentCleanupDiagnosticTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/kurrent-diagnostics
8282
- name: Test KurrentDB stream ownership
8383
shell: bash
84-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/KurrentStreamOwnershipTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/kurrent-stream-ownership
84+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/KurrentStreamOwnershipTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/kurrent-stream-ownership
8585
- name: Test database replay logs
8686
shell: bash
87-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/ComparisonReplayDiagnosticLogTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/replay-log
87+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/ComparisonReplayDiagnosticLogTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/replay-log
8888
- name: Test database replay log retention
8989
shell: bash
90-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/ComparisonReplayDiagnosticRetentionTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/replay-retention
90+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/ComparisonReplayDiagnosticRetentionTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/replay-retention
9191
- name: Test time-series workload correctness
9292
shell: bash
93-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/TimeSeriesWorkloadTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/timeseries-workload
93+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/TimeSeriesWorkloadTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/timeseries-workload
9494
- name: Check published time-series package version
9595
shell: bash
96-
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/TimeSeriesPackageVersionTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-images/timeseries-package
96+
run: node scripts/Features/TestInfrastructure/run-tests.mjs --KeyLoadTests:Suite=comparison '--KeyLoadTests:Filter=/*/*/TimeSeriesPackageVersionTests/*' --KeyLoadTests:ResultsDirectory=TestResults/comparison-runtime/timeseries-package

‎.github/workflows/Features/BenchmarkComparisons/SessionSetup/AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Purpose, entry points and ownership
44

5-
Owns setup for one native database/topology session under ADR-142. Follow root and workflow policies. Authenticate the same-run job, import original source-bound native images and the verified common compiled runtime, and preserve original import receipts. Never restore, build, reset a database, run a workload or manufacture results here. Linux GitHub execution only; scoped image registry shutdown belongs to the existing native lifetime.
5+
Owns setup for one native database/topology session under ADR-142. Follow root and workflow policies. Authenticate the same-run job, import the verified original compiled server/client/AppHost runtime and preserve original import receipts. Never restore, build, publish images, reset a database, run a workload or manufacture results here. Linux GitHub execution only; the native fixture owns selected infrastructure cleanup.
66

77
## Boundaries and protected risks
88

‎.github/workflows/Features/BenchmarkComparisons/SessionSetup/action.yml‎

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Native benchmark session setup
2-
description: Import the common source-bound Docker images and compiled test runtime.
2+
description: Authenticate this job and import the exact compiled native server, client and Aspire runtime.
33
inputs:
4-
image-artifact-id:
5-
description: Same-run immutable native image bundle
6-
required: true
74
runtime-artifact-id:
85
description: Same-run immutable compiled runner bundle
96
required: true
@@ -22,23 +19,6 @@ runs:
2219
- name: Verify this GitHub session job
2320
shell: bash
2421
run: node scripts/Features/BenchmarkComparisons/session-github-job.mjs
25-
- name: Download source-bound Docker images
26-
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
27-
with:
28-
artifact-ids: ${{ inputs.image-artifact-id }}
29-
path: ${{ runner.temp }}/keyload-image-bundle
30-
- name: Import and verify Docker images
31-
id: images
32-
shell: bash
33-
run: node scripts/Features/BenchmarkComparisons/import-images.mjs --bundle="$RUNNER_TEMP/keyload-image-bundle"
34-
- name: Configure imported Docker images
35-
env:
36-
KEYLOAD_SERVER_IMAGE: ${{ steps.images.outputs.server-image }}
37-
KEYLOAD_RUNNER_IMAGE: ${{ steps.images.outputs.load-generator-image }}
38-
shell: bash
39-
run: |
40-
test -n "$KEYLOAD_SERVER_IMAGE" && test -n "$KEYLOAD_RUNNER_IMAGE"
41-
printf 'KeyLoad__ContainerImages__Server=%s\nBenchmarks__ContainerImages__LoadGenerator=%s\nKEYLOAD_IMAGE_RECEIPT=%s\n' "$KEYLOAD_SERVER_IMAGE" "$KEYLOAD_RUNNER_IMAGE" "$RUNNER_TEMP/keyload-images/image-receipt.json" >> "$GITHUB_ENV"
4222
- name: Download compiled benchmark runtime
4323
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
4424
with:

0 commit comments

Comments
 (0)