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

202 Commits

Author SHA1 Message Date
Austin S. Hemmelgarn
95da663b95 Assorted fixes for Travis CI code. (#10981) 2021-04-15 13:22:00 -04:00
Austin S. Hemmelgarn
0df192eb70 Fixed bundling of ACLK-NG components in dist tarballs. (#10894) 2021-04-02 10:53:40 -04:00
Austin S. Hemmelgarn
9beca23c38 Remove corss-platform builds on Travis. (#10865)
We’re already doing the same thing in GitHub Actions, and they
apparently can break on Travis due to infrastructure issues in such a
way that we can’t restart the build at all.
2021-03-26 10:22:16 -04:00
Austin S. Hemmelgarn
e66b02ff6a Properly prepare version for binary package builds. (#10790) 2021-03-17 13:36:34 -04:00
Austin S. Hemmelgarn
99143b2002 Fixed Travis config issues related to new packaging workflows. (#10774) 2021-03-16 09:51:12 -04: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
237ea440eb Fixed handling of Docker image tags for release builds. (#10615) 2021-02-08 11:10:47 -05:00
Austin S. Hemmelgarn
1d47e540e8 Bump version of git-semver to one that should actually work. 2021-02-03 07:48:01 -05:00
Austin S. Hemmelgarn
74e563a305 Fixed docker image tagging for nightly builds. (#10584)
They were being incorrectly tagged using the stable build tags.
2021-02-02 07:35:31 -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
d0a54068a3 Properly handle arguments and responses for triggering Docker builds. (#10545)
This moves the actual cURL command to a script, which both properly
handles the required parameters and also checks the results of the call
so that it throws an error if triggering the Docker build fails.
2021-01-22 09:22:22 -05:00
Austin S. Hemmelgarn
ed6d34338a Fixed triggering of Docker image builds from Travis. (#10541)
The cURL command was missing an authorization header and one component
in the URL.
2021-01-21 10:30:54 -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
Austin S. Hemmelgarn
0b617996d0 Bump Fedora version for RPM packaging to 32. (#10404)
This prevents it from failing due to missing LXC containers.
2020-12-18 08:45:23 -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
7ec4f48a0a Removed lifecycle checks from Travis CI. (#10305)
They consistently do not catch any issues in our own code except for
syntax errors, which are already caught by shellcheck. However, they
account for a vast majority of the runtime of our Travis CI jobs for the
agent and thus are a major contributing factor to how long it takes for
checks to finish in Travis. Remove them so they stop causing us
problems.
2020-12-02 07:16:52 -05: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
2fa6e45049 Skip all build checks on packaging builds. (#10058)
Package build runs on Travis only happen as part of release builds.
Because they happen _after_ the rest of the release, the build checks
have already run at least once because they're run as part of the
initial release build. As such, there’s no point in running them again
on the packaging builds, especially since they are the primary reason
that the packaging builds experience transient errors.
2020-10-12 08:59:24 -04:00
Austin S. Hemmelgarn
10728c2e6e Correctly fix handling of CI Slack notifications. (#9902) 2020-09-10 02:44:32 +10:00
Austin S. Hemmelgarn
173f508314 Make internal Travis CI notifications behave better. (#9897)
* Add failure messages for package build checks.

* Make notifications only happen for master branch.
2020-09-08 22:55:29 +10:00
Austin S. Hemmelgarn
334473f888 Don't run packaging checks on Travis builds that build packages. (#9795)
* Revert "Fix Travis CI builds and skip Fedora 31 i386 build/test cycles (#9781)"

This reverts commit 07e67c4b62.

This will be fixed differently.

* Skip package build checks on builds that build packages.

We don't need to check that package builds work if we're actually
building packages.
2020-08-20 09:14:10 -04:00
Austin S. Hemmelgarn
b91d84af7f Removed Ubuntu 20.04 32-bit x86 package builds. (#9718)
Our current infrastructure depends on availability of appropriate
architecture LXC containers for the distros we're building for, and
there are no 32-bit x86 LXC images for Ubuntu 20.04, so we cannot build
these packages.
2020-08-13 13:48:54 +10:00
James Mills
49e417b337 Add support for DEB packages for Ubuntu 20.04 (focal) (#9592)
* Add support for Ubuntu 20.04 DEB packages

* Add Travis config to also build the DEB packages for Ubuntu 20.04 (focal)
2020-08-07 15:00:14 +10:00
James Mills
0a5b7e4990 Fix Travis config (#9655) 2020-08-04 20:37:22 +10:00
James Mills
b27b09f5df Fix Travis CI and remove deprecated/removed builds that have no upstream LXC image (#9630) 2020-08-03 16:43:23 +10:00
Austin S. Hemmelgarn
8a105bad81 Added eBPF collector support to DEB and RPM packages. (#9628)
* Add DEB/RPM package build tests to Travis.

* Add working support for bundling eBPF in binary packages.

* Show stdout and stderr from commands run in LXC.

* Add proper bundling code for libbpf.

* Use AC_CHECK_FILE for libbpf.a external dep.

This way it gets properly logged in both configure output and the
configure log.
2020-07-30 07:09:59 -04:00
Austin S. Hemmelgarn
0e484f5d77 Remove Fedora 30 from CI. (#9274)
It went EOL on 2020-05-26.
2020-07-14 08:47:13 -04:00
Konstantinos Natsakis
876e9e6529 packaging/docker/{build,publish}.sh: Simplify scripts. Support only single ARCH (#8747)
* packaging/docker/{build,publish}.sh: Simplify scripts. Support only single ARCH

* packaging/docker/build.sh: Remove eval
2020-04-23 00:29:42 +03:00
Konstantinos Natsakis
59916b01b8 packaging/docker/{build,publish}.sh: Remove DEVEL support (#8702) 2020-04-14 19:00:17 +03:00
Austin S. Hemmelgarn
1841d37354 Correctly fixed RPM package builds on Fedora. (#8595)
* Revert "Fix broken Fedora 30/31 RPM builds (#8572)"

This reverts commit 71290d9cb9.

It didn't actually fix things and caused a different set of issues.

* Build LWS and mosquitto with -fPIC in RPM builds.

This fixeslinking errors that are currently causing RPM package build
failures for Fedora 30/31.
2020-04-03 11:40:31 -04:00
James Mills
71290d9cb9 Fix broken Fedora 30/31 RPM builds (#8572) 2020-04-02 21:29:32 +10:00
James Mills
18d6fba25a Fix openSUSE 15.1 RPM Package Buidls (#8494) 2020-03-26 20:12:20 +10:00
James Mills
c999f89754 Migrate Tests from Travis CI to Github Workflows (#8331)
* Migrate Tests from Travis CI to Github Workflows

* Use GHA path filters

* Make a unit test fail

* Run new cmocka based unit tests

* Revert "Make a unit test fail"

This reverts commit 15500c59e4d49cb478ef27289de0366a543815c5.

* Make a cmocka unit test fail

* Work around a bug in libbson-1.0 on Ubuntu 18.04

* Add DCMAKE_BUILD_TYPE=Debug to make dbengine tests pass

* Upload LastTest.log to GHA Artifact storage

* Revert "Make a cmocka unit test fail"

This reverts commit 920f56a03d.

* Remove Artifacts Validation stage
2020-03-14 16:22:52 +10:00
James Mills
a133543132 Migrate make dist validation to GHA Workflows (#8373)
* Migrate make dist validation to GHA Workflows

* Refactor run_install_with_dist_file.sh
2020-03-13 07:10:12 +10:00
Austin S. Hemmelgarn
b4dc55a309 Fix Travis configuration for nightly builds. (#8376) 2020-03-12 05:54:47 +10:00
James Mills
defe592767 Remove possible erroneous blank line causing Travis to fail possibly and default to magical behaviour (#8355) 2020-03-10 11:00:27 +10:00
James Mills
e1528f6a9c Migrate coverity-scan to Github Actions (#8321)
* Migrate coverity-scan to Github Actions

* Move to job conditional and use local install-required-pacakges.sh

* Add COVERITY_* secrets and add them to the Github secrets store with values from Travis copied over
2020-03-10 08:26:50 +10:00
Austin S. Hemmelgarn
71795877c6 Consolidate and clean up artifact validation. (#8352)
* Consolidate and clean up artifact validation.

This consolidates the two separate 'Artifacts Validation' stages we have
in Travis into a single stage,a s well as fixing an error in the
handling of the lifecycle checks.

Overall, this should improve build times for Travis CI checks due to a
deduplication of certain lifecycle checks and an overall increase in the
parallelizability of the jobs within the stage.

* Fix lifecycle check retry logic.
2020-03-10 07:30:43 +10:00
James Mills
e183d7499e Migrate Travis based checks to Github Actions (#8329)
* Migrate Travis based checks to Github Actions

* Remove Gitlab CI config

* Remove ./build/build.sh and use simple shell to do consistency checks on Dashbaord JS

* Install prereq deps

* Rename job

* Fix brain fart momemt

* Split Dashboard checks into a separate job
2020-03-09 21:35:24 +10:00
James Mills
7ea79411ae Add retries for more Travis transient failures (#8327) 2020-03-07 06:41:31 +10:00
James Mills
fc8ba79a51 Remvoed the use of clang-format that does not actually block PRs or surface anything to developers #8188 (#8196)
* Remvoed the use of clang-format that does not actually block PRs or surface anything to developers

* Reopen PR
2020-03-06 12:25:39 +10:00
Austin S. Hemmelgarn
f51be62957 Add yamllint to reviewdog PR checks. (#8291) 2020-03-04 16:21:39 -05:00
Austin S. Hemmelgarn
281fd893d0 Fixed Travis CI build handling. (#8288)
* Fixed Travis CI build handling.

We need to properly quote YAML metacharacters.

* Update pre-generated dashboard.js.
2020-03-04 12:35:42 -05:00
Martin Rey
3eeb6a71d0 Fix misspelling of openSUSE and SUSE (#8233) 2020-03-02 00:12:20 +02:00
James Mills
8d73d4b550 Retry transient failures from our lifecycle tests on Travis CI (#8203) 2020-02-27 11:32:37 +10:00
Austin S. Hemmelgarn
b2d29e5fee Remove Fedora 29 from CI and packaging. (#8100)
It went EOL upstream on 2019-11-26.
2020-02-22 10:53:20 -05:00
Austin S. Hemmelgarn
e7ee14eb72 Remove Ubuntu 19.04 from CI and packaging. (#8040)
It went EOL with no continuing upstream support on 2020-01-23.
2020-02-22 10:49:18 -05:00
Austin S. Hemmelgarn
12cf989576 Remove OpenSUSE Leap 15.0 from CI. (#7990)
Official upstream support for 15.0 ended on 2019-12-03, more than 3
months ago.
2020-02-22 10:48:41 -05:00
Mansour Behabadi
165aa68c94 Add release channel customization to docker build (#7373)
* Add release channel customization to docker build

* Add release channel to travis config

* Build releases with stable channel

* Update packaging/docker/build.sh

Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>

* Update packaging/docker/build.sh

Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>

Co-authored-by: Mansour Behabadi <mansour@oxplot.com>
Co-authored-by: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>
2020-01-29 11:03:22 +11:00
Craig Andrews
2225456fd5 .travis.yml: Add -fno-common to CFLAGS (#7870)
-fno-common will be set by default in GCC 10, see https://gcc.gnu.org/PR85678

Therefore, netdata should test with that configuration to be ready for this change.

See https://github.com/netdata/netdata/issues/7869
2020-01-29 07:13:58 +10:00