Skip to content

Commit 0a5eb23

Browse files
authored
Merge branch 'main' into feature/failure-attributes
Signed-off-by: Adham Negm <NDE3FE@bosch.com>
2 parents 1e01e37 + 45e72c7 commit 0a5eb23

103 files changed

Lines changed: 4989 additions & 3488 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bazelignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Claude Code creates .claude directory, e.g. for worktrees.
2+
# As it contains multiple copies of the entire repository, this totally tripps bazel,
3+
# which then tries to build all the files in there.
4+
.claude

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.4.2
1+
8.6.0

.github/workflows/bzlmod-lock.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/consumer_test.yml

Lines changed: 11 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
consumer: ["process_description", "score", "module_template"]
28+
consumer: [
29+
"process_description and local",
30+
"process_description and remote",
31+
"score and local",
32+
"score and remote",
33+
"module_template and local",
34+
"module_template and remote",
35+
]
2936

3037
steps:
3138
- name: 🛡️ Harden Runner
@@ -35,74 +42,15 @@ jobs:
3542
egress-policy: audit
3643

3744
- name: Checkout PR
38-
uses: actions/checkout@v4.2.2
45+
uses: actions/checkout@v6.0.2
3946

4047
- name: Prepare Python
41-
run: |
42-
bazel run --lockfile_mode=error //:ide_support
48+
run: bazel run //:ide_support
4349

44-
- name: Prepare report directory
45-
run: |
46-
mkdir -p reports
47-
48-
# The pipefail ensures that non 0 exit codes inside the pytest execution get carried into the pipe
49-
# & make the tests red in the end. Without this we only would check the exit code of the 'tee' command.
5050
- name: Run Consumer tests
51-
52-
run: |
53-
pytest_rc=0
54-
.venv_docs/bin/python -m pytest -vv src/tests/ \
55-
--repo="$CONSUMER" \
56-
--junitxml="reports/${{ matrix.consumer }}.xml" \
57-
|| pytest_rc=$?
58-
59-
60-
if [ -f "consumer_test.log" ]; then
61-
src_log="consumer_test.log"
62-
else
63-
echo "consumer_test.log not found; expected at ./consumer_test.log"
64-
exit ${pytest_rc:-1}
65-
fi
66-
67-
dest_log="reports/${{ matrix.consumer }}.log"
68-
mv "$src_log" "$dest_log"
69-
70-
tail -n 15 "$dest_log" >> "$GITHUB_STEP_SUMMARY"
71-
72-
cat "$dest_log"
73-
exit $pytest_rc
51+
run: .venv_docs/bin/python -m pytest -vv -s src/tests/test_consumer.py -k "$CONSUMER"
7452
env:
7553
FORCE_COLOR: "1"
7654
TERM: xterm-256color
7755
PYTHONUNBUFFERED: "1"
7856
CONSUMER: ${{ matrix.consumer }}
79-
80-
- name: Upload consumer test report
81-
if: ${{ always() }}
82-
uses: actions/upload-artifact@v4
83-
with:
84-
name: tests-${{ matrix.consumer }}
85-
path: reports/
86-
87-
summarize:
88-
needs: test
89-
runs-on: ubuntu-latest
90-
if: ${{ always() }}
91-
steps:
92-
- name: Prepare consumer report directory
93-
run: |
94-
mkdir -p tests-report
95-
96-
- name: Download individual consumer reports
97-
uses: actions/download-artifact@v4
98-
with:
99-
pattern: tests-*
100-
path: tests-report
101-
merge-multiple: true
102-
103-
- name: Upload bundled consumer report
104-
if: ${{ always() }}
105-
uses: actions/upload-artifact@v4
106-
with:
107-
name: tests-report
108-
path: tests-report
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313

14-
name: Linting Checks
14+
name: PR Checks
1515

1616
on:
1717
pull_request:
@@ -20,21 +20,22 @@ on:
2020
types: [checks_requested]
2121

2222
jobs:
23-
lint:
23+
pre-commit:
24+
name: Run pre-commit checks
2425
runs-on: ubuntu-latest
25-
continue-on-error: true
2626
steps:
2727

2828
- name: 🛡️ Harden Runner
2929
if: github.repository_owner == 'eclipse-score'
3030
uses: step-security/harden-runner@v2.18.0
3131
with:
3232
egress-policy: audit
33+
3334
- name: Checkout repository
34-
uses: actions/checkout@v4.2.2
35+
uses: actions/checkout@v6
3536

3637
- name: Setup Bazel
37-
uses: bazel-contrib/setup-bazel@0.15.0
38+
uses: bazel-contrib/setup-bazel@0.19.0
3839
with:
3940
disk-cache: true
4041
repository-cache: true

.github/workflows/renovate.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/test_and_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ jobs:
5555
pull-requests: write
5656
id-token: write
5757
with:
58-
bazel-target: "--lockfile_mode=error //:docs -- --github_user=${{ github.repository_owner }} --github_repo=${{ github.event.repository.name }}"
58+
bazel-target: "//:docs"
5959
retention-days: 3
6060
tests-report-artifact: tests-report

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ __pycache__/
2727
# bug: This file is created in repo root on test discovery.
2828
/consumer_test.log
2929
.clwb
30+
31+
# AI
32+
/.codex
33+
/.claude

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ repos:
3535
language: system
3636
pass_filenames: false
3737
files: '(^|/)(MODULE\.bazel|.*\.bzl|BUILD(\.bazel)?)$'
38+
39+
- id: bzlmod-lockfile
40+
name: bazel mod deps lockfile check
41+
entry: bazel mod deps --lockfile_mode=error
42+
language: system
43+
pass_filenames: false
44+
files: '(^|/)MODULE\.bazel(\.lock)?$'
45+
3846
- id: actionlint
3947
name: actionlint
4048
# Disable shellcheck and pyflakes for now, to enforce consistent behavior.

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ http_file(
6969
urls = ["https://github.com/withered-magic/starpls/releases/download/v0.1.21/starpls-linux-amd64"],
7070
)
7171

72-
bazel_dep(name = "score_process", version = "1.5.4")
72+
bazel_dep(name = "score_process", version = "2.0.1")
7373

7474
# Provide the tools from the devcontainer to Bazel
75-
bazel_dep(name = "score_devcontainer", version = "1.5.0")
75+
bazel_dep(name = "score_devcontainer", version = "1.7.0")

0 commit comments

Comments
 (0)