0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-09 11:30:25 +00:00

Dump Netdata buildinfo during CI. ()

* Dump Netdata buildinfo during CI.

* Fix Windows build info.

* Ignore buildinfo dump failures during build process.
This commit is contained in:
Austin S. Hemmelgarn 2025-04-11 06:57:45 -04:00 committed by GitHub
parent 90a7ecb11a
commit 686818c6b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 29 additions and 0 deletions
.github
packaging

View file

@ -8,6 +8,10 @@ if [ -z "$(command -v nc 2>/dev/null)" ] && [ -z "$(command -v netcat 2>/dev/nul
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y netcat
fi
echo "::group::Netdata buildinfo"
docker run -i --rm netdata/netdata:test -W buildinfo
echo "::endgroup::"
docker run -d --name=netdata \
-p 19999:19999 \
-v netdataconfig:/etc/netdata \

View file

@ -130,6 +130,10 @@ case "${DISTRO}" in
;;
esac
echo "::group::Netdata buildinfo"
/usr/sbin/netdata -W buildinfo
echo "::endgroup::"
trap dump_log EXIT
export NETDATA_LIBEXEC_PREFIX=/usr/libexec/netdata

View file

@ -1121,6 +1121,9 @@ jobs:
id: test-agent
if: needs.file-check.outputs.run == 'true'
run: |
echo "::group::Netdata buildinfo"
/usr/local/netdata/usr/sbin/netdata -W buildinfo
echo "::endgroup::"
/usr/local/netdata/usr/sbin/netdata -D > ./netdata.log 2>&1 &
./packaging/runtime-check.sh
- name: Failure Notification

View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later
# shellcheck source=./packaging/makeself/functions.sh
. "${NETDATA_MAKESELF_PATH}"/functions.sh "${@}" || exit 1
# shellcheck disable=SC2015
[ "${GITHUB_ACTIONS}" = "true" ] && echo "::group::Netdata buildinfo" || true
run "${NETDATA_INSTALL_PATH}/bin/netdata" -W buildinfo
# shellcheck disable=SC2015
[ "${GITHUB_ACTIONS}" = "true" ] && echo "::endgroup::" || true

View file

@ -53,6 +53,10 @@ ${GITHUB_ACTIONS+echo "::group::Building"}
cmake --build "${build}" -- ${build_args}
${GITHUB_ACTIONS+echo "::endgroup::"}
${GITHUB_ACTIONS+echo "::group::Netdata buildinfo"}
"${build}/netdata.exe" -W buildinfo || true
${GITHUB_ACTIONS+echo "::endgroup::"}
if [ -t 1 ]; then
echo
echo "Compile with:"