From 5bda3d4393cc8900d9b3f1dd3ab692a91f1c3ac2 Mon Sep 17 00:00:00 2001 From: Sergey Matyunin Date: Sun, 13 Sep 2026 12:18:57 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20=D1=81=D0=B8=D0=BD=D1=85=D1=80=D0=BE?= =?UTF-8?q?=D0=BD=D0=B8=D0=B7=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20?= =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20mutation-gate.yml=20=D1=81=20dev=20(#549)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: #549 User-Visible: no --- .github/workflows/mutation-gate.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mutation-gate.yml b/.github/workflows/mutation-gate.yml index bf15a931..ce66d331 100644 --- a/.github/workflows/mutation-gate.yml +++ b/.github/workflows/mutation-gate.yml @@ -133,7 +133,7 @@ jobs: --write-evidence=artifacts/mutation-shard-${{ matrix.shard }}/evidence.json \ --sha=${{ needs.material.outputs.sha }} \ --tree=${{ needs.material.outputs.tree }} \ - --workflow-sha=${{ github.sha }} \ + --workflow-sha=${{ github.workflow_sha }} \ --run-id=${{ github.run_id }} --run-attempt=${{ github.run_attempt }} \ --shard=${{ matrix.shard }} --shards=4 - name: Сохранить лог и identity шарда @@ -155,7 +155,9 @@ jobs: steps: - uses: actions/checkout@v7 with: - ref: ${{ github.sha }} + # CLI отчётчика принадлежит зафиксированному material. В main лежит + # только workflow и может не быть dev-версии scripts/**. + ref: ${{ needs.material.outputs.sha }} - uses: actions/setup-node@v7 with: node-version: 22 @@ -170,7 +172,7 @@ jobs: --logs=artifacts/mutation-logs --shards=4 \ --sha=${{ needs.material.outputs.sha }} \ --tree=${{ needs.material.outputs.tree }} \ - --workflow-sha=${{ github.sha }} \ + --workflow-sha=${{ github.workflow_sha }} \ --run-id=${{ github.run_id }} --run-attempt=${{ github.run_attempt }} # Адресат у отказа (#472). Только по расписанию: ручной dispatch остаётся @@ -191,9 +193,9 @@ jobs: steps: - uses: actions/checkout@v7 with: - # Код отчётчика берётся из того же workflow revision, а не из - # успевшего сдвинуться dev. Проверяемый material передаётся отдельно. - ref: ${{ github.sha }} + # Не перечитываем moving dev: код отчётчика берётся из уже + # зафиксированного material. В стабильном main dev-скриптов нет. + ref: ${{ needs.material.outputs.sha }} - uses: actions/setup-node@v7 with: node-version: 22 @@ -213,7 +215,7 @@ jobs: --require-evidence --logs=artifacts/mutation-logs --shards=4 \ --sha=${{ needs.material.outputs.sha }} \ --tree=${{ needs.material.outputs.tree }} \ - --workflow-sha=${{ github.sha }} \ + --workflow-sha=${{ github.workflow_sha }} \ --run-id=${{ github.run_id }} --run-attempt=${{ github.run_attempt }} \ --run-url="$RUN_URL" --ref=${{ needs.material.outputs.ref }} \ --body-out=artifacts/mutation-report.md \