Before submitting a topic, please confirm the following
I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml
configuration file.
I have filled out the below sections to the best of my ability.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.
Description
Hello,
I’m using CodeCov to see our coverage on iOS swift project.
We’re able to execute our unit tests on Bitrise but when we push the report to CodeCov ignored folders/files are visible and reduce the coverage uselessly.
Codecov Output
gpg: directory '/Users/vagrant/.gnupg' created
gpg: keybox '/Users/vagrant/.gnupg/trustedkeys.gpg' created
gpg: /Users/vagrant/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB28AED779869: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpgv: can't allocate lock for '/Users/vagrant/.gnupg/trustedkeys.gpg'
gpgv: Signature made Thu Apr 20 16:45:56 2023 GMT
gpgv: using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpgv: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>"
codecov: OK
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 642 0 642 0 0 9023 0 --:--:-- --:--:-- --:--:-- 9582
"version":"v0.5.0"
[2023-05-25T14:47:24.368Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.5.0
[2023-05-25T14:47:24.410Z] ['info'] => Project root located at: /Users/vagrant/git
[2023-05-25T14:47:24.411Z] ['info'] -> Token found by environment variables
[2023-05-25T14:47:24.438Z] ['info'] Running xcode coversion...
[2023-05-25T14:49:51.210Z] ['info'] Searching for coverage files...
[2023-05-25T14:49:51.643Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-05-25T14:49:51.643Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2023-05-25T14:49:51.643Z] ['info'] => Found 1 possible coverage files:
coverage-report-Test-Staging.json
[2023-05-25T14:49:51.643Z] ['info'] Processing /Users/vagrant/git/coverage-report-Test-Staging.json...
[2023-05-25T14:49:51.659Z] ['info'] Using manual override from args.
[2023-05-25T14:49:51.660Z] ['info'] Detected Bitrise CI as the CI provider.
[2023-05-25T14:49:51.673Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=bitrise-step-3.2.0-uploader-0.5.0&token=*******&branch=feature%2FexcludeGeneratedFilesFromCodeCov&build=320&build_url=https%3A%2F%2Fapp.bitrise.io%2Fbuild%2F4c1b5205-e333-4833-8a5d-ddcaaf2de3d1&commit=263280c3c45cc271df5ba2db1abb9686db892e29&job=&pr=&service=bitrise&slug=kiplin%2Fapps%2Fkiplin-ios&name=&tag=&flags=&parent=
[2023-05-25T14:49:51.923Z] ['info'] https://app.codecov.io/gitlab/kiplin:apps/kiplin-ios/commit/263280c3c45cc271df5ba2db1abb9686db892e29
https://storage.googleapis.com/codecov/v4/raw/2023-05-25/B03BA07E09C37CBD480D36D8A1C2FF10/263280c3c45cc271df5ba2db1abb9686db892e29/d9859121-1cf4-4aff-a3d6-e7871749a0f1.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230525%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230525T144951Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=5967cb8d71db876b6e739c1de74c95c4bab5a475d81b0d3ad20987d68d6954ad
[2023-05-25T14:49:51.924Z] ['info'] Uploading...
[2023-05-25T14:49:52.137Z] ['info'] {"status":"success","resultURL":"https://app.codecov.io/gitlab/kiplin:apps/kiplin-ios/commit/263280c3c45cc271df5ba2db1abb9686db892e29"}
and the codecov.yml file :
ignore:
- "CoreCommon/CoreCommon/Resources/Strings/Localizable.swift"
- "**/Resources/**"
Expected Results
I expect the file Localizable.swift to be ignored in the report, and all the files within a “Resources” folder as well.
Actual Results
The file Localizable.swift is still in the code coverage report.
Additional Information
In similar topics, people speaks about the team-bot but I dont understand why it is needed (we do not have a team-bot at the moment).
Thank you,
Marvin