Skip to content

Commit e950f95

Browse files
committed
Add a pip constraints file & constrain Pillow version
Pillow was updated to version 11.3.0 about 12 hours ago, and this is causing our builds on GitHub runners to fail because of some issue involving Pillow building wheels. Until that's resolved, this PR adds a constraints file that limits the version of Pillow installed by pip commands in the workflows.
1 parent 6999a9f commit e950f95

8 files changed

Lines changed: 28 additions & 0 deletions

.github/workflows/ci_build_library.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
env:
8888
# Must use explicit test for true so it works when inputs.debug is null.
8989
use-verbose: ${{github.event.inputs.debug == true}}
90+
PIP_CONSTRAINT: .github/workflows/pip-constraints.txt
9091
steps:
9192
- name: Check out a copy of the git repository
9293
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/ci_format_checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
needs: find-changes
5656
runs-on: ubuntu-24.04
5757
timeout-minutes: 30
58+
env:
59+
PIP_CONSTRAINT: .github/workflows/pip-constraints.txt
5860
steps:
5961
- name: Check out a copy of the git repository
6062
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/ci_hardware_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
env:
6565
# Must use explicit test for true so it works when inputs.debug is null.
6666
use-verbose: ${{github.event.inputs.debug == true}}
67+
PIP_CONSTRAINT: .github/workflows/pip-constraints.txt
6768
steps:
6869
- name: Check out a copy of the git repository
6970
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/ci_sanitizer_tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
env:
6363
# Must use explicit test for true so it works when inputs.debug is null.
6464
use-verbose: ${{github.event.inputs.debug == true}}
65+
PIP_CONSTRAINT: .github/workflows/pip-constraints.txt
6566
steps:
6667
- name: Check out a copy of the git repository
6768
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/ci_tcmalloc_test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
env:
5959
# Must use explicit test for true so it works when inputs.debug is null.
6060
use-verbose: ${{github.event.inputs.debug == true}}
61+
PIP_CONSTRAINT: .github/workflows/pip-constraints.txt
6162
steps:
6263
- name: Check out a copy of the git repository
6364
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/cirq_compatibility.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
name: Test Cirq compatibility
3939
runs-on: ubuntu-24.04
4040
timeout-minutes: 30
41+
env:
42+
PIP_CONSTRAINT: .github/workflows/pip-constraints.txt
4143
steps:
4244
- name: Check out a copy of the git repository
4345
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Pillow released an updated on 2025-07-01 and it broke installations
16+
# on Ubuntu GitHub runners.
17+
# TODO(mhucka) remove this after the problem is fixed.
18+
pillow<11.3.0

.github/workflows/reusable_build_wheels.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
{os: macos-15, arch: arm64},
6161
{os: windows-2025, arch: AMD64},
6262
]
63+
env:
64+
PIP_CONSTRAINT: .github/workflows/pip-constraints.txt
6365
steps:
6466
- name: Check out a copy of the git repository
6567
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

0 commit comments

Comments
 (0)