From 0a483d95547b6ffbd24ae8e3da0ec2ad87108e39 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 4 Nov 2025 10:14:38 +0100 Subject: [PATCH 1/2] fix: CI should not rely on external resources > Retrokits-RK002:arm@1.0.6 0 B / ? 0.00% > Retrokits-RK002:arm@1.0.6 Server responded with: 403 Forbidden > Error during install: Server responded with: 403 Forbidden > ESC[90m<<< Run completed (err = exit status 1)ESC[0m > core_test.go:832: > Error Trace: /home/runner/work/arduino-cli/arduino-cli/internal/integrationtest/core/core_test.go:832 > Error: Received unexpected error: > exit status 1 > Test: TestCoreListSortedResults > --- FAIL: TestCoreListSortedResults (3.76s) --- internal/integrationtest/core/core_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/integrationtest/core/core_test.go b/internal/integrationtest/core/core_test.go index a27b5f6d15a..8644070886e 100644 --- a/internal/integrationtest/core/core_test.go +++ b/internal/integrationtest/core/core_test.go @@ -828,7 +828,7 @@ func TestCoreListSortedResults(t *testing.T) { require.NoError(t, err) // install some core for testing - _, _, err = cli.Run("core", "install", "test:x86@2.0.0", "Retrokits-RK002:arm", "Package:x86", "--additional-urls="+url.String()) + _, _, err = cli.Run("core", "install", "test:x86@2.0.0", "arduino:samd", "Package:x86", "--additional-urls="+url.String()) require.NoError(t, err) // list all with additional url specified From 64a6afba14434cdc2b5dd1ac36e7a7b4ddaa8463 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 4 Nov 2025 12:01:20 +0100 Subject: [PATCH 2/2] Workaround for codevcov uploader bug There is a bug in the codecov uploader that makes it fail when there are broken symlinks in the repository. We must keep this workaround until the bug is fixed: https://github.com/codecov/codecov-action/issues/1890 --- .github/workflows/test-go-task.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test-go-task.yml b/.github/workflows/test-go-task.yml index afa47f680ad..3778aa23c1e 100644 --- a/.github/workflows/test-go-task.yml +++ b/.github/workflows/test-go-task.yml @@ -204,6 +204,13 @@ jobs: fi echo "CODECOV_TOKEN=$CODECOV_TOKEN" >> "$GITHUB_ENV" + # There is a bug in the codecov uploader that makes it fail when there are broken symlinks in the repository. + # We must keep this workaround until the bug is fixed: https://github.com/codecov/codecov-action/issues/1890 + - name: Workaround for codecov uploader bug + run: | + rm internal/integrationtest/compile_4/testdata/ValidSketchWithNonInoBrokenSketchFileSymlink/other_file.c + touch internal/integrationtest/compile_4/testdata/ValidSketchWithNonInoBrokenSketchFileSymlink/other_file.c + - name: Send unit tests coverage to Codecov uses: codecov/codecov-action@v5 with: