Error uploading to https://codecov.io

Description

Failed to upload files to codecov.io due to invalid request parameters

CI/CD URL

https://github.com/pmem/pmemstream/blob/master/codecov.yml

(codecov is dowloaded in pmemstream/utils/docker/images/download-scripts.sh and used in pmemstream/utils/docker/prepare-for-build.sh)

Codecov Output

COVERAGE upload_codecov START

[2022-05-13T10:27:57.273Z] [‘verbose’] Start of uploader: 1652437677273…

[2022-05-13T10:27:57.275Z] [‘info’]

Codecov report uploader 0.2.2

[2022-05-13T10:27:57.276Z] [‘info’] => Project root located at: .

[2022-05-13T10:27:57.278Z] [‘info’] → No token specified or token is empty

[2022-05-13T10:27:57.278Z] [‘verbose’] Start of network processing…

[2022-05-13T10:27:57.278Z] [‘verbose’] Searching for files in .

[2022-05-13T10:27:57.284Z] [‘verbose’] Running gcov…

[2022-05-13T10:27:58.766Z] [‘verbose’] File ‘/pmemstream/src/id_manager.c’

Lines executed:88.89% of 72

No branches

No calls

Creating ‘#pmemstream#src#id_manager.c.gcov’

File ‘/pmemstream/src/iterator.c’

Lines executed:97.32% of 112

No branches

No calls

Creating ‘#pmemstream#src#iterator.c.gcov’

File ‘/pmemstream/src/libpmemstream_internal.h’

Lines executed:100.00% of 9

No branches

No calls

Creating ‘#pmemstream#src#libpmemstream_internal.h.gcov’

.
.
.

Creating ‘#pmemstream#src#critnib#pmdk-compat.h.gcov’

File ‘/pmemstream/src/region_allocator/region_allocator.c’

Lines executed:95.71% of 70

Branches executed:79.28% of 444

Taken at least once:52.48% of 444

Calls executed:75.97% of 154

Creating ‘#pmemstream#src#region_allocator#region_allocator.c.gcov’

[2022-05-13T10:27:58.770Z] [‘verbose’] coveragepy is not installed

[2022-05-13T10:27:58.770Z] [‘info’] Searching for coverage files…

[2022-05-13T10:27:58.897Z] [‘info’] Warning: Some files located via search were excluded from upload.

[2022-05-13T10:27:58.897Z] [‘info’] If Codecov did not locate your files, please review Supported Coverage Report Formats

[2022-05-13T10:27:58.899Z] [‘info’] => Found 179 possible coverage files:

#pmemstream#examples#01_basic_iterate#main.c.gcov

#pmemstream#examples#02_visual_iterator#main.cpp.gcov

#pmemstream#examples#03_reserve_publish#main.cpp.gcov

.
.
.

[2022-05-13T10:27:58.899Z] [‘verbose’] End of network processing

[2022-05-13T10:27:58.899Z] [‘info’] Processing #pmemstream#examples#01_basic_iterate#main.c.gcov…

[2022-05-13T10:27:58.911Z] [‘info’] Processing #pmemstream#examples#02_visual_iterator#main.cpp.gcov…

[2022-05-13T10:27:58.912Z] [‘info’] Processing #pmemstream#examples#03_reserve_publish#main.cpp.gcov…

.
.
.

[2022-05-13T10:27:59.675Z] [‘info’] Detected GitHub Actions as the CI provider.

[2022-05-13T10:27:59.675Z] [‘verbose’] → Using the following env variables:

[2022-05-13T10:27:59.675Z] [‘verbose’] GITHUB_ACTION: undefined

[2022-05-13T10:27:59.675Z] [‘verbose’] GITHUB_HEAD_REF: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_REF: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_REPOSITORY: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_RUN_ID: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_SERVER_URL: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_SHA: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_WORKFLOW: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] Using the following upload parameters:

[2022-05-13T10:27:59.677Z] [‘verbose’] branch

[2022-05-13T10:27:59.677Z] [‘verbose’] build

[2022-05-13T10:27:59.677Z] [‘verbose’] buildURL

[2022-05-13T10:27:59.677Z] [‘verbose’] commit

[2022-05-13T10:27:59.677Z] [‘verbose’] job

[2022-05-13T10:27:59.677Z] [‘verbose’] pr

[2022-05-13T10:27:59.677Z] [‘verbose’] service

[2022-05-13T10:27:59.677Z] [‘verbose’] slug

[2022-05-13T10:27:59.677Z] [‘verbose’] name

[2022-05-13T10:27:59.677Z] [‘verbose’] tag

[2022-05-13T10:27:59.677Z] [‘verbose’] flags

[2022-05-13T10:27:59.677Z] [‘verbose’] parent

[2022-05-13T10:27:59.679Z] [‘info’] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.2.2&token=*******&branch=&build=&build_url=undefined%2F%2Factions%2Fruns%2F&commit=&job=&pr=&service=github-actions&slug=&name=&tag=&flags=tests_gcc_debug_cpp17&parent=

[2022-05-13T10:27:59.679Z] [‘verbose’] Passed token was 0 characters long

[2022-05-13T10:27:59.679Z] [‘verbose’] https://codecov.io/upload/v4?package=uploader-0.2.2&branch=&build=&build_url=undefined%2F%2Factions%2Fruns%2F&commit=&job=&pr=&service=github-actions&slug=&name=&tag=&flags=tests_gcc_debug_cpp17&parent=

Content-Type: ‘text/plain’

Content-Encoding: ‘gzip’

X-Reduced-Redundancy: ‘false’

[sudo] password for user: [sudo] password for user: [sudo] password for user: [sudo] password for user: [2022-05-13T10:27:59.878Z] [‘error’] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 400 - Bad Request - Invalid request parameters

[2022-05-13T10:27:59.878Z] [‘verbose’] The error stack is: Error: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 400 - Bad Request - Invalid request parameters

at main (/snapshot/repo/dist/src/index.js)

at processTicksAndRejections (node:internal/process/task_queues:96:5)

[2022-05-13T10:27:59.878Z] [‘verbose’] End of uploader: 2605 milliseconds

Error: Process completed with exit code 255.

Expected Results

Coverage reports to be uploaded to Codecov

Actual Results

[‘error’] There was an error running the uploader: Error uploading to https://codecov.io:
Error: There was an error fetching the storage URL during POST:
400 - Bad Request - Invalid request parameters
[2022-05-13T10:27:59.878Z] [‘verbose’] The error stack is: Error: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 400 - Bad Request - Invalid request parameters
at main (/snapshot/repo/dist/src/index.js)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

@Karolina002 are you running this in a docker container? I see that all the GitHub Actions variables are coming in as undefined

[2022-05-13T10:27:59.675Z] [‘verbose’] → Using the following env variables:

[2022-05-13T10:27:59.675Z] [‘verbose’] GITHUB_ACTION: undefined

[2022-05-13T10:27:59.675Z] [‘verbose’] GITHUB_HEAD_REF: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_REF: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_REPOSITORY: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_RUN_ID: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_SERVER_URL: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_SHA: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_WORKFLOW: undefined

@tom thank you for your help, it solves the problem

1 Like