summaryrefslogtreecommitdiffstats
path: root/.travis
AgeCommit message (Collapse)Author
2020-03-14Migrate Tests from Travis CI to Github Workflows (#8331)James Mills
* 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 920f56a03d0479bec1a67dc8c242df189f702177. * Remove Artifacts Validation stage
2020-03-13Correct a typo in .travis/README.md (#8333)Felix Yan
2020-03-13Migrate make dist validation to GHA Workflows (#8373)James Mills
* Migrate make dist validation to GHA Workflows * Refactor run_install_with_dist_file.sh
2020-03-10Bulk add frontmatter to all documentation (#8354)Joel Hans
* Bulk add frontmatter * A few extra edge cases
2020-03-06Remvoed the use of clang-format that does not actually block PRs or surface ↵James Mills
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-02Fix misspelling of openSUSE and SUSE (#8233)Martin Rey
2020-02-23Revert "Revert "Revert "Added hack to sha256sums.txt to force users of ↵James Mills
NetData on v1.19.0-483 with a broken updater to update to latest (#8057)" (#8076)" (#8141)" (#8158) This reverts commit fd64a54e244f4380cc4e4e694126ca2b68f7d6f8.
2020-02-22Revert "Revert "Added hack to sha256sums.txt to force users of NetData on ↵James Mills
v1.19.0-483 with a broken updater to update to latest (#8057)" (#8076)" (#8141) This reverts commit bf62726bc632d1c65e8f2960af0052523f420266.
2020-02-12Revert "Added hack to sha256sums.txt to force users of NetData on ↵James Mills
v1.19.0-483 with a broken updater to update to latest (#8057)" (#8076) This reverts commit 53390e634001be49e9b67c4ea71232dc028033ec.
2020-02-13Added hack to sha256sums.txt to force users of NetData on v1.19.0-483 with a ↵James Mills
broken updater to update to latest (#8057)
2020-02-07Don't push a commit for i386 RPM builds. (#7989)Austin S. Hemmelgarn
We're not actually building any i386 RPM packages, and it maes essentially no sense to do so as the various major RPM-based distros don't even really support 32-bit x86 installs anymore. This will actually speed up the builds for the other package types because they won't be competing for CI resources. It will also make the commit history tidier in the repo.
2020-01-16Move the script for installing required packages into the main repo. (#7563)Austin S. Hemmelgarn
* Move the script for installing required packages into the main repo. Based on discussion with Costa. Most of what this script is actually used for directly is in the main repo anyway, so it makes more sense to have it there so that any changes get reviewed properly. * Fix typo in RPM package build setup.
2020-01-15multiple files: fix typos (#7752)Lucas Gabriel Schneider
2020-01-08Switch PR labeling to use GitHub Actions. (#7630)Austin S. Hemmelgarn
This decouples the PR labeling process from the main CI process, allowing them to run completely independenly of each other. The new labeling configuration is based on copying, extending, and correcting the existing labeling rules in the `labeler.sh` script which the commit is removing. Labeling is configured through `.github/labeler.yml` file. Check there for info on the exact format. The exact configuration being used will update labels on PR's whenever one is opened, updated, reopened, or marked ready for review. It will not remove existing labels from the PR, only add new ones.
2019-12-20packaging: Set default release channel to stable for gh releases (#7399)Mansour Behabadi
* packaging: Set default release channel to stable for gh releases * Leave kickstart files alone * Update .travis/create_artifacts.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>
2019-12-19Skip unit testing during CI when it's not needed. (#7559)Austin S. Hemmelgarn
* Skip unit testing during CI when it's not needed. Our current unit testing takes almost 20 minutes on average during the CI process, which is almost twice as long as any other step, and it's only going to get longer as we get better test coverage. This commit slightly alters how we handle unit testing during CI so that only those unit tests which are actually needed get run. This is achieved by using the `$TRAVIS_COMMIT_RANGE` environment variable provided by Travis to determine which commits we're actually testing, and then using that information to query Git for what files actually changed. As of right now, the only unit testing we're doing is in the dbengine code, so we check to see if any of those files or the C unit testing files are modified by the PR and only runs the unit tests for those if they were modified. The checks are a bit more wide-ranging than they probably need to be so that we make sure to avoid any false negatives. This should speed up CI checks for PR's (as well as not monopolizing the master branch after every PR that gets merged). * Restructure to better handle PR's. The previous code did not work correctly with PR's because it ignored the fact that Travis does not appear to report the full list of commits for a PR in `TRAVIS_COMMIT_RANGE`, instead only reporting the most recent set of commits that were pushed. * Add listing of commits being checked. This will allow for verification of what is being tested, making it easier to spot issues with the detection logic. * Don't assume PR's are targeting the master branch.
2019-12-13Inject archived backports repository on Debian Jessie for CI package builds. ↵Austin S. Hemmelgarn
(#7495) * Inject archived backports repository on Debian Jessie. Debian Jessie only ever had libuv1 as a backport, not part of the base release. This means that we need the backports repository on Jessie for the build to work, which has been archived. This updates the environment prep script for building Debian packages for Jessie to inject a file into `/etc/apt/sources.list.d` to add in the archived repository so that everything works correctly. * Change how the archived backports are injected for jessie. This shifts to just appending to the main sources.list file, which should be more reliable. It also explicitly updates caches after changing the sources. * Switch back to using a separate sources file. * Moved Jessie archived backports handling to repo setup function. This makes the code a bit cleaner overall. Also, we need to disable validity checking for the archives during the call to `apt-get update` otherwise things will just refuse to work. * Fix syntax error.
2019-12-10ci: remove ubuntu trusty 14.04 from build (#7481)Mansour
* ci: remove ubuntu trusty 14.04 from build * Update packaging matrix with ubuntu 14.04 changes
2019-12-07Indicate we no longer build packages for CentOS 6 (#7430)Mansour
* Indicate we no longer build packages for CentOS 6 * Remove CentOS 6 from travis pipeline description * Use x instead of asterisks to denote version wildcard in docs
2019-11-14Updating the Travis pipeline (issue 7189) (#7312)Andrew Moss
Added a linting pass. This is non-blocking but will output a measure of how much each .c and .h file deviates from our current .clang format. Changed the standard build to include all of the warning that we are using in dev. Added the dependencies for dbengine and confirmed that the standard build enables dbengine. Fixed the original warnings.
2019-11-01.travis.yml: Prevent nightly jobs from timing out (again) (#7238)Konstantinos Natsakis
* .travis.yml: Add tick() and retry() functions * .travis.yml: Remove superfluous 'docker info' commands The docker info command is ran during the install phase. There is no need to run it again * .travis.yml: Use the tick() function instead of travis_wait()
2019-09-23netdata/ci: nits and fixes around package release workflow (#6914)Paul Emm. Katsoulakis
* netdata/packaging: bring el/6 first, because this appears on all cases. Otherwise travis craps out the steps * netdata/ci: Attempt to sanitise workflow for master branch commits 1) Rename Packaging for release, now named: Support activities on main branch 2) Adjust instruction messages to reflect more realistically the activities 3) Put labeler first on the stage, since this will always run 4) Make changelog and tag for release conditionally run, so that it does not confuse people * netdata/ci: Sanitise workflow for release more (explained below) We need to clean up tagging logic more and in order to do this we need to bring tagger logic to travis.yml Then we have the complete control of tagging and triggering for changelog generation in travis. To mitigate this, we need to: 1) make tagger script a lirbary. Keep the tagging logic in a method and remove the things needed when it was an executable (checks, executions etc) 2) make travis handle GIT_TAG checking and setting at the beginning. We need this outside of any conditionals so that we have GIT_TAG result available inside the steps 3) COMMIT_TAG_POINTS_AT can now become GIT_TAG, since this is what we actually wanted. We just named differently before to avoid any weird conflicts 4) make changelog generation for release to NOT source tagger any more. Also make it fail in case GIT_TAG is not there, we wont run the script if git tag not in place so that should be error if it happens 5) Rename .travis/generate_changelog_for_release.sh -> .travis/create_changelog_for_release.sh 6) Rename .travis/generate_changelog_and_tag_release.sh -> .travis/generate_changelog_for_release.sh * netdata/ci: reinstate filename here. we basically do the git tag operation here still * netdata/ci: simplify more the changelog generation process 1) Rename create_changelog_for_release.sh -> create_changelog.sh 2) Add comments and the standard path checks in create_changelog.sh 3) Do some minor changes to help diff with nightlies changelog (no functional change though, primarily messages and move flags lower) 4) Inside generate_changelog_for_nightlies.sh, use create_changelog.sh and remove code related to create changelog process 5) in nightlies.sh, use standard shebang adn fix some messages Note: might follow up with more changes, this is just a first batch * netdata/packaging: reinstate accidentally removed OPTS from other iterationns (different engineer)
2019-09-20Improve changelog generation and add it back to the pipeline (#6900)Chris Akritidis
#### Summary Preparation for #6899 Make changelog generation faster and ensure it won't crash. Put it back to the pipeline. ##### Component Name CI/CD ##### Additional Information - Added correct max-issues specification. Note that the number of issues affects the number of displayed PRs. There's no way to ensure that all the PRs in a tag will be displayed, but with a limit of 500 we know that the most recent releases will be complete. - Let the CHANGELOG show links to diffs - Put an invalid Bug tag, to ensure that fixed bugs are not listed (the result with the defaults was incorrect) - Enable running the changelog generation again
2019-09-16netdata/packaging: Introduce separate CUPS package for debian distributions ↵Paul Emm. Katsoulakis
(#6724) * netdata/packaging: baby steps, create the new package and introduce the install file * netdata/packaging: [ci skip] change branch to be able to test * netdata/packaging: we do define usrlib path to be /usr/lib * netdata/packaging: silence sign errors for now * netdata/packaging: Add rules for plugin-cups sub package * netdata/packaging: [ci skip] That is libexec, not lib, duh * netdata/packaging: [ci skip] explicitly arrange the other plugins also * netdata/packaging: [ci skip] fix bug * netdata/packaging: copy, dont move * netdata/packaging: move all plugins around, also remove a slash * netdata/packaging: [ci skip] align travis.yml changes with the ones we used on rpm cups pkg split * netdata/packaging:[ci skip] add netdata dependency * netdata/packaging:[ci skip] Update control files * netdata/packaging: Add separate control file for buster, dependencies deviate (libprotoc17 instead of libprotoc10....) * netdata/packaging: [ci skip] whoops * netdata/packaging: [ci skip] Copy over files from temp dir, if destination non existent * netdata/packaging:[ci skip] -d, not -f * netdata/packaging: [ci skip] long shot * netdata/packaging: [ci skip] revert this - need to retest * netdata/packaging: [ci skip] remove the .install, as per an article input (https://askubuntu.com/questions/660373/dh-install-fails-with-missing-files) these files are for handling items not managed by the upstream build system, so bye bye * netdata/packaging: Ok, lets ditch dh_auto_configure * Revert "netdata/packaging: Ok, lets ditch dh_auto_configure" This reverts commit 3b497cf5f6e157ce5429ffce38452515670a934a. Well, that didn't affect anything * netdata/packaging: [ci skip] here's a crazy thought Okay, assuming that packager decided to use debian/tmp because we introduced multiple packages. If that is the case, then move the custom stuff out first and then just move all debian/tmp to debian/netdata. In theory, that should get me back on track for the rest of the package processing. Lets see if i was right * netdata/packaging: [ci skip] mv complains, forgot about that, fix forgot about that, just copy for now to verify the use case and we will consider rsync approach for faster processing afterwards * netdata/packaging: nope, that didn't work. rollback and remove also a suspicious backslash * netdata/packaging: ok, trying this * netdata/packaging: really? * netdata/packaging: [ci skip] reinstate original setup, the bug probably was too obvious to spot * netdata/packaging:[ci skip] now that you finally noted the www bug, try to copy over the rest of the stuff in * netdata/packaging: [ci skip] long shot, etc is not properly created, lets see if it was already there and we messed it up * netdata/packaging: [ci skip] fix perms, add placeholder folders in etc * netdata/packaging: [ci skip] preserve ownership details when copying over * netdata/packaging:[ci skip] reinstate branch condition * netdata/packaging: redudant * netdata/packaging: xenial - add cups subpackage * netdata/packaging: remove cups dependency from those distros, missed to update the control file * netdata/packaging: dont use personal account info
2019-09-15netdata/packaging: Bring on board two scripts that build libuv and judy from ↵Paul Emm. Katsoulakis
source (#6850) * netdata/packaging: Script to build judy from source * netdata/packaging: Add script to build libuv from source
2019-09-13netdata/packaging: nits and fixes for packaging (#6842)Paul Emm. Katsoulakis
* netdata/packaging:[ci skip] Bring over netdata.spec before removing the temp directory. We need it to resume RPM workflow * [Package amd64 DEB] Package build stable test * netdata/packaging:[ci skip] add branch for testing * [Package amd64 DEB] Package build stable test * [Package i386 DEB] Package build stable test * [Package i386 DEB] Package build stable test * [Package amd64 DEB] Package build stable test * [Package i386 DEB] Package build stable test * [Package amd64 RPM] Package build stable test * [Package i386 RPM] Package build stable test * netdata/doc: update distro support, due to lxc limitations we dont have those yet * [Package i386 RPM] Package build stable test * [Package i386 RPM Enterprise Linux] Package build stable test * netdata/ci:[ci skip] yes, we must test rpm too * [Package i386 RPM] Package build stable test * [Package amd64 RPM] Package build stable test * netdata/packaging:[ci skip] Add i386 RPM and DEB distro triggers * netdata/packaging: [ci skip] remove the test branch info * netdata/doc: [ci skip] fix doc * netdata/doc: [ci skip] update doc more
2019-09-13netdata/packaging: nit - missed trailing slash (#6840)Paul Emm. Katsoulakis
2019-09-13netdata/packaging: Ensure that we do not mess with CI tooling, when building ↵Paul Emm. Katsoulakis
stable (#6838) * netdata/packaging: Dont mess with the CI code when playing with the repo Sadly, we need to run consistently the same code for the CI side. When doing checkouts to build stable code, we move the whole repo thus resulting on changing the ci code too. This is usually fine when building nightlies, on stable though is a completely different story. To mitigate this, copy the repo into a temporary folder. Then do whatever you need to prepare and copy the tarball. Once you are done, just go back to the original repo folder and remove the temp. That should work fine for both nightlies and stable, with a little overhead of copying over the repository, but we have to. We want to be able to run with latest CI code, when trying to build a stable release. * [Package amd64 DEB] Package build stable test * netdata/packaging: allow me to test on my repo the build process (dont care for deploy) * [Package amd64 DEB] Package build stable test * netdata/packaging: [ci skip] copy under tmp * [Package amd64 DEB] Package build stable test * netdata/packaging:[ci skip] play with CWD of the command, thats cleaner and well, the right thing * [Package amd64 DEB] Package build stable test * netdata/packaging: [ci skip] cd did not fall for cwd, provide full path and move on * netdata/packaging: a few nits like dont use cwd for some commands, import sys, simplify some variable usage * netdata/packaging: [ci skip] focus, missed a reference to the tarballen * netdata/packaging: [ci skip] remove test branch * netdata/packaging: Thanks for taking note Codacy, here's a better temp file for the job
2019-09-12netdata/packaging: we didnt fix changelog handling, fixes and nits now (#6837)Paul Emm. Katsoulakis
1) We missed a dot when reconstructing since_version 2) When we are on a patch release, just step back to fetch history from the previous patch release (or last minor release, respectively)
2019-09-11netdata/packaging: fix ubuntu/xenial runtime dependencies (#6825)Paul Emm. Katsoulakis
2019-09-11netdata/ci: use the right packaging user for the commits to trigger ↵Paul Emm. Katsoulakis
packaging (#6813)
2019-09-05netdata/packaging: fix changelog generation failing the build (#6778)Paul Emm. Katsoulakis
We bumped into an error that caused debian/jessie package generation to fail. When building stable release, we don't properly detect the change from previous stable to this one. So the changelog generation fails and only on some distros causes the process to fail. With this change we attempt to detect this peculiarity and just try fo decrease latest release version, to properly fetch the full changes
2019-09-05netdata/packaging: override control file for debian/buster, different ↵Paul Emm. Katsoulakis
library available for protoc runtime (#6777)
2019-09-03Remove changelog generation from release, as it keeps breaking (#6761)Chris Akritidis
2019-09-02Skip issues from release changelog (#6759)Chris Akritidis
2019-09-02Increase minimum release for changelog (#6758)Chris Akritidis
2019-08-29netdata/packaging: Add purging logic for package cloud repositories (#6732)Paul Emm. Katsoulakis
* netdata/packaging: Add purging logic for package cloud repositories 1) Introduce scriptlet that is executing the cleanup on a designated repository, with a designated retention period 2) Add .travis.yml configuration to execute purging logic with the right config on the nightly operations * netdata/packaging: uncomment the temp dir clean up * netdata/packaging: fix codacy * netdata/packaging: [ci skip] Purge only -edge and -devel packages
2019-08-25netdata/ci: [ci skip] Fix changelog modification time scriptPavlos Emm. Katsoulakis
2019-08-19netdata/packaging: fix script naming, rpm was not accurate on that contexTPavlos Emm. Katsoulakis
2019-08-16netdata/packaging: Align libdir in all configure commands (#6682)Paul Emm. Katsoulakis
* netdata/packaging: Align libdir with the one we expect our installation to use, following the rest of the directory correllations * netdata/packaging:[ci skip] One more
2019-08-16netdata/packaging: in the peculiar case where a patch release has been ↵Pavlos Emm. Katsoulakis
applied, versioning will be messed up for nightlies. To mitigate this, just prepend patch release number to the build number and this should provide with a proper higher number for nightlies every time
2019-08-16netdata/packaging: [ci skip] Correlate configure command (#6678)Paul Emm. Katsoulakis
Overriding as i will be closely monitoring the results
2019-08-16netdata/packaging: [ci skip] nitPavlos Emm. Katsoulakis
2019-08-16netdata/packaging: [ci skip] Remove a stale command, also use git depth ↵Pavlos Emm. Katsoulakis
false for full repo retrieval
2019-08-16netdata/packaging: Add auto-generation of packages for nightly (#6675)Paul Emm. Katsoulakis
force pushing before approvals, i will be closely monitoring the effect by triggering nightlies on demand and evaluate the result
2019-08-13 Change "netdata" to "Netdata" in all docs (#6621)Joel Hans
* First pass of changing netdata to Netdata * Second pass of netdata -> Netdata * Starting work on netdata with no whitespace after * Pass for netdata with no whitespace at the end * Pass for netdata with no whitespace at the front
2019-08-09netdata/packaging: Documentation on distribution support matrix and ↵Paul Emm. Katsoulakis
functionality availability (#6552) * netdata/packaging: [ci skip] Add trusty and xenial * netdata/packaging: [ci skip] check directly for the flag existence * netdata/packaging: Append table for functionality-related support matrix * netdata/packaging: add line ending * [ci skip] revert this - will get help from joel * netdata/packaging/doc: [ci skip] experiment * netdata/packaging: [ci skip] fix * netdata/packaging: [ci skip] Add more info needed for the rest to check the style * netdata/packaging: [ci skip] different icon * netdata/packaging: [ci skip] split per arch * netdata/packaging:[ci skip] More adjustments * netdata/packaging:[ci skip] more adjustments * netdata/packaging:[ci skip] style * netdata/packaging: update status * netdata/packaging: [ci skip] update rpm/deb state * netdata/packaging:[ci skip] different icon for unchecked * Revert "netdata/packaging:[ci skip] different icon for unchecked" This reverts commit 6ed2a46859f0bb1dd3c1a266280074b023028382. oops, the other one, not this * netdata/packaging: [ci skip] change symbol for unchecked * netdata/packaging: we dont know source state for all other linux, so make it questionmark * netdata/packaging:[ci skip] fix suse leap state * netdata/packaging: [ci skip] fix deb state * Update DISTRIBUTIONS.md * Update DISTRIBUTIONS.md * Update DISTRIBUTIONS.md * netdata/pkg: [ci skip]Update DISTRIBUTIONS.md Sync x86 table with amd64 table. They are not 1 on 1 but close enough, so syncing and then will adjust to the differences at another pass * netdata/packaging: [ci skip] code health doesnt make sense, rename to ci smoke testing which makes more sense * Update DISTRIBUTIONS.md * Update DISTRIBUTIONS.md * Update DISTRIBUTIONS.md * Update DISTRIBUTIONS.md * Update DISTRIBUTIONS.md * netdata/packaging:[ci skip] Stricter check on protobuf, plus separate config for trusty because no libuv1 available there * netdata/packaging: add functionality-related details * netdata/packaging/docs: add skeleton sections * netdata/packaging/docs: remove that * netdata/packaging: fix header * Update DISTRIBUTIONS.md * netdata/packaging/docs:[ci skip] fix indent * netdata/packaging/docs: [ci skip] change wording * netdata/packaging/docs: kickstart-static64 everywhere * netdata/packaging/docs: [ci skip] Add legend and update some fields * netdata/packaging/docs: add disable flags * Update DISTRIBUTIONS.md * Update DISTRIBUTIONS.md * Update DISTRIBUTIONS.md * Update packaging/DISTRIBUTIONS.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * Update packaging/DISTRIBUTIONS.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * Update packaging/DISTRIBUTIONS.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * netdata/packaging/docs: feedback * Update packaging/DISTRIBUTIONS.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * Update packaging/DISTRIBUTIONS.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * Update packaging/DISTRIBUTIONS.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * Update packaging/DISTRIBUTIONS.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * Update packaging/DISTRIBUTIONS.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * netdata/packaging: more feedback
2019-08-02netdata/packaging: [ci skip] make slack usage a soft error here (the library ↵Pavlos Emm. Katsoulakis
should be available though, so this is a workaround fix until i figure out the WOW)
2019-07-28netdata/packaging: Notify us when CHANGELOG.md gets too old (#6556)Paul Emm. Katsoulakis
* netdata/packaging: [ci skip] Make sure you notify us when nightlies changelog generation fails. It is a soft error, but we do want to know about it
2019-07-27netdata/packaging: [ci skip] Make sure you notify us when nightlies ↵Pavlos Emm. Katsoulakis
changelog generation fails. It is a soft error, but we do want to know about it