Skip to content

Commit 5ccf529

Browse files
the-mikedavismergify[bot]
authored andcommitted
CI: Use 'bazel cquery' to find OCI tests
Bazel 7 can't seem to resolve Osiris 1.7.1 when running this query using 'bazel query': ERROR: Error computing the main repository mapping: in module dependency chain <root> -> [email protected]: module not found in registries: [email protected] Switching to cquery resolves the tests correctly. It also prints the configuration hashes per case which we need to cut off with awk. (cherry picked from commit a12ea5f) (cherry picked from commit 118bb8c)
1 parent 4832738 commit 5ccf529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/oci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
7979
- name: Test
8080
run: |
81-
OCI_TESTS=$(bazel query 'tests(//packaging/docker-image/...)')
81+
OCI_TESTS=$(bazel cquery 'tests(//packaging/docker-image/...)' | awk '{ print $1 }')
8282
bazelisk test ${OCI_TESTS} \
8383
--config=rbe-${{ matrix.otp_version_id }}
8484

0 commit comments

Comments
 (0)