-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-enable code coverage using codecov (#2464)
* Explicitly use `CODECOV_TOKEN` * Verify that `CODECOV_TOKEN` is set * Use an intermediary parameter * Use an intermediary env var * Use an intermediary env var * Fix syntax error * Setup CODECOV_TOKEN Environment Variable * Pass `CODECOV_TOKEN` to the docker image * Add initial `.codecov.yml` * Remove debug logs * Update `codecov.yml` * Rename codecov.yml * Validate codecov.yml * Add graph to the comment layout * [appsec] Install CodeCov Uploader Dependencies * Install missing `sudo` dependency * Set blocking coverage targets * App appsec & tracer extension flags * Create gpg file before valdation * [appsec] Install gnupg * Create `/root/.gnupg` * Add slug env var (See Notes) Notes: https://github.com/codecov/uploader/blob/6ccf3c3b145904308d38cdef1ad615df2ff6f9e0/src/ci_providers/provider_circleci.ts#L33-L49 * Detect CircleCI as the CI provider * Run coverage while running the integration[s]/web tests * fix: Only keep the last entry of xdebug.so files * Merge coverage reports * Add back again test_integrations_phpredis5 to the PHP 8.0 test suite * Only include the Integrations/ directory * Reset TEST_EXTRA_ENV after usage * Only run test coverage for PHP 7.4+ * Fix circleci syntax * Fix circleci syntax * Upgrade phpredis5 scenario to redis-5.3.7 * Revert phpredis5 changes * Revert phpredis5 changes * Add gpg to the base buster container * Use php-config to find the php extension directory Co-authored-by: Bob Weinand <[email protected]> * Merge coverage reports * Add back again test_integrations_phpredis5 to the PHP 8.0 test suite * Only include the Integrations/ directory * Only run test coverage for PHP 7.4+ * Upgrade phpredis5 scenario to redis-5.3.7 * Revert phpredis5 changes * Revert phpredis5 changes * Merge master * fix: Iteration over null * fix: missing coverage_file definition * fix: Undefined variable `data` * fix: Unique codecov/upload upload_name * fix: Unique codecov/upload upload_name * Exclude `dogstatsd/` --------- Co-authored-by: Bob Weinand <[email protected]>
- Loading branch information
Showing
7 changed files
with
195 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Validate using: cat codecov.yml | curl --data-binary @- https://codecov.io/validate | ||
codecov: | ||
require_ci_to_pass: false # See coverage on CI test failures | ||
|
||
coverage: | ||
range: 90..100 | ||
round: down | ||
precision: 2 | ||
status: # Blocking coverage targets | ||
project: # Each PR must increase coverage | ||
default: | ||
target: auto | ||
patch: # New code must be at least 90% tested | ||
default: | ||
target: 90% | ||
|
||
|
||
comment: # See https://docs.codecov.com/docs/pull-request-comments | ||
behavior: default | ||
layout: "header,reach,diff,flags,files,footer" | ||
require_changes: true | ||
require_base: false | ||
require_head: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ ENV DEVLIBS \ | |
zlib1g-dev \ | ||
libasan5 \ | ||
gnupg \ | ||
gpg \ | ||
unixodbc-dev \ | ||
unixodbc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.