-
Notifications
You must be signed in to change notification settings - Fork 31
locking: enforce Bzlmod lockfile consistency #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -43,7 +43,7 @@ jobs: | |||||
| cache-save: ${{ github.event_name == 'push' }} | ||||||
| - name: Build for EB corbos Linux for Safety Applications and run tests | ||||||
| run: | | ||||||
| bazel build --config=eb-aarch64 //images/ebclfsa_aarch64/scrample_integration:run | ||||||
| bazel build --lockfile_mode=error --config=eb-aarch64 //images/ebclfsa_aarch64/scrample_integration:run | ||||||
|
||||||
| bazel build --lockfile_mode=error --config=eb-aarch64 //images/ebclfsa_aarch64/scrample_integration:run | |
| bazel --lockfile_mode=error build --config=eb-aarch64 //images/ebclfsa_aarch64/scrample_integration:run |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,10 +70,10 @@ jobs: | |
| SCORE_QNX_USER: ${{ secrets.SCORE_QNX_USER }} | ||
| SCORE_QNX_PASSWORD: ${{ secrets.SCORE_QNX_PASSWORD }} | ||
| run: | | ||
| bazel build --config qnx-x86_64 //images/qnx_x86_64:image | ||
| bazel build --lockfile_mode=error --config qnx-x86_64 //images/qnx_x86_64:image | ||
| - name: Run integration tests | ||
| run: | | ||
| bazel test --config=itf-qnx-x86_64 //feature_integration_tests/itf:qnx_x86_64 | ||
| bazel test --lockfile_mode=error --config=itf-qnx-x86_64 //feature_integration_tests/itf:qnx_x86_64 | ||
|
Comment on lines
+73
to
+76
|
||
| - name: Cleanup QNX license | ||
| if: always() | ||
| run: sudo rm -rf /opt/score_qnx | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # ******************************************************************************* | ||
| # 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: Bzlmod Lockfile Check | ||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize] | ||
| merge_group: | ||
| types: [checks_requested] | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| bzlmod-lock: | ||
| uses: eclipse-score/cicd-workflows/.github/workflows/bzlmod-lock-check.yml@main | ||
| with: | ||
| working-directory: . |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -85,7 +85,7 @@ jobs: | |||||
| run: | | ||||||
| mkdir -p artifacts | ||||||
| find bazel-testlogs/external -name 'test.xml' -print0 | xargs -0 -I{} cp --parents {} artifacts/ | ||||||
| cp -r "$(bazel info bazel-bin)/coverage/rust-tests" artifacts/rust | ||||||
| cp -r "$(bazel info --lockfile_mode=error bazel-bin)/coverage/rust-tests" artifacts/rust | ||||||
|
||||||
| cp -r "$(bazel info --lockfile_mode=error bazel-bin)/coverage/rust-tests" artifacts/rust | |
| cp -r "$(bazel --lockfile_mode=error info bazel-bin)/coverage/rust-tests" artifacts/rust |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| # Bazel | ||
| bazel-* | ||
| MODULE.bazel.lock | ||
| user.bazelrc | ||
|
|
||
| _logs | ||
|
|
||
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--lockfile_modeis a Bazel startup/global option and should be placed before the command name. As written (bazel build --lockfile_mode=error ...) Bazel may not apply lockfile enforcement; preferbazel --lockfile_mode=error build ....