summaryrefslogtreecommitdiffstats
path: root/.github/workflows
AgeCommit message (Collapse)Author
11 daysBump google-github-actions/upload-cloud-storage from 2.1.3 to 2.2.0 (#18458)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26Bump tj-actions/changed-files from 44 to 45 (#18408)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26Bump google-github-actions/upload-cloud-storage from 2.1.2 to 2.1.3 (#18407)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-23WIP - Netdata v2 (#18125)Costa Tsaousis
* 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-22Fix issues with file-check for build workflow.Austin S. Hemmelgarn
2024-08-20Origin-sign all DEB packages regardless of upload target. (#18372)Austin S. Hemmelgarn
2024-08-19ci gen integrations: add cloud-authentication dir (#18378)Ilya Mashchenko
2024-08-12Handle GOROOT inside build system instead of outside. (#18296)Austin S. Hemmelgarn
* Handle GOROOT inside build system instead of outside. * Fix parsing of GOROOT value.
2024-08-09Bump google-github-actions/setup-gcloud from 2.1.0 to 2.1.1 (#18285)dependabot[bot]
Bumps [google-github-actions/setup-gcloud](https://github.com/google-github-actions/setup-gcloud) from 2.1.0 to 2.1.1. - [Release notes](https://github.com/google-github-actions/setup-gcloud/releases) - [Changelog](https://github.com/google-github-actions/setup-gcloud/blob/main/CHANGELOG.md) - [Commits](https://github.com/google-github-actions/setup-gcloud/compare/v2.1.0...v2.1.1) --- updated-dependencies: - dependency-name: google-github-actions/setup-gcloud dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09Bump google-github-actions/upload-cloud-storage from 2.1.0 to 2.1.2 (#18283)dependabot[bot]
Bumps [google-github-actions/upload-cloud-storage](https://github.com/google-github-actions/upload-cloud-storage) from 2.1.0 to 2.1.2. - [Release notes](https://github.com/google-github-actions/upload-cloud-storage/releases) - [Changelog](https://github.com/google-github-actions/upload-cloud-storage/blob/main/CHANGELOG.md) - [Commits](https://github.com/google-github-actions/upload-cloud-storage/compare/v2.1.0...v2.1.2) --- updated-dependencies: - dependency-name: google-github-actions/upload-cloud-storage dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-08Fix typos in code signing steps in Windows build job.Austin S. Hemmelgarn
2024-08-08Add code signing for Windows executables. (#18222)Austin S. Hemmelgarn
* Add code signing for Windows executables. * Fix typos and add failure notification. * Use full version for trusted signing action. Because MS isn’t publishing it with proper semver tags. * Avoid reinstalling dependencies that are already installed. * Fix CMake 3.30 compatibility. * Don’t let BUILD_DIR propagate to cmake. * Fix JSON-C build warning. * Fix handling of externally specified build directories. While regular Windows paths do actually work under MSYS2, they seem to confuse CMake, so we need to convert to a standard MSYS2 path if `BUILD_DIR` is set to a Windows path. * Fix typo. * Fix build directory handling.
2024-08-06Fix CI issues in build workflow. (#18266)Austin S. Hemmelgarn
* Temporarily enable trace mode to debug CI. * Fix tmpdir path handling. * Further kickstart fixes.
2024-07-29Fix up CMake feature handling for Windows. (#18229)Austin S. Hemmelgarn
* Fix up CMake feature handling for Windows. * Better handle detection of Go on Windows. * Provide Windows copy of Go for Windows build. * Explicitly set GOROOT in environment. * Explicitly disable Prometheus remote write exporter. * Add note about DEFAULT_FEATURE_STATE_OPTION.
2024-07-18Add Widnows CI jobs. (#18187)Austin S. Hemmelgarn
* Initial Windows CI support. This also adds a proper set of production-focused packaging scripts for working with building Netdata on Windows. * Pivot to using existing tooling and fixing that up as required. * General script cleanup. * Auto-detect location of repository based on script location. This makes the scripts properly independent of the current working directory, allowing them to be more resilient to possible changes in the build environment. * Make dependency handling entirely separate from build. * Remove development-only packages from dependency list. They only waste time in CI, and it’s reasonable to assume that anybody who needs them can install them themselves, just like we do with all other platforms. * Use absolute path for makensis. This way it actually works without needing manual modification of the environment. * Add PowerShell scripts to invoke the build and package scripts. * Clean up build directory handling. * Fix fetching of msys2 installer. * Further cleanup. * Tidy up build output * Provide proper output grouping in GitHub Actions. * Use correct command name for makensis. * Fix installer script path. * Do not try to install MSYS2 using Chocolatey. * Fix CPU architecture check. * Add more detailed messages for MSYS2 install. * Fix release fetching logic. * Further release check logic fixes. * Complete Windows CI support. * Move second update pass into dependency handling script. * Fix handling of icon for Windows installer. * Default to using a working configuration for release builds. And provide a way to pass extra options to CMake without needing to modify the script. * Fix expansion of optionally defined variable.
2024-07-15Fix issue in platform EOL check workflow. (#18171)Austin S. Hemmelgarn
2024-07-08Track LTS for Debian EOL status. (#18084)Austin S. Hemmelgarn
Unlike most other platforms we support, it’s trivial for us to support Debian’s LTS distros, and we’ve effectively been doing that for quite some time now, so just make it official in the CI jobs.
2024-07-08update go.d path in docs and ci (#18087)Ilya Mashchenko
2024-07-02restructure go.d (#18058)Ilya Mashchenko
* restruture go.d * update gitignore * update ci files * update gen_docs_integrations.py * update link in go.d conf files * update go.d modules metadata files * update metadata files * update packaging * add log files * integrations commit * update get-go-version.py * go fmt * fix packaging * update go.d readme --------- Co-authored-by: Fotis Voutsas <fotis@netdata.cloud>
2024-07-01Bump actions/add-to-project from 1.0.1 to 1.0.2 (#18043)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-26Fix key identification for DEB package signing.Austin S. Hemmelgarn
2024-06-26Fix Slack error reporting for packaging workflows. (#18011)Austin S. Hemmelgarn
2024-06-25Fix typo in packaging workflows.Austin S. Hemmelgarn
2024-06-25Sign DEB packages in the GHA runners that build them. (#17949)Austin S. Hemmelgarn
* Sign DEB packages in the GHA runners that build them. This provides a stronger signature guarantee than we currently provide, and simplifies handling of multiple repository servers. * Skip package signing on PRs. It’s unlikely to work correctly, and has little to no value.
2024-06-25Tidy-up build related CI jobs. (#17962)Austin S. Hemmelgarn
- Merge macOS build checks into the regular build workflow. - Move gitignore check to the regular build workflow, since it needs the same file checking.
2024-06-24Bump docker/build-push-action from 5 to 6 (#17998)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18Fix repoconfig package uploads.Austin S. Hemmelgarn
2024-06-18Move to using CPack for repository configuration packages. (#17930)Austin S. Hemmelgarn
* Move to using CPack for repository configuration packages. This simplifies testing of changes to the configuration itself, as well as making package builds marginally faster. * Fix CMake handling for old RPM distros. * Fix openSUSE detection. * Fix file installation. * Override code ownership for packaging/repoconfig/CMakeLists.txt This way changes won’t bother people who aren’t actually responsible for it. * Update CI skip logic to work correctly with new repoconfig setup. * Add improved status messages.
2024-06-13Fix updating release info when publishing nightly releases. (#17871)Austin S. Hemmelgarn
2024-06-12Fix typo in repoconfig packages workflow.Austin S. Hemmelgarn
2024-06-12Update CI infrastructure to publish to secondary packaging host. (#17863)Austin S. Hemmelgarn
* Update CI infrastructure to publish to secondary packaging host. * Fix typo.
2024-05-21Fix handling of OpenSSL linking on macOS (#17535)Austin S. Hemmelgarn
* Pull in all dependencies for macOS CI jobs. Instead of only pulling in a basic set. * Switch to using imported target for OpenSSL in most cases. * Use imported libraries for OpenSSL in all cases. * Work around broken behavior in FindPkgConfig with static builds. It happened to be working before without this because we weren’t hitting any edge cases, but the use of IMPORTED targets with PkgConfig requires these fixes to behave correctly for transitive dependencies in static builds. * Correctly detect static builds. * Fix H2O linking. * Fix typo. * Always check for libcrypto if we found openssl. If we fail to find libcrypto when we found openssl with pkg_check_modules, then the openssl install is horribly broken and we will see failures either at link time or at runtime, so there is no point in not checking for it on macOS. This also more clearly delineates that we _do_ require libcrypto irrespective of the platform.
2024-05-08Remove contrib now that we use cpack for DEB packages (#17614)vkalintiris
2024-05-01Bump google-github-actions/upload-cloud-storage from 2.0.0 to 2.1.0 (#16859)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-01Bump google-github-actions/setup-gcloud from 2.0.1 to 2.1.0 (#16860)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-30Use CPack to generate Debian packages (#17475)vkalintiris
* CPack * Add script to build all artifacts. * Add infrastructure to run package builds via CPack in CI. * Fix typos in distro config. * Fix permissions on package-build script. * Control files for netdata package * pre/post inst files for debugfs. * Fix directory name handling for package build. * pre/post inst scripts for cups * pre/post inst scripts for xenstat * pre/post inst scripts for slabinfo * pre/post inst scripts for apps * pre/post inst scripts for network-viewer * pre/post inst script for nfacct * pre/post inst scripts for freeipmi * pre/post inst scripts for logs-management * pre/post inst perf * pre/post inst scripts for systemd-journal * pre/post init scripts for go.d * pre/post inst scripts for ebpf * pre/post init files for charts.d & python.d * Skip eBPF in packaging. * Fix most of the package names * Add copyright * etc/default/netdata * Bump * Enable all packages except for ebpf. * Add log2journal to netdata component. * Produce pretty-much the same RFS. - No README.md docs - /var/run/netdat missing on CPack's side - No ebpf - No changelogs * Enable ebpf plugin * Fix runtime path * Build debug symbol packages * Update package directory * Fix eBPF and Xenstat conditionals. * Fixes for package build process. * Package version for cpack * Add ebpf-code-legacy package * Update extraction logic * Fix control info for netdata package * Fix control file for chartsd plugin package * Fix typos in package build script. * Update dependencies * Add python3 * Fix verbose option to cpack * Add whitespace in package description field. * SKip adding files that might break rpm packages * Final fixups to package handling. * Fix architecture matching for package build options. * Fix dependency handling. * Remove top-level scripts --------- Co-authored-by: Austin S. Hemmelgarn <austin@netdata.cloud>
2024-04-29Really fix platform EOL checks.Austin S. Hemmelgarn
2024-04-29Fix platform EOL check issue assignment. (#17544)Austin S. Hemmelgarn
2024-04-24Work around MS’s broken infra in CI. (#17513)Austin S. Hemmelgarn
Not a complete workaround, but this is the best we can do without modifying code that runs on user systems.
2024-04-13Bump tj-actions/changed-files from 42 to 44 (#17401)dependabot[bot]
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 42 to 44. - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](https://github.com/tj-actions/changed-files/compare/v42...v44) --- updated-dependencies: - dependency-name: tj-actions/changed-files dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-13Bump actions/add-to-project from 1.0.0 to 1.0.1 (#17402)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12Fix publishing Docker images to Docker Hub. (#17397)Austin S. Hemmelgarn
2024-04-10Skip Go code in CI if it hasn’t changed. (#17077)Austin S. Hemmelgarn
* Skip building Go components for Docker CI if they have not changed. * Properly handle Go code in general checks PR. * Skip Go code in build checks if it hasn’t changed. * Fix linting issues. * Fix propagation of installer flags. * Fix propagation of environment variables through static build process. * Fix handling of extra install options in static builds. * Skip starting the agent in updater checks. * Fix actionlint warning.
2024-04-02Fix assorted issues in the Docker build process. (#17312)Austin S. Hemmelgarn
* Fix assorted issues in the Docker build process. * Correctly add stable tag to tag list.
2024-04-01Fix handling of post-release workflows triggered by Docker workflow. (#17306)Austin S. Hemmelgarn
2024-04-01Bump actions/add-to-project from 0.6.1 to 1.0.0 (#17298)dependabot[bot]
Bumps [actions/add-to-project](https://github.com/actions/add-to-project) from 0.6.1 to 1.0.0. - [Release notes](https://github.com/actions/add-to-project/releases) - [Commits](https://github.com/actions/add-to-project/compare/v0.6.1...v1.0.0) --- updated-dependencies: - dependency-name: actions/add-to-project dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01Bump Wandalen/wretry.action from 2 to 3 (#17297)dependabot[bot]
Bumps [Wandalen/wretry.action](https://github.com/wandalen/wretry.action) from 2 to 3. - [Release notes](https://github.com/wandalen/wretry.action/releases) - [Commits](https://github.com/wandalen/wretry.action/compare/v2...v3) --- updated-dependencies: - dependency-name: Wandalen/wretry.action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01Fix repoconfig publishing. (#17288)Austin S. Hemmelgarn
They’re only supposed to go into the repoconfig repositories, not the edge or stable ones.
2024-04-01Bump tj-actions/changed-files from 43 to 44 (#17296)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29Fix action lints (#17120)Tasos Katsoulas
* Clang output should be disabled Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> * Commend out Clang Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> * Fix quoting and snooze sc2043 Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> * Fix failure messages garbages/steps Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> * Fix failure messages step, cleanup garbages Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> * Add quoting whever is necessary and group the echo commands Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> * Fix parorama Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> * apply code review Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> * micnor fix Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> * more fixes Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> --------- Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>