ADG-12585 Upd all

* all: upd go; upd tools; upd chlog; upd scripts and hooks;

* make: fix script;

* make: fix script;

* make: upd docs; add todos;

* make: fix go-test;
This commit is contained in:
Maksim Kazantsev authored and GitHub committed 2026-10-27 16:02:27 +03:00
1 parent 71edcc5053
commit c0a81e99d2
19 files changed
+139 -82

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 3
# AdGuard-Project-Version: 5
# Only show interactive prompts if there a terminal is attached to stdout.
# While this technically doesn't guarantee that reading from /dev/tty works,
+2 -2
View File
@@ -3,9 +3,9 @@
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 6
# AdGuard-Project-Version: 7
set -e -f -u
set -e -f -o 'pipefail' -u
. ./scripts/hooks/helper.sh
+2 -2
View File
@@ -3,9 +3,9 @@
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 1
# AdGuard-Project-Version: 2
set -e -f -u
set -e -f -o 'pipefail' -u
. ./scripts/hooks/helper.sh
+7 -5
View File
@@ -9,7 +9,13 @@
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 2
# AdGuard-Project-Version: 3
# Exit the script if a pipeline fails (-e), prevent accidental filename
# expansion (-f), and consider undefined variables as errors (-u).
#
# TODO(m.kazantsev): Use set -o 'pipefail' when GitHub supports it.
set -e -f -u
# The default verbosity level is 0. Show every command that is run and every
# package that is processed if the caller requested verbosity level greater than
@@ -34,10 +40,6 @@ else
fi
readonly x_flags v_flags
# Exit the script if a pipeline fails (-e), prevent accidental filename
# expansion (-f), and consider undefined variables as errors (-u).
set -e -f -u
# Allow users to override the go command from environment. For example, to
# build two releases with two different Go versions and test the difference.
go="${GO:-go}"
+6 -3
View File
@@ -3,7 +3,10 @@
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 2
# AdGuard-Project-Version: 4
# TODO(m.kazantsev): Use set -o 'pipefail' when GitHub supports it.
set -e -f -u
verbose="${VERBOSE:-0}"
readonly verbose
@@ -21,9 +24,9 @@ else
fi
readonly x_flags
set -e -f -u
go="${GO:-go}"
readonly go
"$go" mod download "$x_flags"
"$go" install "$x_flags" tool
+1 -1
View File
@@ -203,7 +203,7 @@ fi
run_linter "$go" tool gocyclo --over 10 ./internal/ ./scripts/
# TODO(a.garipov): Enable 10 for all.
run_linter "$go" tool gocognit --over='14' \
run_linter "$go" tool gocognit --exact-recursion --over 14 \
./internal/dhcpd \
;
+5 -5
View File
@@ -3,7 +3,7 @@
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 8
# AdGuard-Project-Version: 11
verbose="${VERBOSE:-0}"
readonly verbose
@@ -67,15 +67,15 @@ fi
mkdir -p "$test_reports_dir"
# NOTE: The pipe ignoring the exit code here is intentional, as go-junit-report
# will set the exit code to be saved.
go_test 2>&1 \
# NOTE: The exit code is ignored intentionally, as go-junit-report will set
# the exit code by itself.
{ go_test 2>&1 || :; } \
| tee "${test_reports_dir}/test-output.txt"
# Don't fail on errors in exporting, because TEST_REPORTS_DIR is generally only
# not empty in CI, and so the exit code must be preserved to exit with it later.
set +e
"${GO:-go}" tool go-junit-report \
"$go" tool go-junit-report \
--in "${test_reports_dir}/test-output.txt" \
--set-exit-code \
>"${test_reports_dir}/test-report.xml"
+3 -3
View File
@@ -3,7 +3,9 @@
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 4
# AdGuard-Project-Version: 5
set -e -f -o 'pipefail' -u
verbose="${VERBOSE:-0}"
readonly verbose
@@ -21,8 +23,6 @@ else
fi
readonly x_flags
set -e -f -u
go="${GO:-go}"
readonly go
+1 -1
View File
@@ -9,7 +9,7 @@ verbose="${VERBOSE:-0}"
readonly verbose
# Don't use -f, because we use globs in this script.
set -e -u
set -e -o 'pipefail' -u
if [ "$verbose" -gt '0' ]; then
set -x
+2 -2
View File
@@ -3,7 +3,7 @@
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 5
# AdGuard-Project-Version: 6
# Don't use -f, because we use globs in this script.
set -e -o 'pipefail' -u
@@ -21,7 +21,7 @@ fi
go="${GO:-go}"
readonly go
run_linter -e "$go" tool shfmt --binary-next-line -d -p -s \
run_linter "$go" tool shfmt --binary-next-line -d -p -s \
./scripts/hooks/* \
./scripts/install.sh \
./scripts/make/*.sh \