0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-03-16 22:13:38 +00:00
Commit graph

695 commits

Author SHA1 Message Date
Ilya Mashchenko
d48ddb0172
ci: bump static build timeout to 6hr () 2025-02-20 17:29:37 -05:00
Austin S. Hemmelgarn
523feafa96
Switch back to x86 hosts for POWER8+ builds. ()
The Ubuntu 22.04 ARM runners seem to have serious performance issues
when it comes to using QEMU’s userspace emulation.
2025-02-20 17:27:41 -05:00
Austin S. Hemmelgarn
e6418b42a0 Switch to Ubuntu 22.04 runner images for CI build jobs. ()
The 24.04 runner images are apparently having serious stability issues,
especially for ARM runners, and these are likely causing most of our
current CI issues.

(cherry picked from commit 93032aba5c)
2025-02-12 08:52:40 -05:00
Austin S. Hemmelgarn
dfd51b385a Switch from x86 to ARM build host for POWER8+ builds. ()
* Switch from x86 to ARM build host for POWER8+ builds.

This should improve build times at least a little bit.

* Include distro config in Docker CI skip check.

It should have been added previously, but got missed.

(cherry picked from commit a5c5936f62)
2025-02-12 08:52:40 -05:00
Austin S. Hemmelgarn
eab9af1359 Fix static build conditions to run on release and nightly builds. ()
(cherry picked from commit 873ab77648)
2025-02-12 08:52:40 -05:00
Austin S. Hemmelgarn
ac64093907 Start using new GitHub hosted ARM runners for CI when appropriate. ()
* Start using new GitHub hosted ARM runners for CI when appropriate.

* Fix matrix generation.

* Fix actionlint error.

* Don't fail fast for static builds.

* Bump OpenSSL, cURL, and Bash versions for static builds.

* Fix more actionlint errors.

* Fix 32-bit ARM OpenSSL build.

* Fix ppc64le static openssl build.

* Fix duplicate key.

* Fix openssl ppc64le build again.

* Third attempt at fixing POWER8+ static builds.

---------

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
(cherry picked from commit d7a9b82976)
2025-02-12 08:52:40 -05:00
Austin S. Hemmelgarn
1e435b7f16
Use QEMU from the runner environment instead of an external copy. ()
* Use QEMU from the runner environment instead of an external copy.

This should make things both more self-contained and easier to debug
when things go wrong.

* Fix conditional for QEMU setup.
2025-01-27 09:11:40 -05:00
Austin S. Hemmelgarn
83ecd14fe2
Don’t fail fast on static builds and Docker builds. () 2025-01-27 09:09:49 -05:00
Austin S. Hemmelgarn
235fae9a99
Drop Fedora 39 from CI and package builds. ()
It went EOL upstream 2024-11-06.
2025-01-17 09:24:40 -05:00
Ilya Mashchenko
12bf871952
add 'type' to GH report forms () 2025-01-17 13:10:58 +02:00
Austin S. Hemmelgarn
8bec30dad7
Remove openSUSE 15.5 from CI and package builds. ()
It went EOL upstream as of 2024-12-31.
2025-01-14 07:40:22 -05:00
dependabot[bot]
80e6a6028a
build(deps): bump azure/trusted-signing-action from 0.5.0 to 0.5.1 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-13 10:11:17 +00:00
dependabot[bot]
719bbe790a
build(deps): bump actions/upload-artifact from 4.5.0 to 4.6.0 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-13 10:43:20 +02:00
dependabot[bot]
4c7b59a05f
build(deps): bump actions/upload-artifact from 4.4.2 to 4.5.0 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-23 11:01:09 +02:00
Costa Tsaousis
5928070239
Updated copyright notices ()
* updated copyright notices everywhere (I hope)

* Update makeself.lsm

* Update coverity-scan.sh

* make all newlines be linux, not windows

* remove copyright from all files (the take it from the repo), unless it is printed to users
2024-12-20 15:25:45 +02:00
Austin S. Hemmelgarn
50c35cb375
Fix static builds to ensure usability on intended baseline hardware. ()
* Enforce usage of specific CPU models for static build runtime checks.

* Add explicit architecture overrides for ARMv6l static builds.

* Fix handling of source paths.

* Enable tracing for static build code.

* Fix cflags and version handling.

* Restructure cflags handling and add Go architecture flags.
2024-12-19 08:28:20 -05:00
Ilya Mashchenko
748f95938e
ci: replace exit 1 with conditional skip in website update workflow ()
* ci: replace exit 1 with conditional skip in website update workflow

* simplify
2024-12-16 16:34:25 +02:00
Austin S. Hemmelgarn
50429e8bb5
Add cross-architecture build tests for Go code. () 2024-12-12 09:57:29 -05:00
Ilya Mashchenko
5d4d2bc85f
ci: fix update-website workflow ()
* ci: fix update-website workflow

* typo

* remove nested echo

* simplify
2024-12-12 11:07:43 +02:00
John Kapantzakis
2956244a2a
Add GitHub workflow ()
* Add workflow that dispatched website update

* Fix typo

* Change step name

* Added concurrency, repo conditional and changed github token

* Avoid using curl
2024-12-11 10:14:19 -05:00
Austin S. Hemmelgarn
8fa34d8c25
Move dependency handling for integrations to script. ()
This will simplify handling across repositories.
2024-12-11 09:35:18 -05:00
Ilya Mashchenko
60b6749365
ci: fix build/create release () 2024-12-06 13:09:40 +02:00
Ilya Mashchenko
078ecc580a
ci: fix build/Prepare Artifacts () 2024-12-05 20:27:12 +02:00
Fotis Voutsas
e9f818d31a
Integrations gha, remove .js and .json files after the process () 2024-12-04 12:47:24 +02:00
Austin S. Hemmelgarn
66d505a419
Tidy up CI to improve overall run times. ()
* Drop old Alpine versions from CI.

This limits Alpine checks to only edge and latest, which should be good
enough in 99% of cases and gets rid of 9 total CI jobs.

* Remove .gitignore check from CI.

It has not caught any issues for a very long time, and it’s not actually
checking everything it would need to be anyway, so there’s not much
point in having it.

* Drop JSON-C vendoring check in CI.

It shouldn’t be needed anymore at this point, and removing it roughly
halves the runtime of one of our sets of CI jobs.

* Clean up unneeded steps in packaging workflow.

* Restructure updater check to not run per-system.

Also, check based on the final artifacts just like the other artifact
verification steps.

This will drastically cut down on the total number of CI jobs that need
to run on a PR.

* Fix image build for source build checks.

* Fix updater check to run outside of container.

* Run updater check with UID 0.

* Switch back to using a container for updater check.

* Properly include curl for updater check.

* Fix up installation of support packages.

* Fix updater check script to use correct URL.
2024-11-19 07:40:39 -05:00
Ilya Mashchenko
3a1cfc49e5
update GH bug report () 2024-11-11 14:57:37 +02:00
Austin S. Hemmelgarn
778e0189c8
Properly create release branch for major releases. 2024-11-07 14:58:45 -05:00
Austin S. Hemmelgarn
24fe8eef90
Include Windows artifacts for all builds, not just nightlies. 2024-11-07 14:56:52 -05:00
Ilya Mashchenko
c210a9e730
build(deps): update go toolchain to v1.23.3 ()
* build(deps): update go toolchain to v1.23.3

* format
2024-11-07 16:27:06 +02:00
Austin S. Hemmelgarn
8257f50052
Fix release generation in build workflow. 2024-11-01 21:35:48 -04:00
Austin S. Hemmelgarn
6cb5e58f60
Update CI to generate MSI installer for Windows using WiX. ()
* Update CI to generate MSI installer for Windows using WiX.

* Fix missing option for WiX install.

* Copy icon file alongside WiX sources.

* Run WiX in the build directory instead of CWD.
2024-11-01 12:06:13 -04:00
dependabot[bot]
72771b9358
build(deps): bump azure/trusted-signing-action from 0.4.0 to 0.5.0 ()
Bumps [azure/trusted-signing-action](https://github.com/azure/trusted-signing-action) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/azure/trusted-signing-action/releases)
- [Commits](https://github.com/azure/trusted-signing-action/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: azure/trusted-signing-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-28 08:57:14 +02:00
Ilya Mashchenko
4dec3a1e1a
chore(ci): print versions in check_successful_update () 2024-10-23 12:10:39 +03:00
Austin S. Hemmelgarn
3ef0995440
Remove macOS 12 from CI, and add macOS 15. () 2024-10-17 08:07:50 -04:00
Austin S. Hemmelgarn
0a16c36fe8
Add Ubuntu 24.10 and Fedora 41 to CI. ()
* Add Ubuntu 24.10 and Fedora 41 to CI.

* Fix broken DNF package install checking in dependency handling script.

* Force usage of DNF on Fedora for dependency handling.
2024-10-11 11:27:21 -04:00
thiagoftsm
ebb3e36431
Improve windows installer () 2024-10-09 10:38:15 +03:00
Austin S. Hemmelgarn
5225520373
Fix handling of workflow artifacts. ()
* Don't use symlinks when preparing static build artifacts.

* Roll back to v4.4.0 for actions/upload-artifact action.

There appears to be a bug in the latest release that is causing some
files to not be found when creating artifacts.

* Bump actions/upload-artifact to v4.4.2 which fixes the bugs.
2024-10-08 16:37:00 -04:00
Austin S. Hemmelgarn
44b659f60a
Pass correct GOOS and GOARCH on to package builders in CI. ()
* Pass correct GOOS and GOARCH on to package builders in CI.

This ensures that they don’t pick up the host CPU and build for that
instead, because apparently Go looks at the host CPU instead of itself
to decide what the default build target is, so if you’re running a
32-bit build of Go on a 64-bit kernel, you get 64-bit binaries by
default...

* Fix typo in platform name.
2024-10-08 14:43:18 -04:00
Austin S. Hemmelgarn
b052513c18
Embed CPU architecture info in Windows installer filename. ()
This ensures forward-portability, because I can all but guarantee that
we _will_ eventually want to publish 64-bit ARM binaries for Windows,
and we will then need to differentiate between the installer files.
2024-10-04 06:54:57 -04:00
vkalintiris
7d4f9c58d5
Move plugins.d directory outside of collectors ()
* Move plugins.d out of collectors

It's being used by streaming as well.

* Move ndsudo and local_listeners back to collectors.
2024-09-30 13:14:26 +00:00
Austin S. Hemmelgarn
c2f8863550
Correctly include Windows installer in release creation. () 2024-09-24 09:26:28 -04:00
Austin S. Hemmelgarn
27fcf0af57
Publish Windows installers on nightly builds. ()
Also do some general cleanup of the build workflow, including a bit of
reorganization.
2024-09-23 14:04:03 -04:00
dependabot[bot]
5e23f20120
Bump peter-evans/create-pull-request from 6 to 7 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 10:44:57 +03:00
dependabot[bot]
2172751d5d
Bump google-github-actions/upload-cloud-storage from 2.1.3 to 2.2.0 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 19:21:11 +03:00
Ilya Mashchenko
6a75ccdfd7
ci fix InvalidDefaultArgInFrom warn () 2024-08-28 15:04:57 +03:00
dependabot[bot]
c9dead369c
Bump tj-actions/changed-files from 44 to 45 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 10:59:05 +03:00
dependabot[bot]
10f4c50c56
Bump google-github-actions/upload-cloud-storage from 2.1.2 to 2.1.3 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 10:58:14 +03:00
Costa Tsaousis
4c0122063f
WIP - Netdata v2 ()
* split claiming into multiple files; WIP claiming with api

* pidfile is now dynamically allocated

* netdata_exe_path is now dynamically allocated

* remove ENABLE_CLOUD and ENABLE_ACLK

* fix compilation

* remove ENABLE_HTTPS and ENABLE_OPENSSL

* remove the ability to disable cloud

* remove netdata_cloud_enabled variable; split rooms into a json array

* global libcurl initialization

* detect common claiming errors

* more common claiming errors

* finished claiming via API

* same as before

* same as before

* remove the old claiming logic that runs the claim script

* working claim.conf

* cleanup

* fix log message; default proxy is env

* fix log message

* remove netdata-claim.sh from run.sh

* remove netdata-claim.sh from everywhere, except kickstart scripts

* create cloud.d if it does not exist.

* better error handling and logging

* handle proxy disable

* merged master

* fix cmakelists for new files

* left-overs removal

* Include libcurl in required dependencies.

* Fix typo in dependency script.

* Use pkg-config for finding cURL.

This properly handles transitive dependencies, unlike the FindCURL
module.

* netdata installer writes claiming info to /etc/netdata/claim.conf

* remove claim from netdata

* add libcurl to windows packages

* add libcurl to windows packages

* compile-on-windows.sh installs too

* add NODE_ID streaming back to child and INDIRECT cloud status

* log child kill on windows

* fixes for spawn server on windows to ensure we have a valid pid and the process is properly terminated

* better handling to windows processes exit code

* pass the cloud url from parents to children

* add retries and timeout to claiming curl request

* remove FILE * from plugins.d

* spawn-tester to unittest spawning processes communication

* spawn-tester now tests FILE pointer I/O

* external plugins run in posix mode

* set blocking I/O on all pipes

* working spawn server on windows

* latest changes in spawn_popen applied to linux tools

* push environment

* repeated tests of fds

* export variable CYGWIN_BASE_PATH

* renamed to NETDATA_CYGWIN_BASE_PATH

* added cmd and help to adapt the command and the information to be presented to users during claiming

* split spawn server versions into files

* restored spawn server libuv based

* working libuv based spawn server

* fixes in libuv for windows

* working spawn server based on posix_spawn()

* fix fd leads on all spawn servers

* fixed windows spawn server

* fix signal handling to ensure proper cooperation with libuv

* switched windows to posix_spawn() based spawn server

* improvement on libuv version

* callocz() event loop

* simplification of libuv spawn server

* minor fixes in libuv and spawn tester

* api split into parts and separated by version; introduced /api/v3; no changes to old /api/v1 and /api/v2

* completed APIs splitting

* function renames

* remove dead code

* split basic functions into a directory

* execute external plugins in nofork spawn server with posix_spawn() for improved performance

* reset signals when using posix_spawn()

* fix spawn server logs and log cmdline in posix server

* bearer_get_token() implemented as function

* agent cloud status now exposes parent claim_id in indirect mode

* fixes for node id streaming from parent to children

* extract claimed id to separate file

* claim_id is no longer in host structure; there is a global claim_id for this agent and there are parent and origin claim ids in host structure

* fix issue on older compilers

* implement /api/v3 using calls from v1 and v2

* prevent asan leaks on local-sockets callback

* codacy fixes

* moved claim web api to web/api/v2

* when the agent is offline, prefer indirect connection when available; log a warning when a node changes node id

* improve inheritance of claim id from parent

* claim_id for bearer token show match any of the claim ids known

* aclk_connected replaced with functions

* aclk api can now be limited to node information, implementing [cloud].scope = license manager

* comment out most options in stream.conf so that internal defaults will be applied

* respect negative matches for send charts matching

* hidden functions are not accessible via the API; bearer_get_token function checks the request is coming from Netdata Cloud

* /api/v3/settings API

* added error logs to settings api

* saving and loading of bearer tokens

* Fix parameter when calling send_to_plugin

* Prevent overflow

* expose struct parser and typedef PARSER to enforce strict type checking on send_to_plugin()

* ensure the parser will not go away randomly from the receiver - it is now cleared when the receiver lock is acquired; also ensure the output sockets are set in the parser as long as the parser runs

* Add newline

* Send parent claim id downstream

* do not send anything when nodeid is zero

* code re-organization and cleanup

* add aclk capabilities, nodes summary and api version and protection to /api/v2,3/info

* added /api/v3/me which returns information about the current user

* make /api/v3/info accessible always

* Partially revert "remove netdata-claim.sh from everywhere, except kickstart scripts"

Due to how we handle files in our static builds and local builds, we
actually need to continue installing `netdata-claim.sh` to enable a
seamless transition to the new claiming mechanims without breaking
compatibility with existing installs or existing automation tooling that
is directly invoking the claiming script.

The script itself will be rewritten in a subsequent commit to simply
wrap the new claiming methodology, together with some additional changes
to ensure that a warning is issued if the script is invoked by anything
other than the kickstart script.

* Rewrite claiming script to use new claiming method.

* Revert "netdata installer writes claiming info to /etc/netdata/claim.conf"

Same reasoning as for 2e27bedb3fbf9df523bff407f2e8c8428e350e38.

We need to keep the old claiming support code in the kickstart script
for the forseeable future so that existing installs can still be
claimed, since the kickstart script is _NOT_ versioned with the agent.

A later commit will add native support for the new claiming method and
use that in preference to the claiming script if it appears to be
available.

* Add support for new claiming method to kickstart.sh.

This adds native support to the kickstart script to use the new claiming
method without depending on the claiming script, as well as adding a few
extra tweaks to the claiming script to enable it to better handle the
transition.

Expected behavior is for the kickstart script to use the new claiming
code path if the claiming script is either not installed, or does not
contain the specific string `%%NEW_CLAIMING_METHOD%%`. This way we will
skip the claiming script on systems which have the updated copy that
uses the new claiming approach, which should keep kickstart behavior
consistent with what Netdata itself supports.

* Depend on JSON-C 0.14 as a minimum supported version.

Needed for uint64 functions.

* Fix claiming option validation in kickstart script.

* do not cache auth in web client

* reuse bearer tokens when the request to create one matches an existing

* dictionaries dfe loops now allow using return statement

* bearer token files are now fixed for specific agents by having the machine guid of the agent in them

* systemd journal now respects facets and disables the default facets when not given

* fixed commands.c

* restored log for not openning config file

* Fix Netdata group templating for claiming script.

* Warn on failed templating in claiming script.

* Make `--require-cloud` a slient no-op.

We don’t need to warn users that it does nothing, we should just have ti
do nothing.

* added debugging info to claiming

* log also the response

* do not send double / at the url

* properly remove keyword from parameters

* disable debug during claimming

* fix log messages

* Update packaging/installer/kickstart.sh

* Update packaging/installer/kickstart.sh

* implemented POST request payload parsing for systemd-journal

* added missing reset of facets in json parsing

* JSON payload does not need hashes any more. I can accept the raw values

---------

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Co-authored-by: Austin S. Hemmelgarn <austin@netdata.cloud>
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
2024-08-23 14:12:01 +03:00
Austin S. Hemmelgarn
92ff3e8b6f
Fix issues with file-check for build workflow. 2024-08-22 10:04:50 -04:00
Austin S. Hemmelgarn
7b6bc61802
Origin-sign all DEB packages regardless of upload target. () 2024-08-20 09:43:26 -04:00