Skip to content

Commit c2f10ce

Browse files
committed
CI: tune codecov setup for nightly builds
codecov runs out of memory. Increase Node's max heapsize in the hope this is enough. Signed-off-by: Daniel Wagner <wagi@kernel.org>
1 parent ab41639 commit c2f10ce

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/run-nightly-tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,16 @@ jobs:
8787
blktests_status=$?
8888
set -e
8989
90-
cd nvme-cli
90+
cd ../nvme-cli
9191
gcovr -r . --object-directory .build-ci --xml-pretty -o coverage.xml
92+
9293
CODECOV_VERSION="v0.8.0"
9394
curl -Os "https://uploader.codecov.io/${CODECOV_VERSION}/linux/codecov"
9495
chmod +x codecov
95-
(cd nvme-cli && ../codecov -t "${{ secrets.CODECOV_TOKEN }}" -f coverage.xml) || true
96+
NODE_OPTIONS="--max-old-space-size=4096" ./codecov -t "${{ secrets.CODECOV_TOKEN }}" -f coverage.xml -X search || true
97+
9698
exit "${blktests_status}"
99+
97100
- name: Run nvme-cli tests in VM
98101
if: success() || steps.blktests.conclusion == 'failure'
99102
uses: ./.github/actions/kubevirt-action
@@ -131,7 +134,8 @@ jobs:
131134
CODECOV_VERSION="v0.8.0"
132135
curl -Os "https://uploader.codecov.io/${CODECOV_VERSION}/linux/codecov"
133136
chmod +x codecov
134-
./codecov -t "$CODECOV_TOKEN" -f coverage.xml || true
137+
NODE_OPTIONS="--max-old-space-size=4096" ./codecov -t "$CODECOV_TOKEN" -f coverage.xml -X search || true
138+
135139
EOF
136140
137141
sudo chmod +x test.sh
@@ -148,7 +152,7 @@ jobs:
148152
sudo podman run --privileged \
149153
-v /dev:/dev \
150154
-e BDEV0 \
151-
-e CODECOV_TOKEN \
155+
-e CODECOV_TOKEN="${CODECOV_TOKEN}" \
152156
-v "${PWD}/test.sh":"/test.sh" \
153157
-v "${PWD}/nvme-cli":"/nvme-cli":z \
154158
ghcr.io/linux-nvme/debian:latest /test.sh

0 commit comments

Comments
 (0)