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
49 changes: 49 additions & 0 deletions .github/workflows/lockfile_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# *******************************************************************************
# Copyright (c) 2026 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: Bazel Lockfile Check
on:
pull_request:
paths:
- 'MODULE.bazel'
- 'MODULE.bazel.lock'
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
validate-lockfile:
name: Verify Lockfile Correctness
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
uses: actions/checkout:v4
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@v0.13.0
with:
bazelisk-version: true
repository-cache: true
- name: Assert Lockfile matches Cargo State
id: run-check
run: bazel mod deps --lockfile_mode=error
- name: Instructions on Failure
if: failure() && steps.run-check.outcome == 'failure'
run: |
echo "::error title=Lockfile Out of Sync::Your MODULE.bazel.lock does not match your Cargo configuration changes!"
echo "=============================================================================="
echo " HOW TO FIX THIS BUILD:"
echo "=============================================================================="
echo " Your recent Cargo dependency changes broke the Bazel lockfile state."
echo " Please run the following command locally in your repository root:"
echo ""
echo " bazel mod deps --lockfile_mode=update"
echo ""
echo " Once completed, commit and push the updated 'MODULE.bazel.lock'."
echo "=============================================================================="
2 changes: 1 addition & 1 deletion .github/workflows/rust_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: eclipse-score/cicd-workflows/.github/workflows/rust-coverage.yml@main
with:
bazel-test-targets: "//score/..."
bazel-test-config-flags: "--config=bl-x86_64-linux --config=ferrocene-coverage --lockfile_mode=error --test_lang_filters=rust,-miri"
bazel-test-config-flags: "--config=bl-x86_64-linux --config=ferrocene-coverage --test_lang_filters=rust,-miri"
bazel-test-args: "--test_output=errors --nocache_test_results --build_tag_filters=-miri,-loom --test_tag_filters=-miri,-loom"
coverage-target: "//:rust_coverage"
min-coverage: 0
Expand Down
Loading