Skip to content

Commit 36405d7

Browse files
committed
Trace cache issues
1 parent 112fd5e commit 36405d7

8 files changed

Lines changed: 127 additions & 3 deletions

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry
66
common --registry=https://bcr.bazel.build
77
common --credential_helper=*.qnx.com=%workspace%/.github/tools/qnx_credential_helper.py
88
common --credential_helper_timeout="60s"
9-
9+
common --disk_cache=~/.cache/bazel-disk
1010
# Java
1111
build --java_language_version=17
1212
build --tool_java_language_version=17

.github/workflows/build_and_test_autosd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ on:
2626

2727
jobs:
2828
build:
29+
if: false
2930
name: x86_64
3031
runs-on: ubuntu-latest
3132

.github/workflows/build_and_test_ebclfsa.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424
- main
2525
jobs:
2626
build:
27+
if: false
2728
name: aarch64
2829
runs-on: ubuntu-latest
2930
container:

.github/workflows/build_and_test_linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
- main
2323
jobs:
2424
x86_64:
25+
if: false
2526
runs-on: ubuntu-latest
2627
permissions:
2728
contents: write # required to upload release assets

.github/workflows/codeql-multiple-repo-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ permissions:
3030

3131
jobs:
3232
analyze-repos:
33+
if: false
3334
name: Analyze Multiple Repositories
3435
runs-on: ubuntu-latest
3536
permissions:
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
14+
name: Pawel Testing
15+
16+
permissions:
17+
contents: write
18+
pages: write
19+
pull-requests: write
20+
id-token: write
21+
22+
on:
23+
pull_request: # Allows forks to trigger the docs build
24+
types: [opened, reopened, synchronize]
25+
26+
jobs:
27+
test_and_docs:
28+
runs-on: ubuntu-22.04
29+
permissions:
30+
contents: write # required to upload release assets
31+
pull-requests: write
32+
33+
steps:
34+
- name: Clean disk space
35+
uses: eclipse-score/more-disk-space@v1
36+
- name: Install lcov
37+
run: |
38+
sudo apt-get update
39+
sudo apt-get install -y lcov
40+
sudo apt-get install -y tree
41+
42+
- name: Inspector1
43+
run: |
44+
pwd
45+
ls -la
46+
47+
- name: Inspect Bazel caches
48+
if: always()
49+
run: |
50+
for cache in ~/.cache/bazelisk ~/.cache/bazel-disk-cache ~/.cache/bazel-repo-cache; do
51+
echo "=== $cache ==="
52+
du -sh "$cache" 2>/dev/null && find "$cache" -maxdepth 2 | head -20 || echo "MISSING"
53+
done
54+
55+
ls -la /home/runner/.bazel/external || true
56+
57+
58+
- name: Setup Bazel
59+
uses: bazel-contrib/setup-bazel@0.18.0
60+
with:
61+
bazelisk-cache: true
62+
disk-cache: tracing-cache-do-not-use
63+
repository-cache: true
64+
cache-save: true
65+
external-cache: true
66+
- name: Inspect Bazel caches
67+
if: always()
68+
run: |
69+
echo $(pwd)
70+
for cache in ~/.cache/bazelisk ~/.cache/bazel-disk-cache ~/.cache/bazel-repo-cache; do
71+
echo "=== $cache ==="
72+
du -sh "$cache" 2>/dev/null && find "$cache" -maxdepth 2 | head -20 || echo "MISSING"
73+
done
74+
75+
ls -la /home/runner/.bazel/external || true
76+
77+
- name: Set up Python 3
78+
uses: actions/setup-python@v5
79+
with:
80+
python-version: '3.12'
81+
82+
- name: Checkout repository (pull_request_target via workflow_call)
83+
if: ${{ github.event_name == 'pull_request_target' }}
84+
uses: actions/checkout@v4
85+
with:
86+
ref: ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }}
87+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
88+
89+
- name: Checkout repository
90+
if: ${{ github.event_name != 'pull_request_target' }}
91+
uses: actions/checkout@v4
92+
93+
- name: Inspector3
94+
run: |
95+
ls -la
96+
97+
- name: Execute Unit Tests with Coverage Analysis
98+
run: |
99+
echo "BEFORE INGO"
100+
ls -la /home/runner/.bazel/external || true
101+
bazel info
102+
OUTPUT_BASE=$(bazel info output_base 2>/dev/null)
103+
echo "=== external ($OUTPUT_BASE/external) ==="
104+
# tree $OUTPUT_BASE/external
105+
106+
python ./scripts/quality_runners.py --modules-to-test score_logging
107+
108+
# echo "tree after run"
109+
tree $OUTPUT_BASE/external
110+
111+
112+
113+
114+
115+
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# Coverage Analysis Summary
22

3-
## Template for a table with Coverage execution summary
3+
| module | lines | functions | branches |
4+
| --- | --- | --- | --- |
5+
| score_logging_cpp | 78.9% | 85.0% | 42.5% |
6+
| score_logging_rust | | | |
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Unit Test Execution Summary
22

3-
## Template for a table with Unit Test execution summary
3+
| module | passed | failed | skipped | total |
4+
| --- | --- | --- | --- | --- |
5+
| score_logging | 576 | 0 | 0 | 576 |

0 commit comments

Comments
 (0)