Skip to content

Commit

Permalink
Fix CI by keeping WORKSPACE enabled for now
Browse files Browse the repository at this point in the history
(CI is broken since the release https://github.com/bazelbuild/bazel/releases/tag/8.0.0)

Also bump the version of rules_python

PiperOrigin-RevId: 704624004
  • Loading branch information
oprypin authored and copybara-github committed Dec 10, 2024
1 parent f9f47ec commit 5cdc657
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ To run Abseil tests, you can clone the git repo and run
```bash
git clone https://github.com/abseil/abseil-py.git
cd abseil-py
bazel test absl/...
bazel test --enable_workspace absl/...
```

Please also validate the type annotations against the latest mypy:
Expand Down
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_python",
sha256 = "863ba0fa944319f7e3d695711427d9ad80ba92c6edd0b7c7443b84e904689539",
strip_prefix = "rules_python-0.22.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.22.0/rules_python-0.22.0.tar.gz",
sha256 = "4f7e2aa1eb9aa722d96498f5ef514f426c1f55161c3c9ae628c857a7128ceb07",
strip_prefix = "rules_python-1.0.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0/rules_python-1.0.0.tar.gz",
)

load("@rules_python//python:repositories.bzl", "py_repositories")
Expand Down
4 changes: 2 additions & 2 deletions ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ exit_code=0

# Log the bazel version for easier debugging.
bazel version
bazel test --test_output=errors absl/... || exit_code=$?
bazel test --enable_workspace --test_output=errors absl/... || exit_code=$?
if [[ ! -z "${ABSL_EXPECTED_PYTHON_VERSION}" ]]; then
bazel test \
bazel test --enable_workspace \
--test_output=errors absl:tests/python_version_test \
--test_arg=--expected_version="${ABSL_EXPECTED_PYTHON_VERSION}" || exit_code=$?
fi
Expand Down

0 comments on commit 5cdc657

Please sign in to comment.