codecov-action
codecov-action copied to clipboard
JavaScript heap out of memory
After upgrading to codecov-action@v2 it looks like we're hitting heap OOMs. The below log is from https://github.com/lightningdevkit/rust-lightning/runs/4478125642?check_suite_focus=true though the issues appear to be happening on a number of our builds. The relevant part of our CI Pipeline is at https://github.com/lightningdevkit/rust-lightning/blob/main/.github/workflows/build.yml#L142-L181, which is mostly cribbed from previous Rust examples from the codecov website.
Run codecov/codecov-action@v2
with:
token: f421b687-4dc2-4387-ac3d-dc3b2528af57
fail_ci_if_error: true
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (4a19a16d3e3ec6966b3499bb166e08fa2226e64acc68edd97060631b01cf3ee3 codecov)
==> Running version latest
==> Running version v0.1.9
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n -Q github-action-2.1.0 -Z -C 034efd5a2db40c62745c801f0c7c0b0a27e6119e
[2021-12-10T01:17:17.676Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.13
[2021-12-10T01:17:17.684Z] ['info'] => Project root located at: /home/runner/work/rust-lightning/rust-lightning
[2021-12-10T01:17:17.687Z] ['info'] -> Token found by environment variables
[2021-12-10T01:17:17.693Z] ['info'] Searching for coverage files...
[2021-12-10T01:17:17.926Z] ['info'] => Found 30 possible coverage files:
target/cov/lightning-f1642691d1d0c3dd/lightning-f1642691d1d0c3dd.f06faede/cobertura.xml
target/cov/lightning-f1642691d1d0c3dd/lightning-f1642691d1d0c3dd.f06faede/coverage.db
target/cov/lightning-f1642691d1d0c3dd/lightning-f1642691d1d0c3dd.f06faede/coverage.json
target/cov/lightning_background_processor-ccd2b3937f0b2aaf/lightning_background_processor-ccd2b3937f0b2aaf.92b3451c/cobertura.xml
target/cov/lightning_background_processor-ccd2b3937f0b2aaf/lightning_background_processor-ccd2b3937f0b2aaf.92b3451c/coverage.db
target/cov/lightning_background_processor-ccd2b3937f0b2aaf/lightning_background_processor-ccd2b3937f0b2aaf.92b3451c/coverage.json
target/cov/lightning_block_sync-1a329c18ec54b296/lightning_block_sync-1a329c18ec54b296.e080f698/cobertura.xml
target/cov/lightning_block_sync-1a329c18ec54b296/lightning_block_sync-1a329c18ec54b296.e080f698/coverage.db
target/cov/lightning_block_sync-1a329c18ec54b296/lightning_block_sync-1a329c18ec54b296.e080f698/coverage.json
target/cov/lightning_block_sync-6931090633c74927/lightning_block_sync-6931090633c74927.20faca75/cobertura.xml
target/cov/lightning_block_sync-6931090633c74927/lightning_block_sync-6931090633c74927.20faca75/coverage.db
target/cov/lightning_block_sync-6931090633c74927/lightning_block_sync-6931090633c74927.20faca75/coverage.json
target/cov/lightning_block_sync-6b684f1557ad20b9/lightning_block_sync-6b684f1557ad20b9.e518daee/cobertura.xml
target/cov/lightning_block_sync-6b684f1557ad20b9/lightning_block_sync-6b684f1557ad20b9.e518daee/coverage.db
target/cov/lightning_block_sync-6b684f1557ad20b9/lightning_block_sync-6b684f1557ad20b9.e518daee/coverage.json
target/cov/lightning_block_sync-908f8d69e6656240/lightning_block_sync-908f8d69e6656240.fb9c551f/cobertura.xml
target/cov/lightning_block_sync-908f8d69e6656240/lightning_block_sync-908f8d69e6656240.fb9c551f/coverage.db
target/cov/lightning_block_sync-908f8d69e6656240/lightning_block_sync-908f8d69e6656240.fb9c551f/coverage.json
target/cov/lightning_block_sync-c3191f0de6c2fce1/lightning_block_sync-c3191f0de6c2fce1.15ad37ba/cobertura.xml
target/cov/lightning_block_sync-c3191f0de6c2fce1/lightning_block_sync-c3191f0de6c2fce1.15ad37ba/coverage.db
target/cov/lightning_block_sync-c3191f0de6c2fce1/lightning_block_sync-c3191f0de6c2fce1.15ad37ba/coverage.json
target/cov/lightning_invoice-cbcdb7212c9da26f/lightning_invoice-cbcdb7212c9da26f.3048f83e/cobertura.xml
target/cov/lightning_invoice-cbcdb7212c9da26f/lightning_invoice-cbcdb7212c9da26f.3048f83e/coverage.db
target/cov/lightning_invoice-cbcdb7212c9da26f/lightning_invoice-cbcdb7212c9da26f.3048f83e/coverage.json
target/cov/lightning_net_tokio-d231d910a347f512/lightning_net_tokio-d231d910a347f512.2cdaec7c/cobertura.xml
target/cov/lightning_net_tokio-d231d910a347f512/lightning_net_tokio-d231d910a347f512.2cdaec7c/coverage.db
target/cov/lightning_net_tokio-d231d910a347f512/lightning_net_tokio-d231d910a347f512.2cdaec7c/coverage.json
target/cov/lightning_persister-0c452746fc03f633/lightning_persister-0c452746fc03f633.dbc0d20e/cobertura.xml
target/cov/lightning_persister-0c452746fc03f633/lightning_persister-0c452746fc03f633.dbc0d20e/coverage.db
target/cov/lightning_persister-0c452746fc03f633/lightning_persister-0c452746fc03f633.dbc0d20e/coverage.json
[2021-12-10T01:17:17.926Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning-f1642691d1d0c3dd/lightning-f1642691d1d0c3dd.f06faede/cobertura.xml...
[2021-12-10T01:17:17.936Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning-f1642691d1d0c3dd/lightning-f1642691d1d0c3dd.f06faede/coverage.db...
[2021-12-10T01:17:18.719Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning-f1642691d1d0c3dd/lightning-f1642691d1d0c3dd.f06faede/coverage.json...
[2021-12-10T01:17:18.720Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_background_processor-ccd2b3937f0b2aaf/lightning_background_processor-ccd2b3937f0b2aaf.92b3451c/cobertura.xml...
[2021-12-10T01:17:18.723Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_background_processor-ccd2b3937f0b2aaf/lightning_background_processor-ccd2b3937f0b2aaf.92b3451c/coverage.db...
[2021-12-10T01:17:18.868Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_background_processor-ccd2b3937f0b2aaf/lightning_background_processor-ccd2b3937f0b2aaf.92b3451c/coverage.json...
[2021-12-10T01:17:18.870Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-1a329c18ec54b296/lightning_block_sync-1a329c18ec54b296.e080f698/cobertura.xml...
[2021-12-10T01:17:18.872Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-1a329c18ec54b296/lightning_block_sync-1a329c18ec54b296.e080f698/coverage.db...
[2021-12-10T01:17:18.947Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-1a329c18ec54b296/lightning_block_sync-1a329c18ec54b296.e080f698/coverage.json...
[2021-12-10T01:17:18.948Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-6931090633c74927/lightning_block_sync-6931090633c74927.20faca75/cobertura.xml...
[2021-12-10T01:17:18.952Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-6931090633c74927/lightning_block_sync-6931090633c74927.20faca75/coverage.db...
[2021-12-10T01:17:19.062Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-6931090633c74927/lightning_block_sync-6931090633c74927.20faca75/coverage.json...
[2021-12-10T01:17:19.063Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-6b684f1557ad20b9/lightning_block_sync-6b684f1557ad20b9.e518daee/cobertura.xml...
[2021-12-10T01:17:19.065Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-6b684f1557ad20b9/lightning_block_sync-6b684f1557ad20b9.e518daee/coverage.db...
[2021-12-10T01:17:19.170Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-6b684f1557ad20b9/lightning_block_sync-6b684f1557ad20b9.e518daee/coverage.json...
[2021-12-10T01:17:19.171Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-908f8d69e6656240/lightning_block_sync-908f8d69e6656240.fb9c551f/cobertura.xml...
[2021-12-10T01:17:19.173Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-908f8d69e6656240/lightning_block_sync-908f8d69e6656240.fb9c551f/coverage.db...
[2021-12-10T01:17:19.276Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-908f8d69e6656240/lightning_block_sync-908f8d69e6656240.fb9c551f/coverage.json...
[2021-12-10T01:17:19.278Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-c3191f0de6c2fce1/lightning_block_sync-c3191f0de6c2fce1.15ad37ba/cobertura.xml...
[2021-12-10T01:17:19.280Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-c3191f0de6c2fce1/lightning_block_sync-c3191f0de6c2fce1.15ad37ba/coverage.db...
[2021-12-10T01:17:19.388Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_block_sync-c3191f0de6c2fce1/lightning_block_sync-c3191f0de6c2fce1.15ad37ba/coverage.json...
[2021-12-10T01:17:19.390Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_invoice-cbcdb7212c9da26f/lightning_invoice-cbcdb7212c9da26f.3048f83e/cobertura.xml...
[2021-12-10T01:17:19.392Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_invoice-cbcdb7212c9da26f/lightning_invoice-cbcdb7212c9da26f.3048f83e/coverage.db...
[2021-12-10T01:17:19.723Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_invoice-cbcdb7212c9da26f/lightning_invoice-cbcdb7212c9da26f.3048f83e/coverage.json...
[2021-12-10T01:17:19.725Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_net_tokio-d231d910a347f512/lightning_net_tokio-d231d910a347f512.2cdaec7c/cobertura.xml...
[2021-12-10T01:17:19.727Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_net_tokio-d231d910a347f512/lightning_net_tokio-d231d910a347f512.2cdaec7c/coverage.db...
[2021-12-10T01:17:19.825Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_net_tokio-d231d910a347f512/lightning_net_tokio-d231d910a347f512.2cdaec7c/coverage.json...
[2021-12-10T01:17:19.826Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_persister-0c452746fc03f633/lightning_persister-0c452746fc03f633.dbc0d20e/cobertura.xml...
[2021-12-10T01:17:19.828Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_persister-0c452746fc03f633/lightning_persister-0c452746fc03f633.dbc0d20e/coverage.db...
[2021-12-10T01:17:20.097Z] ['info'] Processing /home/runner/work/rust-lightning/rust-lightning/target/cov/lightning_persister-0c452746fc03f633/lightning_persister-0c452746fc03f633.dbc0d20e/coverage.json...
<--- Last few GCs --->
[16350:0x32ae180] 5133 ms: Mark-sweep (reduce) 2050.2 (2085.6) -> 2050.1 (2052.3) MB, 19.2 / 0.0 ms (+ 0.0 ms in 1 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 24 ms) (average mu = 0.990, current mu = 0.993) exte
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0x99c430 node::Abort() [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
2: 0x8c9630 node::FatalError(char const*, char const*) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
3: 0x1085e7e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
4: 0x1086126 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
5: 0x1259375 [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
6: 0x12691bf v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
7: 0x126bcc4 v8::internal::Heap::AllocateExternalBackingStore(std::function<void* (unsigned long)> const&, unsigned long) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
8: 0x13924b1 v8::internal::BackingStore::Allocate(v8::internal::Isolate*, unsigned long, v8::internal::SharedFlag, v8::internal::InitializedFlag) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
9: 0x10f25f2 [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
10: 0x10f2c25 [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
11: 0x10f2fa6 v8::internal::Builtin_ArrayBufferConstructor(int, unsigned long*, v8::internal::Isolate*) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
12: 0x199a699 [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov' failed with exit code null
I've the same "JavaScript heap out of memory" issue with a JavaScript/Jest project (https://github.com/tkrotoff/fetch):
Run codecov/codecov-action@v2
with:
files: coverage/clover.xml,examples/node/coverage/clover.xml,examples/web/coverage/clover.xml
fail_ci_if_error: true
verbose: true
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (3f724b412751ee8362535f73c54cf93b0d008ed59f3e333c1f0c8532978da297 codecov)
==> Running version latest
==> Running version v0.1.9
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n -Q github-action-2.1.0 -Z -f coverage/clover.xml -f examples/node/coverage/clover.xml -f examples/web/coverage/clover.xml -v
[2021-12-31T13:27:20.124Z] ['verbose'] Start of uploader: 1640957240124...
[2021-12-31T13:27:20.129Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.13
[2021-12-31T13:27:20.134Z] ['info'] => Project root located at: /home/runner/work/fetch/fetch
[2021-12-31T13:27:20.135Z] ['info'] -> No token specified or token is empty
[2021-12-31T13:27:20.135Z] ['verbose'] Start of network processing...
[2021-12-31T13:27:20.135Z] ['verbose'] Searching for files in /home/runner/work/fetch/fetch
[2021-12-31T13:27:20.141Z] ['info'] Searching for coverage files...
<--- Last few GCs --->
[5975:0x44c23e0] 828648 ms: Scavenge 1799.7 (2077.2) -> 1788.5 (2078.0) MB, 5.8 / 0.0 ms (average mu = 0.344, current mu = 0.331) task
[5975:0x44c23e0] 828716 ms: Scavenge 1800.8 (2078.5) -> 1790.0 (2079.2) MB, 6.1 / 0.0 ms (average mu = 0.344, current mu = 0.331) task
[5975:0x44c23e0] 828785 ms: Scavenge 1802.3 (2079.7) -> 1791.3 (2080.5) MB, 6.4 / 0.0 ms (average mu = 0.344, current mu = 0.331) task
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x99c430 node::Abort() [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
2: 0x8c9630 node::FatalError(char const*, char const*) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
3: 0x1085e7e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
4: 0x1086126 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
5: 0x1259375 [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
6: 0x125a0c8 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
7: 0x126867d v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
8: 0x1268fca v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
9: 0x12d78c4 v8::internal::ScavengeJob::Task::RunInternal() [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
10: 0xa13dd3 node::PerIsolatePlatformData::RunForegroundTask(std::unique_ptr<v8::Task, std::default_delete<v8::Task> >) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
11: 0xa14150 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
12: 0xb06015 [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
13: 0xb27fbf [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
14: 0x10757b8 [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
15: 0x8fc873 node::SpinEventLoop(node::Environment*) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
16: 0x9e8284 node::NodeMainInstance::Run(node::EnvSerializeInfo const*) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
17: 0x97166d node::Start(int, char**) [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
18: 0x7fe12d0690b3 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
19: 0x8ebfdc [/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov]
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov' failed with exit code null
I've tried with and without specifying files
(clover.xml, coverage/coverage-final.json) without luck.
When specifying directory
(why not multiple directories?) instead of files
it works:
Run codecov/[email protected]
with:
directory: ./coverage/
fail_ci_if_error: true
verbose: true
==> linux OS detected
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (3f724b412751ee8362535f73c54cf93b0d008ed59f3e333c1f0c8532978da297 codecov)
/home/runner/work/_actions/codecov/codecov-action/v2.0.3/dist/codecov -n -Q github-action-2.0.3 -Z -s ./coverage/ -v
[2022-01-01T14:05:53.510Z] ['verbose'] Start of uploader: 1641045953510...
[2022-01-01T14:05:53.515Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.13
[2022-01-01T14:05:53.521Z] ['info'] => Project root located at: /home/runner/work/fetch/fetch
[2022-01-01T14:05:53.524Z] ['info'] -> No token specified or token is empty
[2022-01-01T14:05:53.524Z] ['verbose'] Start of network processing...
[2022-01-01T14:05:53.524Z] ['verbose'] Searching for files in /home/runner/work/fetch/fetch
[2022-01-01T14:05:53.528Z] ['info'] Searching for coverage files...
[2022-01-01T14:05:53.546Z] ['verbose'] Preparing to clean the following coverage paths: clover.xml,coverage-final.json,lcov.info
[2022-01-01T14:05:53.553Z] ['info'] => Found 3 possible coverage files:
clover.xml
coverage-final.json
lcov.info
[2022-01-01T14:05:53.553Z] ['verbose'] End of network processing
[2022-01-01T14:05:53.554Z] ['info'] Processing coverage/clover.xml...
[2022-01-01T14:05:53.555Z] ['info'] Processing coverage/coverage-final.json...
[2022-01-01T14:05:53.556Z] ['info'] Processing coverage/lcov.info...
[2022-01-01T14:05:53.558Z] ['info'] Detected GitHub Actions as the CI provider.
...
[2022-01-01T14:05:54.260Z] ['verbose'] End of uploader: 750 milliseconds
Let's play with the underlying codecov-uploader locally under mac:
% curl -Os https://uploader.codecov.io/latest/macos/codecov
% chmod +x codecov
% ./codecov -d -v
[2022-01-01T14:02:14.719Z] ['verbose'] Start of uploader: 1641045734719...
[2022-01-01T14:02:14.723Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.13
[2022-01-01T14:02:14.739Z] ['info'] => Project root located at: /Users/tanguy/dev/fetch
[2022-01-01T14:02:14.740Z] ['info'] -> No token specified or token is empty
[2022-01-01T14:02:14.740Z] ['verbose'] Start of network processing...
[2022-01-01T14:02:14.740Z] ['verbose'] Searching for files in /Users/tanguy/dev/fetch
[2022-01-01T14:02:14.763Z] ['info'] Searching for coverage files...
Gets stuck on "Searching for coverage files..."
With 0.1.14 (why is it not the latest version?) it works:
% curl -Os https://uploader.codecov.io/v0.1.14/macos/codecov
% chmod +x codecov
% ./codecov -d -v
[2022-01-01T14:07:34.960Z] ['verbose'] Start of uploader: 1641046054960...
[2022-01-01T14:07:34.964Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.1.14
[2022-01-01T14:07:34.985Z] ['info'] => Project root located at: /Users/tanguy/dev/fetch
[2022-01-01T14:07:34.988Z] ['info'] -> No token specified or token is empty
[2022-01-01T14:07:34.988Z] ['verbose'] Start of network processing...
[2022-01-01T14:07:34.988Z] ['verbose'] Searching for files in /Users/tanguy/dev/fetch
[2022-01-01T14:07:35.005Z] ['info'] Searching for coverage files...
[2022-01-01T14:07:35.032Z] ['verbose'] Preparing to clean the following coverage paths: coverage/clover.xml,coverage/coverage-final.json,coverage/lcov.info,examples/node/coverage/clover.xml,examples/node/coverage/coverage-final.json,examples/node/coverage/lcov.info,examples/web/coverage/clover.xml,examples/web/coverage/coverage-final.json,examples/web/coverage/lcov.info
[2022-01-01T14:07:35.045Z] ['info'] => Found 9 possible coverage files:
...
[2022-01-01T14:07:35.112Z] ['verbose'] End of uploader: 152 milliseconds
Ok, back to codecov-action and let's specify version 0.1.14 for codecov-uploader instead of latest (0.1.13):
Warning: Unexpected input(s) 'version', valid inputs are ['token', 'files', 'directory', 'flags', 'commit_parent', 'dry_run', 'env_vars', 'fail_ci_if_error', 'file', 'functionalities', 'move_coverage_to_trash', 'name', 'override_branch', 'override_build', 'override_commit', 'override_pr', 'override_tag', 'os', 'root_dir', 'slug', 'url', 'verbose', 'working-directory']
Run codecov/[email protected]
with:
files: coverage/clover.xml,examples/node/coverage/clover.xml,examples/web/coverage/clover.xml
fail_ci_if_error: true
verbose: true
version: 0.1.14
...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
version
argument is not recognized although it's documented.
btw I don't see the need for codecov-action:
- name: Upload coverage to Codecov
run: |
curl --remote-name https://uploader.codecov.io/v0.1.14/linux/codecov
chmod +x codecov
./codecov --file coverage/coverage-final.json --file examples/node/coverage/coverage-final.json --file examples/web/coverage/coverage-final.json
The Codecov uploader binary is far enough.
Same issue here https://github.com/getsentry/sentry-dart/runs/6423509659?check_suite_focus=true
In my case:
functionalities: "search"
setting on the GH action did the trick.
Seeing the same issue. The codecov-action takes over 30 minutes (!) to run and then runs out of memory on 2GB heap space. The coverage_report.dat file it is tasked to upload is less than 100kB large. run: https://github.com/firedancer-io/firedancer/actions/runs/4145860835/jobs/7170791679 Would be great to expedite this as codecov-action is unusable in its current state.
@ripatel-jump and anyone else, please open a topic on our community boards. I likely need some more details in order to try to fix this for you if functionalities: "search"
isn't working