Description
Several months ago, our repo underwent a major refactoring including moving a lot of files and folders. After this point we kept seeing the old directory in our coverage reports even after we added new tags and made the old tag not carry over stats. We also waited for more than 60 days for these stats to disappear to no avail. Any way to purge these old paths from our global coverage report?
Path mapping is not an option as this was not a simple move or rename operation.
CI/CD URL
N/A as the repo is private.
Codecov Output
[2022-05-03T13:10:14.437Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.2.0
[2022-05-03T13:10:14.444Z] ['info'] => Project root located at: /home/runner/work/formsort/formsort
[2022-05-03T13:10:14.448Z] ['info'] -> Token found by environment variables
[2022-05-03T13:10:14.458Z] ['info'] Searching for coverage files...
[2022-05-03T13:10:14.532Z] ['info'] Warning: Some files located via search were excluded from upload.
[2022-05-03T13:10:14.532Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2022-05-03T13:10:14.533Z] ['info'] => Found 1 possible coverage files:
lcov.info
[2022-05-03T13:10:14.533Z] ['info'] Processing reports/unit-test-coverage/lcov.info...
[2022-05-03T13:10:14.557Z] ['info'] Using manual override from args.
[2022-05-03T13:10:14.557Z] ['info'] Detected GitHub Actions as the CI provider.
[2022-05-03T13:10:14.559Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.2.0&token=*******&branch=master&build=2263974433&build_url=https%3A%2F%2Fgithub.com%2Fformsort%2Fformsort%2Factions%2Fruns%2F2263974433&commit=96e89bdc7e5bba177369184bc806fb9a5c30bfc4&job=Front-end&pr=&service=github-actions&slug=formsort%2Fformsort&name=&tag=&flags=common-fe&parent=
[2022-05-03T13:10:14.826Z] ['info'] https://codecov.io/github/formsort/formsort/commit/96e89bdc7e5bba177369184bc806fb9a5c30bfc4
https://storage.googleapis.com/codecov/v4/raw/2022-05-03/CCE54AA3D60A482437CC40B2C211EE25/96e89bdc7e5bba177369184bc806fb9a5c30bfc4/9cd5a52a-f01b-4c17-a4d4-ef9601779916.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220503%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220503T131014Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=6314ecb492a112f4d91229a216f31056e82790b2be998d78295f3d223622f3a4
[2022-05-03T13:10:14.827Z] ['info'] Uploading...
[2022-05-03T13:10:15.062Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/formsort/formsort/commit/96e89bdc7e5bba177369184bc806fb9a5c30bfc4"}
[2022-05-03T13:10:15.274Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.2.0
[2022-05-03T13:10:15.281Z] ['info'] => Project root located at: /home/runner/work/formsort/formsort
[2022-05-03T13:10:15.285Z] ['info'] -> Token found by environment variables
[2022-05-03T13:10:15.295Z] ['info'] Searching for coverage files...
[2022-05-03T13:10:15.368Z] ['info'] Warning: Some files located via search were excluded from upload.
[2022-05-03T13:10:15.368Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2022-05-03T13:10:15.368Z] ['info'] => Found 1 possible coverage files:
lcov.info
[2022-05-03T13:10:15.368Z] ['info'] Processing reports/unit-test-coverage/lcov.info...
[2022-05-03T13:10:15.393Z] ['info'] Using manual override from args.
[2022-05-03T13:10:15.393Z] ['info'] Detected GitHub Actions as the CI provider.
[2022-05-03T13:10:15.394Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.2.0&token=*******&branch=master&build=2263974433&build_url=https%3A%2F%2Fgithub.com%2Fformsort%2Fformsort%2Factions%2Fruns%2F2263974433&commit=96e89bdc7e5bba177369184bc806fb9a5c30bfc4&job=Front-end&pr=&service=github-actions&slug=formsort%2Fformsort&name=&tag=&flags=frontend&parent=
[2022-05-03T13:10:15.744Z] ['info'] https://codecov.io/github/formsort/formsort/commit/96e89bdc7e5bba177369184bc806fb9a5c30bfc4
https://storage.googleapis.com/codecov/v4/raw/2022-05-03/<redacted>
[2022-05-03T13:10:15.744Z] ['info'] Uploading...
[2022-05-03T13:10:15.982Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/formsort/formsort/commit/96e89bdc7e5bba177369184bc806fb9a5c30bfc4"}
Expected Results
The old web/src
folder to not be listed in coverage reports anymore.
Actual Results
Additional Information
This is the codecov.yml
file:
ignore:
- frontend/cypress
- frontend/embed-snippet
- frontend/eslint-*
- .github
- .vscode
- docker
# This is the old frontend folder and should not be around anyway
- web
coverage:
status:
default_rules:
informational: true
project:
default:
enabled: false
patch:
default:
enabled: true
comment:
behavior: 'once'
require_changes: true
flag_management:
default_rules:
carryforward: true
statuses:
- name_prefix: project-
type: project
target: auto
threshold: 1%
- name_prefix: patch-
type: patch
target: 90%
individual_flags: # exceptions to the default rules above, stated flag by flag
- name: formsort-ui-fe
paths:
- frontend/formsort-ui/src/**
carryforward: true
statuses:
- name_prefix: project-
type: project
target: 95%
- name_prefix: patch-
type: patch
target: 100%
- name: frontend
paths:
- frontend/**
carryforward: true
- name: web
# This flag is long gone, replaced by frontend and `*-fe` flags
carryforward: false
github_checks:
annotations: true