From 4d75f4c256005612b66805513c5286da7e79a1c7 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Oct 2026 01:05:04 +0000 Subject: [PATCH 1/2] ci: Skip Codecov upload when the uploader download fails A Codecov outage (curl exit 35) failed unit_tests-latest before any tests ran. Download with -f and continue; upload only if the binary exists. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01QDVmN5NNnPCy3tAPkwgWpT --- .circleci/config.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3054a37e5956..c878e421ebd5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -249,13 +249,14 @@ jobs: elif [ "<< parameters.react-version >>" == "19.3" ]; then yarn test:ci --maxWorkers=4 --selectProjects ReactDOM --testPathPatterns 'packages/react/src/__tests__/concurrent-.*\.web\.tsx' 'packages/react/src/hooks/__tests__/useCacheState.web.tsx' else - curl -Os https://uploader.codecov.io/latest/linux/codecov; - chmod +x codecov; + curl -fsSO https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov || echo "Codecov uploader download failed; skipping coverage upload"; yarn run test:coverage --ci --maxWorkers=4 --selectProjects ReactDOM Node --coverageReporters=text-lcov > ./lcov.info; - if [ "$CODECOV_TOKEN" != "" ]; then - ./codecov -t ${CODECOV_TOKEN} < ./lcov.info || true; - else - ./codecov < ./lcov.info || true; + if [ -x ./codecov ]; then + if [ "$CODECOV_TOKEN" != "" ]; then + ./codecov -t ${CODECOV_TOKEN} < ./lcov.info || true; + else + ./codecov < ./lcov.info || true; + fi fi fi From 0a517068e15b4c790b9f98c94253d652f3211da8 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Oct 2026 01:06:17 +0000 Subject: [PATCH 2/2] ci: Time out the Codecov uploader download Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01QDVmN5NNnPCy3tAPkwgWpT --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c878e421ebd5..6a98ee7dcc55 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -249,7 +249,7 @@ jobs: elif [ "<< parameters.react-version >>" == "19.3" ]; then yarn test:ci --maxWorkers=4 --selectProjects ReactDOM --testPathPatterns 'packages/react/src/__tests__/concurrent-.*\.web\.tsx' 'packages/react/src/hooks/__tests__/useCacheState.web.tsx' else - curl -fsSO https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov || echo "Codecov uploader download failed; skipping coverage upload"; + curl -fsSO --connect-timeout 10 --max-time 60 https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov || echo "Codecov uploader download failed; skipping coverage upload"; yarn run test:coverage --ci --maxWorkers=4 --selectProjects ReactDOM Node --coverageReporters=text-lcov > ./lcov.info; if [ -x ./codecov ]; then if [ "$CODECOV_TOKEN" != "" ]; then