mirror of
https://github.com/project-zot/zot.git
synced 2025-01-13 22:50:38 -05:00
fix(nightly): fix nightly builds (#1584)
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
parent
41b05c60dd
commit
7d7e4416b5
6 changed files with 22 additions and 14 deletions
12
.github/actions/clean-runner/action.yaml
vendored
Normal file
12
.github/actions/clean-runner/action.yaml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
name: 'Clean runner'
|
||||||
|
description: 'Remove unneeded tooling'
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
|
# To free up ~15 GB of disk space
|
||||||
|
sudo rm -rf /opt/ghc
|
||||||
|
sudo rm -rf /usr/local/share/boost
|
||||||
|
sudo rm -rf /usr/local/lib/android
|
||||||
|
sudo rm -rf /usr/share/dotnet
|
13
.github/workflows/ci-cd.yml
vendored
13
.github/workflows/ci-cd.yml
vendored
|
@ -32,21 +32,14 @@ jobs:
|
||||||
os: [linux, darwin]
|
os: [linux, darwin]
|
||||||
arch: [amd64, arm64]
|
arch: [amd64, arm64]
|
||||||
steps:
|
steps:
|
||||||
- name: Remove unneeded tooling
|
- name: Check out source code
|
||||||
run: |
|
uses: actions/checkout@v3
|
||||||
# To free up ~15 GB of disk space
|
- uses: ./.github/actions/clean-runner
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
sudo rm -rf /usr/local/share/boost
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
- name: Install go
|
- name: Install go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
cache: false
|
cache: false
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
|
|
||||||
- name: Check out source code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Cache go dependencies
|
- name: Cache go dependencies
|
||||||
id: cache-go-dependencies
|
id: cache-go-dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
|
5
.github/workflows/nightly.yaml
vendored
5
.github/workflows/nightly.yaml
vendored
|
@ -17,6 +17,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: ./.github/actions/clean-runner
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
|
@ -59,7 +60,9 @@ jobs:
|
||||||
name: Sync harness
|
name: Sync harness
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Check out source code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- uses: ./.github/actions/clean-runner
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
|
|
|
@ -58,7 +58,7 @@ function zot_serve() {
|
||||||
|
|
||||||
function zb_run() {
|
function zb_run() {
|
||||||
local zot_address=${1}
|
local zot_address=${1}
|
||||||
${ZB_PATH} -c 10 -n 100 -o stdout ${zot_address} --skip-cleanup
|
${ZB_PATH} -c 10 -n 30 -o stdout ${zot_address} --skip-cleanup
|
||||||
}
|
}
|
||||||
|
|
||||||
function wait_str() {
|
function wait_str() {
|
||||||
|
|
|
@ -113,7 +113,7 @@ function teardown_file() {
|
||||||
wait_zot_reachable "http://127.0.0.1:8080/v2/"
|
wait_zot_reachable "http://127.0.0.1:8080/v2/"
|
||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
echo "waiting for restoring blobs task to finish" >&3
|
echo "waiting for restoring blobs task to finish" >&3
|
||||||
run wait_for_string "dedupe rebuild: finished" ${ZOT_LOG_FILE} "5m"
|
run wait_for_string "dedupe rebuild: finished" ${ZOT_LOG_FILE} "10m"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
|
|
||||||
end=`date +%s`
|
end=`date +%s`
|
||||||
|
|
|
@ -105,7 +105,7 @@ function teardown_file() {
|
||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
echo "waiting for sync to finish" >&3
|
echo "waiting for sync to finish" >&3
|
||||||
|
|
||||||
run wait_for_string "sync: finished syncing all repos" ${ZOT_LOG_FILE} "3m"
|
run wait_for_string "sync: finished syncing all repos" ${ZOT_LOG_FILE} "5m"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
|
|
||||||
end=`date +%s`
|
end=`date +%s`
|
||||||
|
|
Loading…
Add table
Reference in a new issue