Skip to content

Commit ba8cd30

Browse files
committed
test: enable image-cache in the cron
Enable cron pipeline. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
1 parent 28b5dc7 commit ba8cd30

3 files changed

Lines changed: 105 additions & 1 deletion

File tree

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2+
#
3+
# Generated on 2025-03-04T12:52:37Z by kres 1281806.
4+
5+
name: integration-image-cache-cron
6+
concurrency:
7+
group: ${{ github.head_ref || github.run_id }}
8+
cancel-in-progress: true
9+
"on":
10+
schedule:
11+
- cron: 30 2 * * *
12+
jobs:
13+
default:
14+
runs-on:
15+
- self-hosted
16+
- talos
17+
steps:
18+
- name: gather-system-info
19+
id: system-info
20+
uses: kenchan0130/actions-system-info@v1.3.0
21+
continue-on-error: true
22+
- name: print-system-info
23+
run: |
24+
MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024))
25+
26+
OUTPUTS=(
27+
"CPU Core: ${{ steps.system-info.outputs.cpu-core }}"
28+
"CPU Model: ${{ steps.system-info.outputs.cpu-model }}"
29+
"Hostname: ${{ steps.system-info.outputs.hostname }}"
30+
"NodeName: ${NODE_NAME}"
31+
"Kernel release: ${{ steps.system-info.outputs.kernel-release }}"
32+
"Kernel version: ${{ steps.system-info.outputs.kernel-version }}"
33+
"Name: ${{ steps.system-info.outputs.name }}"
34+
"Platform: ${{ steps.system-info.outputs.platform }}"
35+
"Release: ${{ steps.system-info.outputs.release }}"
36+
"Total memory: ${MEMORY_GB} GB"
37+
)
38+
39+
for OUTPUT in "${OUTPUTS[@]}";do
40+
echo "${OUTPUT}"
41+
done
42+
continue-on-error: true
43+
- name: checkout
44+
uses: actions/checkout@v4
45+
- name: Unshallow
46+
run: |
47+
git fetch --prune --unshallow
48+
- name: Set up Docker Buildx
49+
id: setup-buildx
50+
uses: docker/setup-buildx-action@v3
51+
with:
52+
driver: remote
53+
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
54+
timeout-minutes: 10
55+
- name: Download artifacts
56+
if: github.event_name != 'schedule'
57+
uses: actions/download-artifact@v4
58+
with:
59+
name: talos-artifacts
60+
path: _out
61+
- name: Fix artifact permissions
62+
if: github.event_name != 'schedule'
63+
run: |
64+
xargs -a _out/executable-artifacts -I {} chmod +x {}
65+
- name: ci-temp-release-tag
66+
if: github.event_name != 'schedule'
67+
run: |
68+
make ci-temp-release-tag
69+
- name: uki-certs
70+
if: github.event_name == 'schedule'
71+
env:
72+
PLATFORM: linux/amd64
73+
run: |
74+
make uki-certs
75+
- name: image-cache
76+
env:
77+
IMAGE_REGISTRY: registry.dev.siderolabs.io
78+
PLATFORM: linux/amd64,linux/arm64
79+
PUSH: "true"
80+
run: |
81+
make cache-create
82+
- name: e2e-image-cache
83+
env:
84+
GITHUB_STEP_NAME: ${{ github.job}}-e2e-image-cache
85+
IMAGE_REGISTRY: registry.dev.siderolabs.io
86+
REGISTRY_MIRROR_FLAGS: "no"
87+
SHORT_INTEGRATION_TEST: "yes"
88+
VIA_MAINTENANCE_MODE: "true"
89+
WITH_CONFIG_PATCH: '@hack/test/patches/image-cache.yaml'
90+
WITH_ISO: "true"
91+
run: |
92+
sudo -E make e2e-qemu
93+
- name: save artifacts
94+
if: always()
95+
uses: actions/upload-artifact@v4
96+
with:
97+
name: talos-logs-integration-image-cache
98+
path: |-
99+
/tmp/logs-*.tar.gz
100+
/tmp/support-*.zip
101+
retention-days: "5"

.github/workflows/slack-notify.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-01-15T19:56:36Z by kres 3b3f992.
3+
# Generated on 2025-03-04T12:52:37Z by kres 1281806.
44

55
name: slack-notify
66
"on":
@@ -27,6 +27,7 @@ name: slack-notify
2727
- integration-qemu-csi-openebs-cron
2828
- integration-images-cron
2929
- integration-reproducibility-test-cron
30+
- integration-image-cache-cron
3031
- integration-image-factory-cron
3132
- integration-aws-cron
3233
- integration-aws-nvidia-oss-cron

.kres.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,8 @@ spec:
16761676
runners:
16771677
- self-hosted
16781678
- talos
1679+
crons:
1680+
- '30 2 * * *'
16791681
triggerLabels:
16801682
- integration/image-cache
16811683
steps:

0 commit comments

Comments
 (0)