mirror of
https://github.com/netdata/netdata.git
synced 2025-05-09 11:30:25 +00:00
Dump Netdata buildinfo during CI. (#19918)
* Dump Netdata buildinfo during CI. * Fix Windows build info. * Ignore buildinfo dump failures during build process.
This commit is contained in:
parent
90a7ecb11a
commit
686818c6b1
5 changed files with 29 additions and 0 deletions
.github
packaging
4
.github/scripts/docker-test.sh
vendored
4
.github/scripts/docker-test.sh
vendored
|
@ -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 \
|
||||
|
|
4
.github/scripts/pkg-test.sh
vendored
4
.github/scripts/pkg-test.sh
vendored
|
@ -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
|
||||
|
|
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
14
packaging/makeself/jobs/89-buildinfo.install.sh
Executable file
14
packaging/makeself/jobs/89-buildinfo.install.sh
Executable 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
|
|
@ -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:"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue