From b14ff4eeb152132cd3f1892ee2505b54823de05e Mon Sep 17 00:00:00 2001 From: cxymds Date: Sun, 11 Oct 2026 09:27:59 +0800 Subject: [PATCH] test(validation): bind C07 to pinned native authority evidence --- .github/workflows/rustfs-functional-chain.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/rustfs-functional-chain.yml b/.github/workflows/rustfs-functional-chain.yml index 550d18438..0d9c71d7c 100644 --- a/.github/workflows/rustfs-functional-chain.yml +++ b/.github/workflows/rustfs-functional-chain.yml @@ -256,6 +256,26 @@ jobs: > "${VALIDATION_ROOT}/tool-manifest.json" printf 'VALIDATION_HEAL_TOOL_DIRECTORY=%s\n' "${TOOL_DIRECTORY}" >> "${GITHUB_ENV}" + - name: Download pinned C07 native authority evidence + if: ${{ inputs.validation_case == 'heal.conflicting-subquorum-authority' }} + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + github-token: ${{ github.token }} + run-id: ${{ inputs.validation_tools_run_id }} + name: rustfs-validation-native-${{ inputs.validation_tools_run_id }}-${{ inputs.validation_tools_run_attempt }} + path: ${{ runner.temp }}/rustfs-validation-native-${{ github.run_id }}-${{ github.run_attempt }} + + - name: Verify C07 native source and exact test evidence + if: ${{ inputs.validation_case == 'heal.conflicting-subquorum-authority' }} + run: | + set -euo pipefail + NATIVE_DIRECTORY="${RUNNER_TEMP}/rustfs-validation-native-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" + cp "${VALIDATION_ROOT}/tool-run.json" "${NATIVE_DIRECTORY}/tool-run.json" + python3 -B auto-testing/scripts/validation_heal/authority.py \ + --directory "${NATIVE_DIRECTORY}" --candidate "${VALIDATION_ROOT}/candidate.json" \ + > "${VALIDATION_ROOT}/native-authority-manifest.json" + printf 'VALIDATION_HEAL_NATIVE_DIRECTORY=%s\n' "${NATIVE_DIRECTORY}" >> "${GITHUB_ENV}" + - name: Run selected canonical validation case if: ${{ !inputs.validation_tools_only && inputs.validation_cleanup_run_id == '' }} env: