1
0
mirror of https://github.com/netdata/netdata.git synced 2021-06-06 23:03:21 +03:00

168 Commits

Author SHA1 Message Date
Ilya Mashchenko
c5e27ae251 labeler: add "mqtt_websockets" to the ACLK (#11197) 2021-05-28 20:04:56 +03:00
Austin S. Hemmelgarn
15e036a9fe Remove Fedora 32 from CI. (#11143)
It is EOL as of 2021-05-25.
2021-05-25 08:59:12 -04:00
Austin S. Hemmelgarn
9574cb4c95 Bundle the react dashboard code into the agent repo directly. (#11139)
* Remove code for bundling the dashoard on install.

* Bundle the dashboard code directly into the agent repo.

This diffstat looks huge, but it’s actually relatively simple. The only
_actual_ changes are in the Makefiles, `configure.ac`, and the addition of
`generate_dashboard_makefile.py`. Everything else consists of removing
files that are included in the dashboard tarball, and extracting the
contents of the tarball into `web/gui/dashboard`.

* CI cleanup.

* Automate bundling of the dashboard code.

This replaces the makefile generator script with one that handles
bundling of the dashboard code in it’s entirety, and updates the GHA
workflow used for generating dashboard PRs to use that instead of the
existing shell commands.

It also removes the packaging/dashboard.* files, as they are no longer
needed.
2021-05-14 11:41:16 -04:00
Austin S. Hemmelgarn
695342fc7a Automatically trigger Helmchart PR on agent release. (#11084)
* Automatically trigger Helmchart PR on agent release.

This will automatically trigger the workflow in the netdata/helmchart
repo that generates a PR to bump the agent version bundled with the
helmchart when we bpulish a docker image for a release.

* Add missing `uses` key in action step.

* Properly quote JSON data.
2021-05-10 07:05:45 -04:00
Austin S. Hemmelgarn
673bd3a502 Add a workflow to generate version bump PRs for the dashboard. (#11076) 2021-05-06 10:46:47 -04:00
Austin S. Hemmelgarn
b985861d93 Limit maximum concurrent CI jobs to avoid blocking other CI. (#11057) 2021-04-29 07:22:55 -04:00
Josh Soref
3ec43de216 Report porcelain output (#10494) 2021-04-23 07:58:14 -04:00
Ilya Mashchenko
9d48106048 ci: fix aws-kinesis builds (#10992)
Co-authored-by: Vladimir Kobal <vlad@prokk.net>
2021-04-21 10:43:56 +03:00
dependabot[bot]
206ced20a0 Bump actions/upload-artifact from v2.2.2 to v2.2.3 (#10959)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.2 to v2.2.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.2...ee69f02b3dfdecd58bb31b4d133da38ba6fe3700)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-14 09:50:42 -04:00
Konstantinos Natsakis
81391f0b6c Update CODEOWNERS (#10928) 2021-04-07 16:49:57 +03:00
Josh Soref
25be8b833f Add libzstd-dev (#10925)
Needed by Unit Tests (cmocka)

Fixes #10838

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-04-06 17:28:33 +03:00
Josh Soref
f39406c9b6 Spelling build (#10428)
* spelling: alleviate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: available

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: berkeley

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: cannot

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: centos

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: context

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: continuously

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: correlate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: defaults

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dependencies

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: dependency

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: different

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: doesn't

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: example

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: forbidden

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: necessary

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: nightly

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: normally

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: notification

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: overridden

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: packet

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: program

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: prompted for

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: proxyadmin

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: red hat

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: relative

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: script

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: scriptlet

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: somewhere

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: spinning

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: substitution

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: success

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: successfully

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: sysadmin

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: tarball

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: telemetry

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: temporary

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: timeout

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unsupported

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: updates

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: useful

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: way

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* Update kickstart script checksums in documentation

Co-authored-by: Vladimir Kobal <vlad@prokk.net>
2021-04-05 08:18:11 -04:00
Austin S. Hemmelgarn
bc1ff185b8 Properly handle binary package reuplods. (#10878)
PackageCloud does not allow duplicate uploads, and we currently have no
good way to avoid duplicate nightly builds, so we need to remove any
existing packages with the same name before we upload newly built
packages.
2021-04-05 07:11:51 -04:00
Austin S. Hemmelgarn
f3881e1cd1 Fix handling of binary package uploads. (#10860) 2021-03-25 15:08:19 -04:00
Austin S. Hemmelgarn
efe2a951ad Properly reference the distro-ID parsing script for package uploads. (#10840) 2021-03-23 11:14:34 -04:00
Austin S. Hemmelgarn
04ce5769b8 Add basic failure notifications for the Coverity workflow. (#10796) 2021-03-23 08:51:29 -04:00
Ilya Mashchenko
5c19ffa98b add Installation method to the bug template (#10836) 2021-03-23 15:02:04 +03:00
Austin S. Hemmelgarn
bbcfd952f8 Fix name of PackageCLoud API token secret in workflows. (#10828)
It0s easier to rename it in the workflows than in the repo
configuration.
2021-03-22 12:01:10 -04:00
Austin S. Hemmelgarn
ff29e685f3 Added Ubuntu 21.04 and Fedora 34 to our CI checks and binary package builds. (#10791)
* Add Ubuntu 21.04 and Fedora 34 to our CI checks.

* Add Fedora 34 and Ubuntu 21.04 package builds as well.
2021-03-22 07:12:59 -04:00
Austin S. Hemmelgarn
dc5f3b562f Fix handling of nightly and release packages in GHA workflows. (#10819) 2021-03-19 09:03:07 -04:00
Timotej S
6577bf2a30 update bug report template (#10807)
* update bug report template

* Update .github/ISSUE_TEMPLATE/bug_report.md

Co-authored-by: Joel Hans <joel.g.hans@gmail.com>
2021-03-19 12:26:12 +01:00
Austin S. Hemmelgarn
d32b9f594c Run the Docker CI checks unconditionally instead of only when we see changes. (#10808)
The list of files to indicate changes was woefully incomplete, and we
want this to be a required check anyway, so we have to run it
unconditionally.
2021-03-18 13:58:55 -04:00
Austin S. Hemmelgarn
bbc3eff58e Expand what platforms we run updater CI checks on. (#10792) 2021-03-18 13:58:08 -04:00
Austin S. Hemmelgarn
7143244ade Fix typos in GHA workflows. (#10803) 2021-03-18 07:43:52 -04:00
Austin S. Hemmelgarn
b3c7243c7d Add Slack notifications for build failures. (#10781) 2021-03-17 09:28:28 -04:00
Timotej S
e7e5d0c372 Adds ACLK-NG as fallback(#10315)
* adds a new implementation of ACLK written almost from scratch
* external dependencies only OpenSSL and JSON-C
* fallback for systems where ACLK Legacy can't build (for technical or philosophical reasons)
* can be forced to build by giving "--aclk-ng" to the installer
2021-03-16 12:38:16 +01:00
Austin S. Hemmelgarn
e54982b6c8 Docker-based packaging workflow in GitHub Actions. (#9964)
* Add a new GHA workflow for building and publishing binary packages.

This greatly simplifies the package handling code, significantly reduces
the amount of things we are running in Travis, adds better CI for package
builds for PRs, finally eliminates LXC from any of our CI, and enables
us to make further major improvements much easier.

* Migrate repo cleanup to GHA and remove dead code.

* Fix RPM package builds.

* Fix DEB installation.
2021-03-15 08:31:16 -04:00
Austin S. Hemmelgarn
dbed7b51fc Changed Docker image tagging to use semver tags for releases. (#10648)
* Changed Docker image tagging to use semver tags for releases.

This allows users to use image names like `netdata/netdata:1` or
`netdata/netdata@1.29` and track the most up-to-date release that
matches that version prefix.

Such usage is a common practice for projects using semantic versioning
like we are.

This has a side effect, however, of remivng the `v` from the start of
our version tags. Not having it is also more consistent with how a vast
majority of other projects handle version tags, but users will need to
be notified about the change.

* Proper backwards compatability.

* Add documentation about Docker image tags.

* Update packaging/docker/README.md

Co-authored-by: Joel Hans <joel.g.hans@gmail.com>

Co-authored-by: Joel Hans <joel.g.hans@gmail.com>
2021-03-04 07:35:05 -05:00
kaskavel
cadbb5056d Add a new workflow to test that updater works as expected (#10599)
* Add workflow for installing latest version of netdata, building from source of this branch & running the updater. Add script build-dist to create the artifacts used for the update.

* Add more distributions, arguments in updater script & accomodate review comment

* Run updater within docker for 6 distributions

* Remove unecessary change in updater

* Correct netdata_version --> updater_version in check-updater script

* Review comments: remove unused vars & replace == with =
2021-03-03 21:36:53 +02:00
Austin S. Hemmelgarn
237ea440eb Fixed handling of Docker image tags for release builds. (#10615) 2021-02-08 11:10:47 -05:00
Austin S. Hemmelgarn
c0c4ab9e52 Add Alpine 3.13 and remove Alpine 3.9 from our CI. (#10542) 2021-02-01 07:10:02 -05:00
Austin S. Hemmelgarn
285192ffd1 Remove OpenSUSE Leap 15.1 from CI. (#10543) 2021-02-01 07:09:08 -05:00
Austin S. Hemmelgarn
7ffe03690b Switch to using GitHub Actions for publishing Docker images. (#10365)
* Switch to using GitHub Actions for publishing Docker images.

This simplifies handling of multiarch images and publishing to multiple
registries, and unifies testing with the code actually being used to
build and publish the images.

This also removes a handful of scripts that are no longer needed due to
this change, and switches our Dockerfile to not needing an architecture
to be specified in a build argument, instead relying on proper multiarch
docker image support.

* Fix YAML syntax.

* Add separate tagging for nightly and stable builds.

* Correct YAML syntax errors.
2021-01-15 09:45:05 -05:00
dependabot[bot]
6c50438e6c Bump actions/upload-artifact from v1 to v2.2.2 (#10475)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v1 to v2.2.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v1...e448a9b857ee2131e752b06002bf0e093c65e571)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-12 13:32:49 -05:00
Josh Soref
9605ceba09 GitHub action markdown link check update (#10474)
* Update github-action-markdown-link-check

* Make pattern stricter

* Ignore docs.stackpulse.io (400)

It requires you to be logged in...
2021-01-11 13:50:16 -05:00
Austin S. Hemmelgarn
5c847ea96d Add vkalintiris to CODEOWNERS for CI, packaging, and installer code. (#10478)
Per discussion with him and cakrit about this.
2021-01-11 08:23:57 -05:00
Austin S. Hemmelgarn
1982f607e8 Add dependabot config to check for updates for GHA workflows. (#10342)
This will automatically create PRs to update any GitHub Actions we are
using when new versions are published. It is set to check weekly,
defaults to limiting such PRs to 3 at a time, and will lable them
apprpriately with ‘no changelog’ and ‘area/ci’.

This is intended to reduce the manual overhead of maintaining our CI.
2021-01-04 07:10:47 -05:00
Austin S. Hemmelgarn
820d8e6fc9 Switch to using official Docker actions for GHA CI. (#10335)
This will make us more forward-portable, simplify eventual migration to
GHA for release builds, and make it trivial to set up pushing images to
multiple registries.
2020-12-10 08:17:07 -05:00
Austin S. Hemmelgarn
77180a4296 Explicitly set platform for Docker builds. (#10357)
Needed to accomodate our new handling of our base and builder images.
2020-12-09 16:27:13 -05:00
Austin S. Hemmelgarn
a3ada60496 Added numerous improvements to our Docker image. (#10308)
* Initial cleanup of Docker entrypoint script.

* Add linting for our Docker files.

* Fix warnings reported by hadolint.

* Add support for automatic claiming on startup.

* Optimize Docker image structure.

This shuffles some things around in the Docker image to cut down on the
total number of layers and make the image more caching friendly, which
will cut down on overall time required to both initially pull the image
and time spent pulling updated versions of the image.

It also shrinks the image size by about 2MB.
2020-12-09 07:18:35 -05:00
Odysseas Lamtzidis
c6a84c4cde fix bug_report.md syntax error (#10269) 2020-11-20 19:01:56 +02:00
Odysseas Lamtzidis
333badb3a7 new issue templates (#10259)
* new issue templates

* Update .github/ISSUE_TEMPLATE/bug_report.md

Co-authored-by: Joel Hans <joel@netdata.cloud>

* Update .github/ISSUE_TEMPLATE/config.yml

Co-authored-by: Joel Hans <joel@netdata.cloud>

* Update .github/ISSUE_TEMPLATE/config.yml

Co-authored-by: Joel Hans <joel@netdata.cloud>

* Update .github/ISSUE_TEMPLATE/config.yml

Co-authored-by: Joel Hans <joel@netdata.cloud>

* Update .github/ISSUE_TEMPLATE/config.yml

Co-authored-by: Joel Hans <joel@netdata.cloud>

* Update .github/ISSUE_TEMPLATE/config.yml

Co-authored-by: Joel Hans <joel@netdata.cloud>

* Update .github/ISSUE_TEMPLATE/bug_report.md

Co-authored-by: Joel Hans <joel@netdata.cloud>

* Update .github/ISSUE_TEMPLATE/config.yml

Co-authored-by: Joel Hans <joel@netdata.cloud>

* Update .github/ISSUE_TEMPLATE/config.yml

Co-authored-by: Joel Hans <joel@netdata.cloud>

Co-authored-by: Joel Hans <joel@netdata.cloud>
2020-11-20 16:51:22 +02:00
Joel Hans
1c59c04b31 Fix Docs GitHub Action with ignore list and update (#10002)
* Add pi-hole.net to ignorelist

* Update action for bugfixes

* Add regex and test doc

* Revert test
2020-11-18 09:34:06 -05:00
Austin S. Hemmelgarn
fddc851088 Fixed builds using particular versions of Clang. (#10155)
* Add a CI check for building against Clang

* Fix CFLAGS for libmosquitto/libwebsockets so builds work with Clang

* Add fixes for libbpf, judy, and JSON-C.

Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2020-11-06 07:06:30 -05:00
Austin S. Hemmelgarn
9d24ef483b Remove usage of deprecated GHA syntax. (#10154) 2020-11-06 07:06:02 -05:00
Austin S. Hemmelgarn
77b6b1feb8 Re-enable CentOS 8 CI checks. (#10156) 2020-11-06 07:05:19 -05:00
Austin S. Hemmelgarn
e48046da14 Remove knatsakis from makefile code ownership. (#10184)
Based on discussion with him, he’s not readily able to review changes
here, and the only changes I would be doing can be reviewed by the agent
team (or would involve other changes that would pull him in anyway), so
there’s not point in having him listed for review on them.
2020-11-03 09:45:30 -05:00
Austin S. Hemmelgarn
8e23fc2814 Skip ReviewDog runs for PRs that don’t need them. (#10148) 2020-10-28 07:07:01 -04:00
Austin S. Hemmelgarn
5d60c8576c Updated distros for CI checks and package builds. (#10123)
* Alpine 3.12 has been out for multiple months.
* Fedora 33 is slated for release on 2020-10-27, the current beta is
  functionally a release preview.
* Fedora 31 will be EOL as of 2020-11-27, any existing users should have
  updated by then.
* Ubuntu 20.10 is slated for release on 2020-10-22, the currently
  available system images are functionally a release preview.
* Ubuntu 19.10 went EOL on 2020-07-17.
* Our packaging code was missing a number of distros we technically
  support which we appear to build packages correctly for.
2020-10-26 08:56:12 -04:00
Austin S. Hemmelgarn
fca9f8ff21 Added Konstas Kaskavelis as a code owner for CI. (#10126) 2020-10-22 09:35:39 -04:00