0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-30 22:34:13 -05:00

fix(nightly): fix nightly builds (#1584)

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
peusebiu 2023-07-06 16:50:12 +03:00 committed by GitHub
parent 41b05c60dd
commit 7d7e4416b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 14 deletions

View 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

View file

@ -32,21 +32,14 @@ jobs:
os: [linux, darwin]
arch: [amd64, arm64]
steps:
- name: Remove unneeded tooling
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
- name: Check out source code
uses: actions/checkout@v3
- uses: ./.github/actions/clean-runner
- name: Install go
uses: actions/setup-go@v4
with:
cache: false
go-version: 1.20.x
- name: Check out source code
uses: actions/checkout@v3
- name: Cache go dependencies
id: cache-go-dependencies
uses: actions/cache@v3

View file

@ -17,6 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/clean-runner
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
@ -59,7 +60,9 @@ jobs:
name: Sync harness
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check out source code
uses: actions/checkout@v3
- uses: ./.github/actions/clean-runner
- uses: actions/setup-go@v3
with:
go-version: 1.20.x

View file

@ -58,7 +58,7 @@ function zot_serve() {
function zb_run() {
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() {

View file

@ -113,7 +113,7 @@ function teardown_file() {
wait_zot_reachable "http://127.0.0.1:8080/v2/"
start=`date +%s`
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 ]
end=`date +%s`

View file

@ -105,7 +105,7 @@ function teardown_file() {
start=`date +%s`
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 ]
end=`date +%s`