Before submitting a topic, please confirm the following
[ x] I have searched for similar issues before creating this topic.
[ x] I have verified that my repository is using the Codecov GitHub app, if using GitHub
[ x] I have validated my codecov.yaml
configuration file.
[ x] I have filled out the below sections to the best of my ability.
Description
We have fuzz tests in our repo and they generate some files in fuzzdata
directory during tests run. This dir and files inside have strict permissions, so codecov action can’t read them. I added this folder to ignore, however action still failing and I still see error about permissions in logs. I checked codecov.yaml and it’s valid. Enabling verbose
mode for action doesn’t bring more clarity where is the problem. I read all similar topics, but none of these solutions helped me.
Repository
Pull Request where I’m trying to fix the problem
CI/CD URL
We allow codecov action to fail, so run is green, however noting was uploaded.
Codecov Output
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (66cbf87269acc529c87f6ea29395ba329f528e92cfda4fc199eab460123e18b6 codecov)
==> Running version latest
==> Running version v0.2.5
/home/runner/work/_actions/percona-platform/codecov-action/v3/dist/codecov -n -Q github-action-3.1.0 -e GO_VERSION,PMM_SERVER_IMAGE -f managed/cover.out -F managed -C a040df076365df0f91c037b534c33edc50c670d8 -v
[2022-08-09T15:26:11.918Z] ['verbose'] Start of uploader: 1660058771918...
[2022-08-09T15:26:11.919Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.2.5
[2022-08-09T15:26:11.951Z] ['info'] => Project root located at: /home/runner/work/pmm/pmm
[2022-08-09T15:26:11.955Z] ['info'] -> No token specified or token is empty
[2022-08-09T15:26:11.955Z] ['verbose'] Start of network processing...
[2022-08-09T15:26:11.955Z] ['verbose'] Searching for files in /home/runner/work/pmm/pmm
[2022-08-09T15:26:11.966Z] ['verbose'] coveragepy is not installed
[2022-08-09T15:26:11.966Z] ['info'] Searching for coverage files...
[2022-08-09T15:26:12.037Z] ['error'] There was an error running the uploader: EACCES: permission denied, scandir '/home/runner/work/pmm/pmm/managed/services/grafana/fuzzdata'
[2022-08-09T15:26:12.038Z] ['verbose'] The error stack is: Error: EACCES: permission denied, scandir '/home/runner/work/pmm/pmm/managed/services/grafana/fuzzdata'
[2022-08-09T15:26:12.039Z] ['verbose'] End of uploader: 121 milliseconds
Expected Results
fuzzdata
directory ignored completely and coverage file uploaded sucessfully
Actual Results
codecov action failing with error There was an error running the uploader: EACCES: permission denied, scandir '/home/runner/work/pmm/pmm/managed/services/grafana/fuzzdata'
and no coverage uploaded.