diff --git a/.bazelrc b/.bazelrc index d06421f2e6..4086cfe99c 100644 --- a/.bazelrc +++ b/.bazelrc @@ -6,7 +6,7 @@ common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry common --registry=https://bcr.bazel.build common --credential_helper=*.qnx.com=%workspace%/.github/tools/qnx_credential_helper.py common --credential_helper_timeout="60s" - +common --disk_cache=~/.cache/bazel-disk # Java build --java_language_version=17 build --tool_java_language_version=17 @@ -67,7 +67,7 @@ build:ferrocene-coverage --@rules_rust//rust/settings:extra_exec_rustc_flag=-Cde test:ferrocene-coverage --run_under=@score_tooling//coverage:llvm_profile_wrapper test:unit-tests --config=linux-x86_64 -test:unit-tests --build_tests_only +# test:unit-tests --nobuild_tests_only test:unit-tests --test_tag_filters=-manual # Coverage configuration for C++ diff --git a/.github/workflows/build_and_test_autosd.yml b/.github/workflows/build_and_test_autosd.yml index 9ba9f347ca..dae714f541 100644 --- a/.github/workflows/build_and_test_autosd.yml +++ b/.github/workflows/build_and_test_autosd.yml @@ -26,6 +26,7 @@ on: jobs: build: + if: false name: x86_64 runs-on: ubuntu-latest diff --git a/.github/workflows/build_and_test_ebclfsa.yml b/.github/workflows/build_and_test_ebclfsa.yml index 46c7f98661..3d3fc3eb8f 100644 --- a/.github/workflows/build_and_test_ebclfsa.yml +++ b/.github/workflows/build_and_test_ebclfsa.yml @@ -24,6 +24,7 @@ on: - main jobs: build: + if: false name: aarch64 runs-on: ubuntu-latest container: diff --git a/.github/workflows/build_and_test_linux.yml b/.github/workflows/build_and_test_linux.yml index 09c9802112..1ce1d2f25c 100644 --- a/.github/workflows/build_and_test_linux.yml +++ b/.github/workflows/build_and_test_linux.yml @@ -22,6 +22,7 @@ on: - main jobs: x86_64: + if: false runs-on: ubuntu-latest permissions: contents: write # required to upload release assets diff --git a/.github/workflows/codeql-multiple-repo-scan.yml b/.github/workflows/codeql-multiple-repo-scan.yml index c23e71b83f..17ad0fe6c4 100644 --- a/.github/workflows/codeql-multiple-repo-scan.yml +++ b/.github/workflows/codeql-multiple-repo-scan.yml @@ -30,6 +30,7 @@ permissions: jobs: analyze-repos: + if: false name: Analyze Multiple Repositories runs-on: ubuntu-latest permissions: diff --git a/.github/workflows/test_and_docs_tracing.yml b/.github/workflows/test_and_docs_tracing.yml new file mode 100644 index 0000000000..50499be61c --- /dev/null +++ b/.github/workflows/test_and_docs_tracing.yml @@ -0,0 +1,118 @@ +# ******************************************************************************* +# Copyright (c) 2025 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + +name: Pawel Testing + +permissions: + contents: write + pages: write + pull-requests: write + id-token: write + +on: + pull_request: # Allows forks to trigger the docs build + types: [opened, reopened, synchronize] + +jobs: + test_and_docs: + runs-on: ubuntu-22.04 + permissions: + contents: write # required to upload release assets + pull-requests: write + + steps: + - name: Clean disk space + uses: eclipse-score/more-disk-space@v1 + - name: Install lcov + run: | + sudo apt-get update + sudo apt-get install -y lcov + sudo apt-get install -y tree + + - name: Inspector1 + run: | + pwd + ls -la + + - name: Inspect Bazel caches + if: always() + run: | + for cache in ~/.cache/bazelisk ~/.cache/bazel-disk-cache ~/.cache/bazel-repo-cache; do + echo "=== $cache ===" + du -sh "$cache" 2>/dev/null && find "$cache" -maxdepth 2 | head -20 || echo "MISSING" + done + + ls -la /home/runner/.bazel/external || true + + + - name: Setup Bazel + uses: bazel-contrib/setup-bazel@0.18.0 + with: + bazelisk-cache: true + disk-cache: tracing-cache-do-not-use + repository-cache: true + cache-save: true + external-cache: true + - name: Inspect Bazel caches + if: always() + run: | + echo $(pwd) + for cache in ~/.cache/bazelisk ~/.cache/bazel-disk-cache ~/.cache/bazel-repo-cache; do + echo "=== $cache ===" + du -sh "$cache" 2>/dev/null && find "$cache" -maxdepth 2 | head -20 || echo "MISSING" + done + + ls -la /home/runner/.bazel/external || true + + - name: Set up Python 3 + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Checkout repository (pull_request_target via workflow_call) + if: ${{ github.event_name == 'pull_request_target' }} + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} + + - name: Checkout repository + if: ${{ github.event_name != 'pull_request_target' }} + uses: actions/checkout@v4 + + - name: Inspector3 + run: | + ls -la + + - name: Execute Unit Tests with Coverage Analysis + run: | + + cat ~/.bazelrc || echo "No bazelrc found" + + echo "BEFORE INGO" + ls -la /home/runner/.bazel/external || true + bazel info + OUTPUT_BASE=$(bazel info output_base 2>/dev/null) + echo "=== external ($OUTPUT_BASE/external) ===" + # tree $OUTPUT_BASE/external + + python ./scripts/quality_runners.py --modules-to-test score_logging + + # echo "tree after run" + tree bazel-out/k8-fastbuild/bin/external/ + + + + + + \ No newline at end of file diff --git a/bazel_common/score_modules_tooling.MODULE.bazel b/bazel_common/score_modules_tooling.MODULE.bazel index 296c8af352..706b4e144a 100644 --- a/bazel_common/score_modules_tooling.MODULE.bazel +++ b/bazel_common/score_modules_tooling.MODULE.bazel @@ -27,11 +27,10 @@ single_version_override( ) bazel_dep(name = "score_tooling") -single_version_override( +local_path_override( module_name = "score_tooling", - version = "1.1.2", + path = "../tooling", ) - bazel_dep(name = "score_platform") git_override( module_name = "score_platform", diff --git a/docs/verification/coverage_summary.md b/docs/verification/coverage_summary.md index 36c88db16b..58f986b092 100644 --- a/docs/verification/coverage_summary.md +++ b/docs/verification/coverage_summary.md @@ -1,3 +1,6 @@ # Coverage Analysis Summary -## Template for a table with Coverage execution summary +| module | lines | functions | branches | +| --- | --- | --- | --- | +| score_logging_cpp | | | | +| score_logging_rust | | | | diff --git a/docs/verification/unit_test_summary.md b/docs/verification/unit_test_summary.md index 05361c5a45..6793520aa9 100644 --- a/docs/verification/unit_test_summary.md +++ b/docs/verification/unit_test_summary.md @@ -1,3 +1,5 @@ # Unit Test Execution Summary -## Template for a table with Unit Test execution summary +| module | passed | failed | skipped | total | +| --- | --- | --- | --- | --- | +| score_logging | 576 | 0 | 0 | 576 | diff --git a/scripts/quality_runners.py b/scripts/quality_runners.py index 2f37818ce0..720a38c4ff 100644 --- a/scripts/quality_runners.py +++ b/scripts/quality_runners.py @@ -28,7 +28,7 @@ def run_unit_test_with_coverage(module: Module) -> dict[str, str | int]: call = ( [ "bazel", - "coverage", # Call coverage instead of test to get .dat files already + "test", # Call coverage instead of test to get .dat files already "--test_verbose_timeout_warnings", "--test_timeout=1200", "--config=unit-tests",