mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-08-04 15:28:58 +00:00
Pull request 2569: AGDNS-3555-imp-docker
Squashed commit of the following:
commit f8f7edfd3948528dfc828cbaa9aa549fdd87c501
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Thu Jan 29 14:12:51 2026 +0300
scripts: workaround
commit ad007b9ee1db92b37081cb9b8f98708e97fc65ff
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Thu Jan 29 14:01:34 2026 +0300
bamboo-specs: imp
commit 883a5faad7a034cd6d70d0cc1daa47311e6de46f
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Thu Jan 29 13:56:41 2026 +0300
scripts: rm unused debug, add progress
This commit is contained in:
parent
dde59df7bb
commit
8f55534e59
6 changed files with 40 additions and 27 deletions
|
|
@ -69,7 +69,7 @@
|
|||
VERBOSE=1\
|
||||
js-deps js-build
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'Make release':
|
||||
'artifact-subscriptions':
|
||||
|
|
@ -122,7 +122,7 @@
|
|||
VERBOSE=2\
|
||||
build-release
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'Make and publish docker':
|
||||
'key': 'MPD'
|
||||
|
|
@ -173,7 +173,7 @@
|
|||
'final-tasks':
|
||||
- 'clean'
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'Publish to static storage':
|
||||
'key': 'PUB'
|
||||
|
|
@ -202,7 +202,7 @@
|
|||
'final-tasks':
|
||||
- 'clean'
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'Publish to GitHub Releases':
|
||||
'key': 'PTGR'
|
||||
|
|
@ -240,7 +240,7 @@
|
|||
'final-tasks':
|
||||
- 'clean'
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'triggers':
|
||||
# Don't use minute values that end with a zero or a five as these are often
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
VERBOSE='1' \
|
||||
sh ./scripts/snap/download.sh
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'Build packages':
|
||||
'artifact-subscriptions':
|
||||
|
|
@ -118,7 +118,7 @@
|
|||
VERBOSE='1' \
|
||||
sh ./scripts/snap/build.sh
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'Publish to Snapstore':
|
||||
'artifact-subscriptions':
|
||||
|
|
@ -150,7 +150,7 @@
|
|||
'final-tasks':
|
||||
- 'clean'
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'triggers':
|
||||
# Don't use minute values that end with a zero or a five as these are often
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
'final-tasks':
|
||||
- 'clean'
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
# TODO(e.burkov): Add the linting stage for markdown docs and shell scripts.
|
||||
'Test backend':
|
||||
|
|
@ -117,7 +117,7 @@
|
|||
|
||||
exit "$exit_code"
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'Build frontend':
|
||||
'artifacts':
|
||||
|
|
@ -147,7 +147,7 @@
|
|||
VERBOSE=1\
|
||||
js-deps js-build
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'Artifact':
|
||||
'artifact-subscriptions':
|
||||
|
|
@ -194,7 +194,7 @@
|
|||
VERBOSE=2\
|
||||
build-release
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'Test e2e':
|
||||
'artifact-subscriptions':
|
||||
|
|
@ -226,7 +226,7 @@
|
|||
|
||||
make VERBOSE=1 js-deps js-test-e2e
|
||||
'requirements':
|
||||
- 'adg-docker': 'true'
|
||||
- 'golang': true
|
||||
|
||||
'branches':
|
||||
'create': 'for-pull-request'
|
||||
|
|
|
|||
|
|
@ -4,12 +4,9 @@ verbose="${VERBOSE:-0}"
|
|||
|
||||
if [ "$verbose" -gt '0' ]; then
|
||||
set -x
|
||||
debug_flags='--debug=1'
|
||||
else
|
||||
set +x
|
||||
debug_flags='--debug=0'
|
||||
fi
|
||||
readonly debug_flags
|
||||
|
||||
set -e -f -u
|
||||
|
||||
|
|
@ -111,13 +108,13 @@ docker_build_opt_tag() {
|
|||
set -- \
|
||||
"$@" \
|
||||
docker \
|
||||
"$debug_flags" \
|
||||
build \
|
||||
--build-arg BUILD_DATE="$build_date" \
|
||||
--build-arg DIST_DIR="$dist_dir" \
|
||||
--build-arg VCS_REF="$commit" \
|
||||
--build-arg VERSION="$version" \
|
||||
--platform "$docker_platforms" \
|
||||
--progress 'plain' \
|
||||
;
|
||||
|
||||
# Append the channel tag, if any.
|
||||
|
|
@ -132,7 +129,7 @@ docker_build_opt_tag() {
|
|||
|
||||
# Push to DockerHub, if requested.
|
||||
if [ "$docker_push" -eq 1 ]; then
|
||||
set -- "$@" "--push"
|
||||
set -- "$@" '--push'
|
||||
fi
|
||||
|
||||
# Append the rest.
|
||||
|
|
|
|||
|
|
@ -31,22 +31,25 @@ else
|
|||
fi
|
||||
readonly race_flags
|
||||
|
||||
go="${GO:-go}"
|
||||
|
||||
benchtime_flags="${BENCHTIME_FLAGS:---benchtime=1x}"
|
||||
count_flags='--count=2'
|
||||
go="${GO:-go}"
|
||||
shuffle_flags='--shuffle=on'
|
||||
timeout_flags="${TIMEOUT_FLAGS:---timeout=30s}"
|
||||
readonly go count_flags shuffle_flags timeout_flags
|
||||
readonly benchtime_flags count_flags go shuffle_flags timeout_flags
|
||||
|
||||
"$go" test \
|
||||
env \
|
||||
GOMAXPROCS="${GOMAXPROCS:-2}" \
|
||||
"$go" test \
|
||||
"$benchtime_flags" \
|
||||
"$count_flags" \
|
||||
"$shuffle_flags" \
|
||||
"$race_flags" \
|
||||
"$shuffle_flags" \
|
||||
"$timeout_flags" \
|
||||
"$x_flags" \
|
||||
"$v_flags" \
|
||||
"$x_flags" \
|
||||
--bench='.' \
|
||||
--benchmem \
|
||||
--benchtime='1s' \
|
||||
--run='^$' \
|
||||
./...
|
||||
work \
|
||||
;
|
||||
|
|
|
|||
|
|
@ -163,7 +163,20 @@ run_linter -e gofumpt --extra -e -l .
|
|||
|
||||
run_linter "${GO:-go}" vet ./...
|
||||
|
||||
run_linter govulncheck ./...
|
||||
# govulncheck is not stricly reproducible, because it queries the VulnDB, which
|
||||
# is updated constantly. If a stricly reproducible lint is desired, for example
|
||||
# for Docker lint stages, set IGNORE_NON_REPRODUCIBLE to 1 to ignore the exit
|
||||
# code from govulncheck.
|
||||
#
|
||||
# TODO(a.garipov): Return the default to 0 and update the Go version once
|
||||
# https://github.com/quic-go/quic-go/issues/5543 is fixed.
|
||||
if [ "${IGNORE_NON_REPRODUCIBLE:-1}" -gt '0' ]; then
|
||||
# run_linter calls set +e, so don't mind the cancelling effect of ||.
|
||||
# shellcheck disable=SC2310
|
||||
run_linter govulncheck work || :
|
||||
else
|
||||
run_linter govulncheck work
|
||||
fi
|
||||
|
||||
run_linter gocyclo --over 10 .
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue