Skip to content

Commit

Permalink
Fix module path for bcr testing (bazelbuild#3069)
Browse files Browse the repository at this point in the history
This should hopefully address
```
ERROR: The test module directory does not exist in the source archive: /Users/buildkite/builds/bk-macos-arm64-bcva/bazel-org-repo-root/output/extensions/bindgen
Traceback (most recent call last):
  File "/Users/buildkite/builds/bk-macos-arm64-bcva/bazel/bcr-presubmit/bcr_presubmit.py", line 537, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/buildkite/builds/bk-macos-arm64-bcva/bazel/bcr-presubmit/bcr_presubmit.py", line 528, in main
    repo_location, config_file = prepare_test_module_repo(args.module_name, args.module_version, args.overwrite_bazel_version)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/buildkite/builds/bk-macos-arm64-bcva/bazel/bcr-presubmit/bcr_presubmit.py", line 269, in prepare_test_module_repo
    error("The test module directory does not exist in the source archive: %s" % test_module_root)
  File "/Users/buildkite/builds/bk-macos-arm64-bcva/bazel/bcr-presubmit/bcr_presubmit.py", line 58, in error
    raise BcrPipelineException("BCR Presubmit failed!")
BcrPipelineException: BCR Presubmit failed!
🚨 Error: The command exited with status 1
```
  • Loading branch information
UebelAndre authored Dec 9, 2024
1 parent cdccb48 commit c07cb1b
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .bcr/extensions/bindgen/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bcr_test_module:
module_path: "extensions/bindgen"
module_path: ""
matrix:
platform: ["macos_arm64", "ubuntu2004", "windows"]
bazel: ["7.x"]
Expand Down
2 changes: 1 addition & 1 deletion .bcr/extensions/prost/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bcr_test_module:
module_path: "extensions/prost"
module_path: ""
matrix:
platform: ["macos_arm64", "ubuntu2004", "windows"]
bazel: ["7.x"]
Expand Down
2 changes: 1 addition & 1 deletion .bcr/extensions/protobuf/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bcr_test_module:
module_path: "extensions/protobuf"
module_path: ""
matrix:
platform: ["macos_arm64", "ubuntu2004", "windows"]
bazel: ["7.x"]
Expand Down
2 changes: 1 addition & 1 deletion .bcr/extensions/wasm_bindgen/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bcr_test_module:
module_path: "extensions/wasm_bindgen"
module_path: ""
matrix:
platform: ["macos_arm64", "ubuntu2004", "windows"]
bazel: ["7.x"]
Expand Down
4 changes: 2 additions & 2 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ bcr_test_module:
module_path: ""
matrix:
platform: ["macos_arm64", "ubuntu2004"]
bazel: ["6.x", "7.x"]
bazel: ["7.x"]
tasks:
run_tests:
working_directory: examples/bzlmod/hello_world
Expand All @@ -21,7 +21,7 @@ bcr_test_module:
bcr_test_module_windows:
module_path: ""
matrix:
bazel: ["6.x", "7.x"]
bazel: ["7.x"]
tasks:
run_tests:
working_directory: examples/bzlmod/hello_world
Expand Down
2 changes: 1 addition & 1 deletion .github/release_notes.template
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ bazel_dep(name = "rules_rust_wasm_bindgen", version = "{version}")
```python
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
name = "rules_rust_wasm_bindgen",
integrity = "sha256-{ext_wasm_bindgen_sha256_base64}",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/{version}/rules_rust_wasm_bindgen-{version}.tar.gz"],
)
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module(
name = "rules_rust",
version = "0.55.2",
version = "0.55.3",
)

###############################################################################
Expand Down
4 changes: 2 additions & 2 deletions extensions/bindgen/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

module(
name = "rules_rust_bindgen",
version = "0.55.2",
version = "0.55.3",
)

bazel_dep(
name = "rules_rust",
version = "0.55.2",
version = "0.55.3",
)
local_path_override(
module_name = "rules_rust",
Expand Down
4 changes: 2 additions & 2 deletions extensions/prost/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

module(
name = "rules_rust_prost",
version = "0.55.2",
version = "0.55.3",
)

bazel_dep(
name = "rules_rust",
version = "0.55.2",
version = "0.55.3",
)
local_path_override(
module_name = "rules_rust",
Expand Down
4 changes: 2 additions & 2 deletions extensions/protobuf/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

module(
name = "rules_rust_protobuf",
version = "0.55.2",
version = "0.55.3",
)

bazel_dep(
name = "rules_rust",
version = "0.55.2",
version = "0.55.3",
)
local_path_override(
module_name = "rules_rust",
Expand Down
4 changes: 2 additions & 2 deletions extensions/wasm_bindgen/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

module(
name = "rules_rust_wasm_bindgen",
version = "0.55.2",
version = "0.55.3",
)

bazel_dep(
name = "rules_rust",
version = "0.55.2",
version = "0.55.3",
)
local_path_override(
module_name = "rules_rust",
Expand Down
2 changes: 1 addition & 1 deletion version.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""The version of rules_rust."""

VERSION = "0.55.2"
VERSION = "0.55.3"

0 comments on commit c07cb1b

Please sign in to comment.