@cryptotaxi247 / netdata-1 / commits / 686818c6b

Dump Netdata buildinfo during CI. (#19918)

* Dump Netdata buildinfo during CI. * Fix Windows build info. * Ignore buildinfo dump failures during build process.

Austin S. Hemmelgarn committed Apr 11, 2025 at 06:57 UTC 686818c6b102a96a30be5ea48ca96437c99649aa
5 files changed +29
.github/scripts/docker-test.sh
+4
@@ -8,6 +8,10 @@ if [ -z "$(command -v nc 2>/dev/null)" ] && [ -z "$(command -v netcat 2>/dev/nul
8 sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y netcat
9 fi
10
11 +echo "::group::Netdata buildinfo"
12 +docker run -i --rm netdata/netdata:test -W buildinfo
13 +echo "::endgroup::"
14 +
15 docker run -d --name=netdata \
16 -p 19999:19999 \
17 -v netdataconfig:/etc/netdata \
.github/scripts/pkg-test.sh
+4
@@ -130,6 +130,10 @@ case "${DISTRO}" in
130 ;;
131 esac
132
133 +echo "::group::Netdata buildinfo"
134 +/usr/sbin/netdata -W buildinfo
135 +echo "::endgroup::"
136 +
137 trap dump_log EXIT
138
139 export NETDATA_LIBEXEC_PREFIX=/usr/libexec/netdata
.github/workflows/build.yml
+3
@@ -1121,6 +1121,9 @@ jobs:
1121 id: test-agent
1122 if: needs.file-check.outputs.run == 'true'
1123 run: |
1124 + echo "::group::Netdata buildinfo"
1125 + /usr/local/netdata/usr/sbin/netdata -W buildinfo
1126 + echo "::endgroup::"
1127 /usr/local/netdata/usr/sbin/netdata -D > ./netdata.log 2>&1 &
1128 ./packaging/runtime-check.sh
1129 - name: Failure Notification
packaging/makeself/jobs/89-buildinfo.install.sh new
+14
@@ -0,0 +1,14 @@
1 +#!/usr/bin/env bash
2 +# SPDX-License-Identifier: GPL-3.0-or-later
3 +
4 +# shellcheck source=./packaging/makeself/functions.sh
5 +. "${NETDATA_MAKESELF_PATH}"/functions.sh "${@}" || exit 1
6 +
7 +
8 +# shellcheck disable=SC2015
9 +[ "${GITHUB_ACTIONS}" = "true" ] && echo "::group::Netdata buildinfo" || true
10 +
11 +run "${NETDATA_INSTALL_PATH}/bin/netdata" -W buildinfo
12 +
13 +# shellcheck disable=SC2015
14 +[ "${GITHUB_ACTIONS}" = "true" ] && echo "::endgroup::" || true
packaging/windows/compile-on-windows.sh
+4
@@ -53,6 +53,10 @@ ${GITHUB_ACTIONS+echo "::group::Building"}
53 cmake --build "${build}" -- ${build_args}
54 ${GITHUB_ACTIONS+echo "::endgroup::"}
55
56 +${GITHUB_ACTIONS+echo "::group::Netdata buildinfo"}
57 +"${build}/netdata.exe" -W buildinfo || true
58 +${GITHUB_ACTIONS+echo "::endgroup::"}
59 +
60 if [ -t 1 ]; then
61 echo
62 echo "Compile with:"