ci: control cache capacity for sharing benchmarks

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
WenyXu
2026-10-20 17:33:23 +00:00
parent 9c7e1e1605
commit 0b0eab9a92
7 changed files with 801 additions and 0 deletions
+20
View File
@@ -333,6 +333,18 @@ jobs:
ref: ${{ env.RESOLVED_O11YBENCH_REF }}
path: o11ybench
persist-credentials: false
- name: Set up Python for cache capacity control
uses: actions/setup-python@v5
with:
python-version: '3.11'
update-environment: true
- name: Apply reviewed cache capacity control
shell: bash
run: |
set -euo pipefail
python3 greptimedb/.github/scripts/apply-cache-capacity-patch.py --lane agent \
--checkout "$GITHUB_WORKSPACE/o11ybench" --expected-revision "$RESOLVED_O11YBENCH_REF" \
--output "$GITHUB_WORKSPACE/cache-capacity-patch"
- name: Verify benchmark checkout revision
shell: bash
run: test "$(git -C "$O11YBENCH_DIR" rev-parse HEAD)" = "$RESOLVED_O11YBENCH_REF"
@@ -424,6 +436,14 @@ jobs:
if: always() && inputs.compare_greptimedb
run: |
python3 greptimedb/.github/scripts/benchmark-version-comparison.py report --kind agent --root "$ARTIFACT_ROOT" >> "$GITHUB_STEP_SUMMARY"
- name: Upload cache capacity patch evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: cache-capacity-patch
path: ${{ github.workspace }}/cache-capacity-patch
if-no-files-found: warn
retention-days: 14
- name: Upload results (no dataset)
if: always()
uses: actions/upload-artifact@v4
+20
View File
@@ -314,6 +314,18 @@ jobs:
ref: ${{ env.RESOLVED_O11YBENCH_REF }}
path: o11ybench
persist-credentials: false
- name: Set up Python for cache capacity control
uses: actions/setup-python@v5
with:
python-version: '3.11'
update-environment: true
- name: Apply reviewed cache capacity control
shell: bash
run: |
set -euo pipefail
python3 greptimedb/.github/scripts/apply-cache-capacity-patch.py --lane traces \
--checkout "$GITHUB_WORKSPACE/o11ybench" --expected-revision "$RESOLVED_O11YBENCH_REF" \
--output "$GITHUB_WORKSPACE/cache-capacity-patch"
- name: Check runner and runtime identity
id: runtime
run: |
@@ -446,6 +458,14 @@ jobs:
mkdir -p "$RUNNER_TEMP/tracesbench-artifacts/baseline"
rsync -a --no-owner --no-group "$RUN_ROOT/baseline/runs" "$RUNNER_TEMP/tracesbench-artifacts/baseline/"
fi
- name: Upload cache capacity patch evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: cache-capacity-patch
path: ${{ github.workspace }}/cache-capacity-patch
if-no-files-found: warn
retention-days: 14
- name: Upload HTML and results (no corpus)
if: always()
uses: actions/upload-artifact@v4
+20
View File
@@ -275,6 +275,18 @@ jobs:
ref: ${{ env.RESOLVED_O11YBENCH_REF }}
path: o11ybench
persist-credentials: false
- name: Set up Python for cache capacity control
uses: actions/setup-python@v5
with:
python-version: '3.11'
update-environment: true
- name: Apply reviewed cache capacity control
shell: bash
run: |
set -euo pipefail
python3 greptimedb/.github/scripts/apply-cache-capacity-patch.py --lane vmbench \
--checkout "$GITHUB_WORKSPACE/o11ybench" --expected-revision "$RESOLVED_O11YBENCH_REF" \
--output "$GITHUB_WORKSPACE/cache-capacity-patch"
- uses: actions/download-artifact@v4
with:
name: ${{ needs.validate.outputs.plan_artifact }}
@@ -340,6 +352,14 @@ jobs:
rsync -a --no-owner --no-group --exclude='db-data/' --exclude='/data/*.bin' \
"$ARTIFACT_ROOT-warm/" "$RUNNER_TEMP/vmbench-artifacts/$(basename "$ARTIFACT_ROOT-warm")/"
fi
- name: Upload cache capacity patch evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: cache-capacity-patch
path: ${{ github.workspace }}/cache-capacity-patch
if-no-files-found: warn
retention-days: 14
- name: Upload HTML and results (no dataset or DB files)
if: always()
uses: actions/upload-artifact@v4