ci: chainspec sync check#537
Conversation
4159d46 to
5885523
Compare
| - name: Cache polkadot-omni-node | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| id: omni-node-cache | ||
| with: | ||
| path: ${{ env.OMNI_NODE_BIN_DIR }} | ||
| key: omni-node-${{ env.OMNI_NODE_VERSION }} | ||
|
|
||
| - name: Download polkadot-omni-node | ||
| if: steps.omni-node-cache.outputs.cache-hit != 'true' | ||
| run: | | ||
| mkdir -p "$OMNI_NODE_BIN_DIR" | ||
| cd "$OMNI_NODE_BIN_DIR" | ||
| curl -fL -o polkadot-omni-node \ | ||
| "https://github.com/paritytech/polkadot-sdk/releases/download/${OMNI_NODE_VERSION}/polkadot-omni-node" | ||
| echo "${OMNI_NODE_SHA256} polkadot-omni-node" | sha256sum -c - | ||
| chmod +x polkadot-omni-node |
There was a problem hiding this comment.
Let's use the same download mechanism:
polkadot-bulletin-chain/.github/workflows/integration-test.yml
Lines 129 to 146 in 273b188
@karolk91 not sure if just ${{ env.POLKADOT_BINARIES_DIR }}/polkadot-omni-node works
| - name: Cache polkadot-omni-node | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | |
| id: omni-node-cache | |
| with: | |
| path: ${{ env.OMNI_NODE_BIN_DIR }} | |
| key: omni-node-${{ env.OMNI_NODE_VERSION }} | |
| - name: Download polkadot-omni-node | |
| if: steps.omni-node-cache.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir -p "$OMNI_NODE_BIN_DIR" | |
| cd "$OMNI_NODE_BIN_DIR" | |
| curl -fL -o polkadot-omni-node \ | |
| "https://github.com/paritytech/polkadot-sdk/releases/download/${OMNI_NODE_VERSION}/polkadot-omni-node" | |
| echo "${OMNI_NODE_SHA256} polkadot-omni-node" | sha256sum -c - | |
| chmod +x polkadot-omni-node |
|
|
||
| - uses: ./.github/actions/install-just | ||
|
|
||
| - name: Cache polkadot-node binaries |
There was a problem hiding this comment.
@x3c41a @karolk91 I think we need to run "setup" before matrix job, because all took 16min:
https://github.com/paritytech/polkadot-bulletin-chain/actions/runs/25871727728/job/76028482209?pr=537#step:6:32
https://github.com/paritytech/polkadot-bulletin-chain/actions/runs/25871727728/job/76028482294?pr=537#step:6:32
Cache not found for input keys: polkadot-node-Linux-d6a4f5977b39bf5e5152e2f2bb6719ea92b992ea
There was a problem hiding this comment.
Yes, I was also looking at this. Here is some attempt to make it easier to handle these binaries+caches: #540. If we merge that then this job would need to do something like:
- Outside of matrix job - to be run only by single runner, so if we need to recompile for some reason, then it will be only done on a single runner
- name: Set up Polkadot binaries
uses: ./.github/actions/use-polkadot-binaries
with:
groups: polkadot-node
mode: prepare
- Then inside a matrix job:
- name: Set up Polkadot binaries
uses: ./.github/actions/use-polkadot-binaries
with:
groups: polkadot-node
mode: consume
Summary
polkadot-omni-nodefor each chainspec inchainspecs/and waits until it imports a few blockspolkadot-omni-nodeversion (and SHA256) is pinned in the workflow itselfTriggers
chainspecs/or the workflow itselfworkflow_dispatchFollow-up to