From e9b68e13f6a15d1e0b594e1c5b562e5f1df8135b Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Mon, 12 Jan 2026 10:58:32 +0100 Subject: [PATCH 1/2] Run unit-tests instead of consumer-tests Currently consumer-tests are run when the documentation is build. This is not needed as the consumer tests are executed seperatly as well, and the normal build should execute the unit-tests instead. Closes: #328 --- .github/workflows/test_and_docs.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_and_docs.yml b/.github/workflows/test_and_docs.yml index 542bc6da9..9dbf763f9 100644 --- a/.github/workflows/test_and_docs.yml +++ b/.github/workflows/test_and_docs.yml @@ -38,13 +38,13 @@ jobs: bazel-docs-verify-target: "//:docs_check" # This is the user configurable part of the workflow - consumer-tests: - uses: ./.github/workflows/consumer_test.yml + unit-tests: + uses: ./.github/workflows/test.yml secrets: inherit docs-build: # Waits for consumer-tests but run only when docs verification succeeded - needs: [docs-verify, consumer-tests] + needs: [docs-verify, unit-tests] if: ${{ always() && needs.docs-verify.result == 'success' }} uses: eclipse-score/cicd-workflows/.github/workflows/docs.yml@main permissions: @@ -55,4 +55,3 @@ jobs: with: bazel-target: "//:docs -- --github_user=${{ github.repository_owner }} --github_repo=${{ github.event.repository.name }}" retention-days: 3 - tests-report-artifact: tests-report From d6208bc11edcae057604b5a1acb4567114c9774f Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Tue, 13 Jan 2026 11:05:41 +0100 Subject: [PATCH 2/2] Run unit-tests instead of Consumer-Tests --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ .github/workflows/test_and_docs.yml | 1 + 2 files changed, 23 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31ea1171d..cb2628064 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,7 @@ name: Run Bazel Tests on: pull_request: types: [opened, reopened, synchronize] + workflow_call: jobs: code: runs-on: ubuntu-latest @@ -39,3 +40,24 @@ jobs: run: | bazel run //:ide_support bazel test //src/... + + - name: Prepare bundled consumer report + if: always() + run: | + # 1. Create the target directory + mkdir -p tests-report + + # 2. Sync the testlogs to our artifact folder + # We use -L to follow the symlink and --include filters + # to only grab the actual results (XMLs and Logs) + rsync -amL --include='*/' --include='test.xml' --include='test.log' --exclude='*' bazel-testlogs/ tests-report/ + + # 3. Optional: If your tool prefers the folder name to match the Consumer Tests + # you can rename specific subfolders here, but rsync preserves the package paths. + + - name: Upload bundled consumer report + if: always() + uses: actions/upload-artifact@v4 + with: + name: tests-report + path: tests-report diff --git a/.github/workflows/test_and_docs.yml b/.github/workflows/test_and_docs.yml index 9dbf763f9..c52438950 100644 --- a/.github/workflows/test_and_docs.yml +++ b/.github/workflows/test_and_docs.yml @@ -55,3 +55,4 @@ jobs: with: bazel-target: "//:docs -- --github_user=${{ github.repository_owner }} --github_repo=${{ github.event.repository.name }}" retention-days: 3 + tests-report-artifact: tests-report