diff --git a/.github/workflows/gate.yml b/.github/workflows/gate.yml index 7243364..5a10528 100644 --- a/.github/workflows/gate.yml +++ b/.github/workflows/gate.yml @@ -257,7 +257,7 @@ jobs: fetch-depth: 2 - id: select if: inputs.select-os != '' && inputs.select-os != '[]' - uses: storytold/craft-common-actions/actions/select-platforms@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/select-platforms@ec2b41fc48ec147d5b359967ee0c27135132612e with: os: ${{ inputs.os }} select-os: ${{ inputs.select-os }} @@ -370,7 +370,7 @@ jobs: # Default-branch writes remain the default. Maintainers can explicitly opt manual branch runs # into branch-scoped writes; pull-request runs never save a cache. - name: Setup - uses: storytold/craft-common-actions/actions/gate-setup@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/gate-setup@ec2b41fc48ec147d5b359967ee0c27135132612e with: craft-fonts-ref: ${{ inputs.craft-fonts-ref }} require-craft-fonts: ${{ inputs.require-craft-fonts }} @@ -418,7 +418,7 @@ jobs: } >> "$GITHUB_ENV" - name: Build the test archive - uses: storytold/craft-common-actions/actions/gate-run@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/gate-run@ec2b41fc48ec147d5b359967ee0c27135132612e with: command: ${{ inputs.archive-command }} timeout-minutes: ${{ inputs.gate-timeout-minutes }} @@ -426,7 +426,7 @@ jobs: # The marker is saved with the cache entry in rust-cache's post step. - name: Record the cache commit if: inputs.cache-workspace-crates - uses: storytold/craft-common-actions/actions/restore-mtimes@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/restore-mtimes@ec2b41fc48ec147d5b359967ee0c27135132612e with: mode: record @@ -561,7 +561,7 @@ jobs: - name: After the archive if: inputs.after-archive-command != '' - uses: storytold/craft-common-actions/actions/gate-run@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/gate-run@ec2b41fc48ec147d5b359967ee0c27135132612e with: command: ${{ inputs.after-archive-command }} timeout-minutes: ${{ inputs.gate-timeout-minutes }} @@ -573,7 +573,7 @@ jobs: - name: Trim the cache entry to this build if: env.CRAFT_CACHE_UNITS != '' continue-on-error: true - uses: storytold/craft-common-actions/actions/cache-trim@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/cache-trim@ec2b41fc48ec147d5b359967ee0c27135132612e # The `result` job reads it: the build job's result covers every runner. - name: Record the build's result @@ -617,7 +617,7 @@ jobs: - *checkout - name: Setup - uses: storytold/craft-common-actions/actions/gate-setup@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/gate-setup@ec2b41fc48ec147d5b359967ee0c27135132612e with: craft-fonts-ref: ${{ inputs.craft-fonts-ref }} require-craft-fonts: ${{ inputs.require-craft-fonts }} @@ -640,7 +640,7 @@ jobs: caller-setup: "false" - name: Gate - uses: storytold/craft-common-actions/actions/gate-run@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/gate-run@ec2b41fc48ec147d5b359967ee0c27135132612e with: command: ${{ inputs.lint-command }} timeout-minutes: ${{ inputs.gate-timeout-minutes }} @@ -682,7 +682,7 @@ jobs: # there is one), so the shards do not race each other for it. Shards that run the build # job's archive build nothing and restore no cache. - name: Setup - uses: storytold/craft-common-actions/actions/gate-setup@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/gate-setup@ec2b41fc48ec147d5b359967ee0c27135132612e with: craft-fonts-ref: ${{ inputs.craft-fonts-ref }} require-craft-fonts: ${{ inputs.require-craft-fonts }} @@ -738,7 +738,7 @@ jobs: } >> "$GITHUB_ENV" - name: Gate - uses: storytold/craft-common-actions/actions/gate-run@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/gate-run@ec2b41fc48ec147d5b359967ee0c27135132612e with: command: >- ${{ matrix.part == 'warm' && inputs.warm-command @@ -749,7 +749,7 @@ jobs: # The marker is saved with the cache entry in rust-cache's post step, where the leg saves. - name: Record the cache commit if: inputs.cache-workspace-crates && !(matrix.part == 'shard' && inputs.archive-command != '') - uses: storytold/craft-common-actions/actions/restore-mtimes@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/restore-mtimes@ec2b41fc48ec147d5b359967ee0c27135132612e with: mode: record @@ -775,7 +775,7 @@ jobs: - name: Trim the cache entry to this build if: env.CRAFT_CACHE_UNITS != '' continue-on-error: true - uses: storytold/craft-common-actions/actions/cache-trim@99ded52ec9e57fce5c38de0b02f37a4279b4a38f + uses: storytold/craft-common-actions/actions/cache-trim@ec2b41fc48ec147d5b359967ee0c27135132612e # The `result` job reads these, one per shard leg: a matrix job's result covers every runner, # so it cannot say which runner's shards passed. Each leg's marker holds that leg's latest diff --git a/tests/test_gate.py b/tests/test_gate.py index 181c09b..184235c 100644 --- a/tests/test_gate.py +++ b/tests/test_gate.py @@ -22,7 +22,7 @@ SETUP_STEPS = SETUP['runs']['steps'] RUN_STEP = yaml.load((ROOT / 'actions/gate-run/action.yml').read_text(), Loader=yaml.BaseLoader)['runs']['steps'][0] # The reviewed revision of the first-party actions gate.yml calls: the commit that pinned # gate-setup to rust-cache's unit record. gate-setup pins its own (tests/test_gate_setup.py). -OWN_ACTION_REV = '99ded52ec9e57fce5c38de0b02f37a4279b4a38f' +OWN_ACTION_REV = 'ec2b41fc48ec147d5b359967ee0c27135132612e' SETUP_ACTION = 'storytold/craft-common-actions/actions/gate-setup@' + OWN_ACTION_REV CACHE = 'storytold/craft-common-actions/actions/rust-cache@fc3e1afc1cb4916c9134e9754c70c80da7e1ffc6' # Pushes to the default branch and opted-in manual runs: the runs that write caches.