Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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++
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_and_test_autosd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ on:

jobs:
build:
if: false
name: x86_64
runs-on: ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_and_test_ebclfsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- main
jobs:
build:
if: false
name: aarch64
runs-on: ubuntu-latest
container:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_and_test_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:
- main
jobs:
x86_64:
if: false
runs-on: ubuntu-latest
permissions:
contents: write # required to upload release assets
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql-multiple-repo-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ permissions:

jobs:
analyze-repos:
if: false
name: Analyze Multiple Repositories
runs-on: ubuntu-latest
permissions:
Expand Down
118 changes: 118 additions & 0 deletions .github/workflows/test_and_docs_tracing.yml
Original file line number Diff line number Diff line change
@@ -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/






5 changes: 2 additions & 3 deletions bazel_common/score_modules_tooling.MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion docs/verification/coverage_summary.md
Original file line number Diff line number Diff line change
@@ -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 | | | |
4 changes: 3 additions & 1 deletion docs/verification/unit_test_summary.md
Original file line number Diff line number Diff line change
@@ -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 |
2 changes: 1 addition & 1 deletion scripts/quality_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading