Skip to content

Commit 36dfcaa

Browse files
ci(build): install flux CLI on ephemeral build runners
The installer's image-packages target runs 'flux push artifact' to publish the cozystack-packages OCI artifact, whose digest is written into the installer values.yaml (platformSourceUrl/Ref) and pulled by cozystack-operator as its PackageSource. flux is absent on the ephemeral oracle-vm image, so 'make build' fails at image-packages with 'flux: not found'. Install it if absent (idempotent), alongside the helm-unittest plugin. Stopgap -- the durable fix is to bake both tools into the oracle-vm runner image and drop this step. Part of #2937. Assisted-By: Claude <[email protected]> Signed-off-by: Myasnikov Daniil <[email protected]>
1 parent 2ad0602 commit 36dfcaa

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎.github/workflows/pull-requests.yaml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,18 @@ jobs:
5757
fetch-depth: 0
5858
fetch-tags: true
5959

60-
# Ephemeral runners don't carry the helm unittest plugin that the
61-
# persistent self-hosted runner accreted. Install it if absent
62-
# (idempotent; the debug/self-hosted path already has it). The durable
63-
# fix is the container-based builder (separate PR) that bakes the full
64-
# toolchain into an image instead of depending on the host.
60+
# Ephemeral runners don't carry two tools the persistent self-hosted
61+
# runner accreted: the helm-unittest plugin (make unit-tests) and the
62+
# flux CLI (the installer's `flux push artifact` publishes the
63+
# cozystack-packages OCI artifact the operator pulls). Install if absent
64+
# (idempotent; the debug/self-hosted path already has them). Durable fix:
65+
# bake both into the oracle-vm runner image, then drop this step.
6566
- name: Set up build toolchain
6667
run: |
6768
helm plugin list 2>/dev/null | grep -q unittest \
6869
|| helm plugin install https://github.com/helm-unittest/helm-unittest
70+
command -v flux >/dev/null \
71+
|| curl -s https://fluxcd.io/install.sh | sudo bash
6972
7073
- name: Run unit tests
7174
run: make unit-tests

0 commit comments

Comments
 (0)