Skip to content

Commit eb484ef

Browse files
Internal change
PiperOrigin-RevId: 922850859
1 parent 76b61ae commit eb484ef

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

release/kokoro/release_linux.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33

44
build_file: "cel-python/release/kokoro/release_linux.sh"
55
timeout_mins: 120
6+
7+
container_properties {
8+
docker_image: "us-central1-docker.pkg.dev/kokoro-container-bakery/kokoro/ubuntu/ubuntu2204/full:current"
9+
docker_sibling_containers: true
10+
}

release/kokoro/release_linux.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
set -e
3+
set -x
34

45
# If running locally (not on Kokoro), authenticate with gcloud.
56
if [ -z "${KOKORO_BUILD_ID}" ]; then
@@ -8,7 +9,7 @@ if [ -z "${KOKORO_BUILD_ID}" ]; then
89
fi
910
fi
1011

11-
pip install -U keyring keyrings.google-artifactregistry-auth twine cibuildwheel
12+
pip install --no-cache-dir -U keyring keyrings.google-artifactregistry-auth twine cibuildwheel
1213

1314
REPO_DIR=$(mktemp -d)
1415
echo "Created temporary directory: ${REPO_DIR}"
@@ -52,6 +53,10 @@ cp -r "${SRC_DIR}"/{*,.*} . 2>/dev/null || true
5253
cp -r "${SRC_DIR}"/release/* . 2>/dev/null || true
5354
rm -rf cel_expr_python/*_test.py
5455

56+
echo "Downloading bazelisk on host..."
57+
curl -LO https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64
58+
chmod +x bazelisk-linux-amd64
59+
5560
# Check if pyproject.toml exists before running sed
5661
if [ -f pyproject.toml ]; then
5762
sed -i "" "s/\$VERSION/${VERSION}/g" pyproject.toml || sed -i "s/\$VERSION/${VERSION}/g" pyproject.toml

release/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ exclude = ["codelab*", "conformance*", "custom_ext*", "release*", "testing*", "w
4141
build = "cp311-* cp312-* cp313-* cp314-*"
4242
skip = "*musllinux* *win32*"
4343
test-command = "python {project}/cel_basic_test.py"
44-
build-verbosity = 1
44+
build-verbosity = 3
4545

4646
[tool.cibuildwheel.linux]
47-
before-all = "echo 'Installing bazelisk'; curl -LO https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64 && chmod +x bazelisk-linux-amd64 && mv bazelisk-linux-amd64 /usr/local/bin/bazel"
47+
before-all = "echo 'Installing bazelisk'; cp {project}/bazelisk-linux-amd64 /usr/local/bin/bazel"
48+
#container-engine = { name = "podman", create-args = ["--net", "host"] }
4849

4950
[tool.cibuildwheel.macos]
5051
before-all = "echo 'Installing bazelisk'; brew install bazelisk"

0 commit comments

Comments
 (0)