summaryrefslogtreecommitdiffstats
path: root/coverity-scan.sh
AgeCommit message (Collapse)Author
2024-01-15Change default build directory in installer to `build`. (#16768)Austin S. Hemmelgarn
2024-01-08Fix (and improve) Coverity scanning. (#16605)Austin S. Hemmelgarn
* Split feature detection code to functions. This lets us reuse it in places like the coverity scan script. * Add ninja to the coverity build environment. * Restructure coverity scan script to use cmake. * Fix incorrect function name. * Add extra plugin deps for coverity scan environment. * Fix new issues introduced in coverity script. * Fix things broken by previous fix. * Fix Docker image builds. * Assorted fixes. * Correctly handle common case of set but empty prefix.
2023-11-27Bump new version to cov-analysis tool (#16482)Tasos Katsoulas
* Bump new version to cov-analysis tool * full version
2023-07-06Code reorg and cleanup - enrichment of /api/v2 (#15294)Costa Tsaousis
* claim script now accepts the same params as the kickstart * rewrote buildinfo to unify all methods * added cloud unavailable in cloud status * added all exporters * renamed httpd to h2o * rename ENABLE_COMPRESSION to ENABLE_LZ4 * rename global variable * rename ENABLE_HTTPS to ENABLE_OPENSSL * fix coverity-scan for openssl * add lz4 to coverity-scan * added all plugins and most of the features * added all plugins and most of the features * generalize bitmap code so that we can have any size of bitmaps * cleanup * fix compilation without protobuf * fix compilation with others allocators * fix bitmap * comprehensive bitmaps unit test * bitmap as macros * added developer mode * added system info to build info * cloud available/unavailable * added /api/v2/info * added units and ni to transitions * when showing instances and transitions, show only the instances that have transitions * cleanup * add missing quotes * add anchor to transitions * added more to build info * calculate retention per tier and expose it to /api/v2/info * added currently collected metrics * do not show space and retention when no numbers are available * fix impossible overflow * Add function for transitions and execute callback * In case of error, reset and try next dictionary entry * Fix error message * simpler logic to maintain retention per tier * /api/v2/alert_transitions * Handle case of recipient null Convert after and before to usec * Add classification, type and component * working /api/v2/alert_transitions * Fix query to properly handle context and alert name * cleanup * Add search with transition * accept transition in /api/v2/alert_transitions * totaly dynamic facets * fixed debug info * restructured facets * cleanup; removal of options=transitions * updated alert entries flags * method to exec * Return also exec run timestamp Temp table cleanup only when we don't execute with a transition * cleanup obsolete anchor parameter * Add sql_get_alert_configuration function * added options=config to alert_transitions * added /api/v2/alert_config * preliminary work for /api/v2/claim * initialize variables; do not expose expected retention if no disk space info is available; do not report aclk as initializing when not claimed * fix claim session key filename * put a newline into the session key file * more progress on claiming * final /api/v2/claim endpoint * after claiming, refresh our state at the output * Fix query to fetch config * Remove debug log * add configuration objects * add configuration objects - fixed * respect the NETDATA_DISABLE_CLOUD env variable * NETDATA_DISABLE_CLOUD env variable sets the default, but the config sets the final value * use a new claimed_id on every claiming * regenerate random key on claiming and wait for online status * ignore write() return value when writing a newline * dont show cloud status disabled when claimed_id is missing * added ctx to alert instances * cleanup config and transitions from /api/v2/alerts * fix unused variable * in /api/v2/alert_config show 1 config without an array * show alert values conditionally, by appending options=values * When storing host info if the key value is empty, store unknown * added options=summary to control when the alerts summary is shown * increased http_api_v2 to version 5 * claming random key file is now not world readable * added local-listeners binary that detects all the listening ports, their IPs and their command lines --------- Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
2023-05-03Bump Coverity scan tool version. (#15003)Austin S. Hemmelgarn
Also update the script so that this process becomes a bit easier in the future.
2022-08-19Bump Coverity version to latest (2022.06). (#13541)Austin S. Hemmelgarn
THis should fix the fialing Coverity scan CI jobs.
2022-05-26fix COVERITY_PATH added with INSTALL_DIR into PATH (#13014)maneamarius
2022-05-25Autodetect coverity install path to increase robustness (#12995)maneamarius
2022-03-30Fix coverity scan. (#12561)Austin S. Hemmelgarn
2022-03-15Remove backends subsystem (#12146)Vladimir Kobal
2022-03-14Bump the version of Coverity we are using to the latest. (#12398)Austin S. Hemmelgarn
Also, report when we actually managed to download something, but the name did not match what was expected.
2021-03-17Update Coverity version so that scanning works again. (#10794)Austin S. Hemmelgarn
2020-03-13Fix coverity scan (#8388)James Mills
* Fix coverity scan * Add path filter to pull_request: condition * Add missing dependency
2019-09-12netdata/ci: second batch of fixes for coverity scan script and others (#6804)Paul Emm. Katsoulakis
* 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-08-31make coverity-scan.sh usable by hand (#6747)Costa Tsaousis
* 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-03-19netdata/build: A small house keeping around coverity scan (no functional or ↵Paul Katsoulakis
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 70e770cbbcb2b9cb4c8040d6249688c810d823f3. * 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
2018-09-29[cleanup crusade] Shellcheck (#4261)Paweł Krupa
* 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-27Update coverity-scan.sh (#4304)Paweł Krupa
2018-09-26update variable after install (#4292)Paweł Krupa
* update variable after install * normalize indent
2018-09-25fix typo (#4290)Paweł Krupa
2018-09-24nightly builds + coverity scan (#4273)Paweł Krupa
* nightly + enable coverity * better releasing * coverity in travis * move var * start travis * remove quotes * Update coverity-scan.sh
2018-09-22coverity should still use firehol/netdata until we find a solutionCosta Tsaousis (ktsaou)
2018-09-22replaced referenced to firehol github org with netdata github org (#4249)Costa Tsaousis
* 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-22show version on console when submitting to coverityCosta Tsaousis (ktsaou)
2018-09-13[cleanup crusade] linting shell scripts for docker, tests and python (#4162)Paweł Krupa
* shell linting various scripts * remove python-modules-installer.sh.in
2018-09-10allow coverity-scan.sh to obtain the token from environment variableCosta Tsaousis (ktsaou)
2017-12-26removed duplicate shebangCosta Tsaousis (ktsaou)
2017-12-26more fixesCosta Tsaousis (ktsaou)
2017-09-10fix issue identified by coverityCosta Tsaousis (ktsaou)
2017-06-18use all cpus for coverity scanCosta Tsaousis (ktsaou)
2017-03-18updated coverity scan to detect netdata versionCosta Tsaousis (ktsaou)
2017-03-01updated coverity versionCosta Tsaousis (ktsaou)
2017-01-02updated coverity-scan.sh versionCosta Tsaousis (ktsaou)
2016-09-30updated all javascript librariesCosta Tsaousis (ktsaou)