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

23 Commits

Author SHA1 Message Date
Austin S. Hemmelgarn
3d67dc39b9 Update Coverity version so that scanning works again. (#10794) 2021-03-17 13:24:34 -04:00
James Mills
a18ec2d2d8 Fix coverity scan (#8388)
* Fix coverity scan

* Add path filter to pull_request: condition

* Add missing dependency
2020-03-13 07:24:06 +10:00
Paul Emm. Katsoulakis
5657086b1c netdata/ci: second batch of fixes for coverity scan script and others (#6804)
* netdata/ci: fine grain coverity scan toolkit

1) Deprecate coverity-install.sh
2) add set -e to raise errors more aggressively when something is wrong
3) refactor some variable definitions for temp and install paths, use mktemp and clean up temp dir when all ok

* netdata/ci: reduce the scope

* netdata/ci: require curl

* netdata/ci: go soft on functions loading

* netdata/ci: allow override of build version without touching the script

* netdata/ci: handle shellcheck errors, some were silenced because we dont handle them

* netdata/ci: coverity scan, parse any extra options other than --with-install and pass them to configure

1) add default configure arguments if no extras are given
2) parse all possible arguments individually, handle --with-install and pass the rest to scanit

* netdata/ci: focus, argument parsing in one place a bit more consistently

* netdata/ci: prepare for using

* netdata/ci: coverity - add more flags, adjust deps list

1) Add with math and with zlib flags on the script
2) add xenstat dependencies
3) run in coverity with custom flags, so that we add xenstat (no need to be by default for the users of the script)

* netdata/packaging: add xen-utils also

* test the flow

* netdata/ci: dont forget to go back to the original directory

* netdata/ci: please, travis, stop it

* netdata/ci: how about this then

* netdata/ci: silence that, we cant call it otherwise

* netdata/packaging: update documentation around xenstat on centos

* netdata/packaging: dont enable xenstat at this stage

* netdata/ci: add += instead of variable reusage
2019-09-12 11:49:21 +02:00
Costa Tsaousis
fd9eb73ccc make coverity-scan.sh usable by hand (#6747)
* make coverity-scan.sh usable by hand

* updated debug variable and docs

* merge coverity-scan.sh and coverity-install.sh

-- MERGING AND TAKING OVER FURTHER IMPROVEMENTS as agreed --
2019-08-31 21:10:53 +03:00
Paul Katsoulakis
69050e6028 netdata/build: A small house keeping around coverity scan (no functional or process change) (#5656)
* netdata/build: a small house keeping around coverity scan (no functional or process change)

1) Split coverity install on seperate scriptlet, call it through travis when needed
2) Remove shellcheck exclussions, they dont seem to be raised any more (i might be using wrong version of shellcheck, will see)
3) Fix authors,copyrights etc
4) Make sure all echo goes to stderr
5) When installing, use mktemp for the temporary directory and put everything there. Remove afterwards

* netdata/build: missed - remove temp folder once done

* Rebumping with empty commit to trigger build

* Temp commit to force execution of modified code for coverity

* [ci skip] Revert "Temp commit to force execution of modified code for coverity"

This reverts commit 70e770cbbc.

* Temp commit to force execution of modified code for coverity

* Temp commit to force execution of modified code for coverity

* packaging/netdata/coverity-scan: Missed PATH export during scan phase

* netdata/packaging/coverity-scan: the source folder not so temporary after all

Use a more permanent path for the workdir and we will deep dive on the details of this if necessary at a later stage

* netdata/packaging: This is a more general change, push REPOSITORY variable up to travis layer to help testing against personal accounts

* netdata/packaging/coverity-scan: Missed folder creation (no longer using mktemp, duh), also make sure you do a couple of validations so that you know install is failed or not, otherwise we exit with success but nothing has happened

* netdata/coverity-scan: a few more changes towards abstraction
1) move for submit email to travis environment variables
2) Use REPOSITORY in project name
3) Add some new lines on the last log message, to separate it from the curl result

* netdata/coverity: missed parameter from echo

* Reinstate the flag that controls coverity scan execution (was removed for testing purposes, to run coverity in a controlled environment)

* netdata/coverity-scan: Control coverity scan results submission and report back the potential error without blocking the pipeline by failing the step completely
2019-03-19 18:22:38 +01:00
Paweł Krupa
a1b6a7f532 [cleanup crusade] Shellcheck (#4261)
* lint libreswan module

* disable linting obsolete shell modules

* shellcheck more shell modules

* fix review; lint helper scripts

* more shellcheck

* fix SC2235 in apache.chart.sh

* shellcheck last portion of charts.d scripts

* final shellcheck; make travis blocking

* fix cppcheck

* fix indents; fix expansion

* fix local var assignments
2018-09-29 02:09:34 +03:00
Paweł Krupa
e7933ec954 Update coverity-scan.sh (#4304) 2018-09-27 20:26:51 +03:00
Paweł Krupa
545eb2fd29 update variable after install (#4292)
* update variable after install

* normalize indent
2018-09-26 09:57:13 +02:00
Paweł Krupa
d245698a5a fix typo (#4290) 2018-09-25 23:12:14 +03:00
Paweł Krupa
e3f1cdca07 nightly builds + coverity scan (#4273)
* nightly + enable coverity

* better releasing

* coverity in travis

* move var

* start travis

* remove quotes

* Update coverity-scan.sh
2018-09-24 20:42:19 +03:00
Costa Tsaousis (ktsaou)
aa96ff99f5 coverity should still use firehol/netdata until we find a solution 2018-09-22 16:24:27 +03:00
Costa Tsaousis
d56a4ece38 replaced referenced to firehol github org with netdata github org (#4249)
* replaced referenced to firehol github org with netdata github org

* increased versions of js files

* added new docker hub badge netdata/netdata and restored firehol/netdata
2018-09-22 14:56:47 +03:00
Costa Tsaousis (ktsaou)
3b0dd08b76 show version on console when submitting to coverity 2018-09-22 01:57:04 +03:00
Paweł Krupa
0426209ead [cleanup crusade] linting shell scripts for docker, tests and python (#4162)
* shell linting various scripts

* remove python-modules-installer.sh.in
2018-09-13 00:18:19 +03:00
Costa Tsaousis (ktsaou)
552b7da33b allow coverity-scan.sh to obtain the token from environment variable 2018-09-10 02:02:16 +03:00
Costa Tsaousis (ktsaou)
f3ba116352 removed duplicate shebang 2017-12-26 17:54:59 +02:00
Costa Tsaousis (ktsaou)
776f82c2af more fixes 2017-12-26 07:15:26 +02:00
Costa Tsaousis (ktsaou)
0852ce6be9 fix issue identified by coverity 2017-09-10 14:42:51 +03:00
Costa Tsaousis (ktsaou)
4098feb547 use all cpus for coverity scan 2017-06-18 01:56:13 +03:00
Costa Tsaousis (ktsaou)
e776d228ed updated coverity scan to detect netdata version 2017-03-18 19:40:18 +02:00
Costa Tsaousis (ktsaou)
9d25e5b3d2 updated coverity version 2017-03-01 02:55:26 +02:00
Costa Tsaousis (ktsaou)
09b4053b7a updated coverity-scan.sh version 2017-01-02 02:17:33 +02:00
Costa Tsaousis (ktsaou)
1e2a080e0e updated all javascript libraries 2016-09-30 00:45:29 +03:00