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
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
common --lockfile_mode=off
common --lockfile_mode=update
common --enable_platform_specific_config

common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
copyright-check:
uses: eclipse-score/cicd-workflows/.github/workflows/copyright.yml@main
with:
bazel-target: "run //:copyright.check"
bazel-target: "run --lockfile_mode=error //:copyright.check"
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
formatting-check:
uses: eclipse-score/cicd-workflows/.github/workflows/format.yml@main
with:
bazel-target: "test //:format.check" # optional, this is the default
bazel-target: "test --lockfile_mode=error //:format.check" # optional, this is the default
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- run: scripts/run_all_tests.sh
- run: ./scripts/run_all_tests.sh
1,163 changes: 1,163 additions & 0 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions scripts/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ if [ "${workspace}" == "all" -o "${workspace}" == "main" ];then
# run_command "bazel --output_base=$HOME/.cache/bazel_tools_python/workspace_output_base test --config=use_workspace_mode --config=python_3_9 //..." "tests (workspace mode and python 3.9)"

# Run bazel test with bzlmod mode and python 3.12.
run_command "bazel --output_base=$HOME/.cache/bazel_tools_python/python_3_12_output_base test --config=python_3_12 //..." "tests (bzlmod mode and python 3.12)"
run_command "bazel --lockfile_mode=error --output_base=$HOME/.cache/bazel_tools_python/python_3_12_output_base test --config=python_3_12 //..." "tests (bzlmod mode and python 3.12)"

# Run bazel test with bzlmod mode.
run_command "bazel test //..." "tests (bzlmod mode)"
run_command "bazel --lockfile_mode=error test //..." "tests (bzlmod mode)"

# Run python quality tools.
run_command "bazel build --config=ruff_check --keep_going //..." "ruff_check"
Expand Down
2 changes: 1 addition & 1 deletion test/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
common --lockfile_mode=off
common --lockfile_mode=update
common --enable_platform_specific_config

common:use_workspace_mode --noenable_bzlmod
Expand Down
694 changes: 694 additions & 0 deletions test/MODULE.bazel.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions test/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ run_command(){
cd $(dirname $0)

# Run checks with bzlmod mode.
run_command "bazel test //..." "tests (bzlmod mode)"
run_command "bazel build --config=ruff_check --keep_going //..." "ruff_check (bzlmod mode)"
run_command "bazel --lockfile_mode=error test //..." "tests (bzlmod mode)"
run_command "bazel --lockfile_mode=error build --config=ruff_check --keep_going //..." "ruff_check (bzlmod mode)"
run_command "bazel build --config=ruff_format --keep_going //..." "ruff_format (bzlmod mode)"
run_command "bazel build --config=pylint --keep_going //..." "pylint (bzlmod mode)"
run_command "bazel build --config=black --keep_going //..." "black (bzlmod mode)"
Expand Down
Loading