1
1
name : ' Nightly jobs'
2
2
on :
3
- schedule :
4
- - cron : ' 30 1 * * * '
3
+ pull_request :
4
+ branches : [main]
5
5
workflow_dispatch :
6
6
7
7
permissions : read-all
@@ -13,7 +13,7 @@ permissions: read-all
13
13
# task scheduler will start a restore all blobs process at zot startup, after it finishes all blobs should be restored to their original state (have content)
14
14
jobs :
15
15
dedupe :
16
- name : Dedupe/restore blobs
16
+ name : Kind Prometheus test
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- uses : actions/checkout@v4
24
24
- name : Install dependencies
25
25
run : |
26
26
cd $GITHUB_WORKSPACE
27
- go install github.com/swaggo/swag/cmd/[email protected]
28
- go mod download
29
27
sudo apt-get update
30
28
sudo apt-get install libgpgme-dev libassuan-dev libbtrfs-dev libdevmapper-dev pkg-config rpm uidmap
31
29
# install skopeo
@@ -40,127 +38,5 @@ jobs:
40
38
registry : ghcr.io
41
39
username : ${{ github.actor }}
42
40
password : ${{ github.token }}
43
- - name : Install localstack
44
- run : |
45
- pip install --upgrade pyopenssl
46
- pip install localstack==2.3.1 awscli-local[ver1] # install LocalStack cli and awslocal
47
- docker pull ghcr.io/project-zot/ci-images/localstack:2.3.1 # Make sure to pull the latest version of the image
48
- localstack start -d # Start LocalStack in the background
49
-
50
- echo "Waiting for LocalStack startup..." # Wait 30 seconds for the LocalStack container
51
- localstack wait -t 30 # to become ready before timing out
52
- echo "Startup complete"
53
- - name : Run blackbox nightly dedupe tests
54
- run : |
55
- # test restoring s3 blobs after cache is deleted
56
- # test deduping filesystem blobs after switching dedupe to enable
57
- make run-blackbox-dedupe-nightly
58
- env :
59
- AWS_ACCESS_KEY_ID : fake
60
- AWS_SECRET_ACCESS_KEY : fake
61
- - uses : ./.github/actions/teardown-localstack
62
-
63
- sync :
64
- name : Sync harness
65
- runs-on : ubuntu-latest
66
- steps :
67
- - name : Check out source code
68
- uses : actions/checkout@v4
69
- - uses : ./.github/actions/clean-runner
70
- - uses : actions/setup-go@v3
71
- with :
72
- go-version : 1.20.x
73
- - name : Install dependencies
74
- run : |
75
- cd $GITHUB_WORKSPACE
76
- go install github.com/swaggo/swag/cmd/[email protected]
77
- go mod download
78
- - name : Run sync harness
79
- run : |
80
- make run-blackbox-sync-nightly
81
-
82
- gc-referrers-stress-s3 :
83
- name : GC(with referrers) on S3(localstack) with short interval
84
- runs-on : ubuntu-latest
85
- steps :
86
- - uses : actions/checkout@v4
87
- - uses : ./.github/actions/clean-runner
88
- - uses : actions/setup-go@v4
89
- with :
90
- cache : false
91
- go-version : 1.20.x
92
- - uses : ./.github/actions/setup-localstack
93
-
94
- - name : Run zb
95
- id : bench
96
- run : |
97
- make binary
98
- make bench
99
- ./bin/zot-linux-amd64 serve test/gc-stress/config-gc-referrers-bench-s3-localstack.json &
100
- sleep 10
101
- bin/zb-linux-amd64 -c 10 -n 100 -o ci-cd http://localhost:8080 --skip-cleanup
102
-
103
- killall -r zot-*
104
-
105
- # clean zot storage
106
- sudo rm -rf /tmp/zot
107
- env :
108
- AWS_ACCESS_KEY_ID : fake
109
- AWS_SECRET_ACCESS_KEY : fake
110
- continue-on-error : true
111
-
112
- - name : Check on failures
113
- if : steps.bench.outcome != 'success'
114
- run : |
115
- cat /tmp/gc-referrers-bench-s3.log
116
- exit 1
117
- - uses : ./.github/actions/teardown-localstack
118
-
119
- gc-stress-s3 :
120
- name : GC(without referrers) on S3(localstack) with short interval
121
- runs-on : ubuntu-latest
122
- steps :
123
- - uses : actions/checkout@v4
124
- - uses : ./.github/actions/clean-runner
125
- - uses : actions/setup-go@v4
126
- with :
127
- cache : false
128
- go-version : 1.20.x
129
- - uses : ./.github/actions/setup-localstack
130
-
131
- - name : Run zb
132
- id : bench
133
- run : |
134
- make binary
135
- make bench
136
- ./bin/zot-linux-amd64 serve test/gc-stress/config-gc-bench-s3-localstack.json &
137
- sleep 10
138
- bin/zb-linux-amd64 -c 10 -n 100 -o ci-cd http://localhost:8080 --skip-cleanup
139
-
140
- killall -r zot-*
141
-
142
- # clean zot storage
143
- sudo rm -rf /tmp/zot
144
- env :
145
- AWS_ACCESS_KEY_ID : fake
146
- AWS_SECRET_ACCESS_KEY : fake
147
- continue-on-error : true
148
-
149
- - name : Check on failures
150
- if : steps.bench.outcome != 'success'
151
- run : |
152
- cat /tmp/gc-bench-s3.log
153
- exit 1
154
- - uses : ./.github/actions/teardown-localstack
155
-
156
- docker-image :
157
- name : Build docker image (for users still using Docker environments)
158
- runs-on : ubuntu-latest
159
- steps :
160
- - uses : actions/checkout@v4
161
- - uses : ./.github/actions/clean-runner
162
- - name : Check out source code
163
- uses : actions/checkout@v4
164
- - name : Build image
165
- run : |
166
- make docker-image
41
+ - name : Run tests
42
+ run : ./examples/kind/kind-ci.sh
0 commit comments