From ba8cd304d2029c93c31135b2003b1f2f064ff29f Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 4 Mar 2025 16:57:00 +0400 Subject: [PATCH] test: enable image-cache in the cron Enable cron pipeline. Signed-off-by: Andrey Smirnov --- .../integration-image-cache-cron.yaml | 101 ++++++++++++++++++ .github/workflows/slack-notify.yaml | 3 +- .kres.yaml | 2 + 3 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/integration-image-cache-cron.yaml diff --git a/.github/workflows/integration-image-cache-cron.yaml b/.github/workflows/integration-image-cache-cron.yaml new file mode 100644 index 000000000..902d5680f --- /dev/null +++ b/.github/workflows/integration-image-cache-cron.yaml @@ -0,0 +1,101 @@ +# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. +# +# Generated on 2025-03-04T12:52:37Z by kres 1281806. + +name: integration-image-cache-cron +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true +"on": + schedule: + - cron: 30 2 * * * +jobs: + default: + runs-on: + - self-hosted + - talos + steps: + - name: gather-system-info + id: system-info + uses: kenchan0130/actions-system-info@v1.3.0 + continue-on-error: true + - name: print-system-info + run: | + MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024)) + + OUTPUTS=( + "CPU Core: ${{ steps.system-info.outputs.cpu-core }}" + "CPU Model: ${{ steps.system-info.outputs.cpu-model }}" + "Hostname: ${{ steps.system-info.outputs.hostname }}" + "NodeName: ${NODE_NAME}" + "Kernel release: ${{ steps.system-info.outputs.kernel-release }}" + "Kernel version: ${{ steps.system-info.outputs.kernel-version }}" + "Name: ${{ steps.system-info.outputs.name }}" + "Platform: ${{ steps.system-info.outputs.platform }}" + "Release: ${{ steps.system-info.outputs.release }}" + "Total memory: ${MEMORY_GB} GB" + ) + + for OUTPUT in "${OUTPUTS[@]}";do + echo "${OUTPUT}" + done + continue-on-error: true + - name: checkout + uses: actions/checkout@v4 + - name: Unshallow + run: | + git fetch --prune --unshallow + - name: Set up Docker Buildx + id: setup-buildx + uses: docker/setup-buildx-action@v3 + with: + driver: remote + endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234 + timeout-minutes: 10 + - name: Download artifacts + if: github.event_name != 'schedule' + uses: actions/download-artifact@v4 + with: + name: talos-artifacts + path: _out + - name: Fix artifact permissions + if: github.event_name != 'schedule' + run: | + xargs -a _out/executable-artifacts -I {} chmod +x {} + - name: ci-temp-release-tag + if: github.event_name != 'schedule' + run: | + make ci-temp-release-tag + - name: uki-certs + if: github.event_name == 'schedule' + env: + PLATFORM: linux/amd64 + run: | + make uki-certs + - name: image-cache + env: + IMAGE_REGISTRY: registry.dev.siderolabs.io + PLATFORM: linux/amd64,linux/arm64 + PUSH: "true" + run: | + make cache-create + - name: e2e-image-cache + env: + GITHUB_STEP_NAME: ${{ github.job}}-e2e-image-cache + IMAGE_REGISTRY: registry.dev.siderolabs.io + REGISTRY_MIRROR_FLAGS: "no" + SHORT_INTEGRATION_TEST: "yes" + VIA_MAINTENANCE_MODE: "true" + WITH_CONFIG_PATCH: '@hack/test/patches/image-cache.yaml' + WITH_ISO: "true" + run: | + sudo -E make e2e-qemu + - name: save artifacts + if: always() + uses: actions/upload-artifact@v4 + with: + name: talos-logs-integration-image-cache + path: |- + /tmp/logs-*.tar.gz + /tmp/support-*.zip + retention-days: "5" diff --git a/.github/workflows/slack-notify.yaml b/.github/workflows/slack-notify.yaml index 9d922c4aa..eb7953045 100644 --- a/.github/workflows/slack-notify.yaml +++ b/.github/workflows/slack-notify.yaml @@ -1,6 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2025-01-15T19:56:36Z by kres 3b3f992. +# Generated on 2025-03-04T12:52:37Z by kres 1281806. name: slack-notify "on": @@ -27,6 +27,7 @@ name: slack-notify - integration-qemu-csi-openebs-cron - integration-images-cron - integration-reproducibility-test-cron + - integration-image-cache-cron - integration-image-factory-cron - integration-aws-cron - integration-aws-nvidia-oss-cron diff --git a/.kres.yaml b/.kres.yaml index aa4fb9bee..300bb8c90 100644 --- a/.kres.yaml +++ b/.kres.yaml @@ -1676,6 +1676,8 @@ spec: runners: - self-hosted - talos + crons: + - '30 2 * * *' triggerLabels: - integration/image-cache steps: