From 2ffe8fb1c0b89bab1e109d05490421067840cd3f Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 10 Nov 2026 20:14:18 +0000 Subject: [PATCH 1/6] Adjust apt-system-requirements.txt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The python3-tk package is vestigial in CI (PR #1876): it installs Tkinter for Ubuntu's system Python 3.10, whereas actions/setup-python runs Python 3.11–3.14 from /opt/hostedtoolcache, which already bundles _tkinter. We can remove it from apt-system-requirements.txt In addition, if we add latexmk and poppler-utils explicitly, we can use the `--no-install-recommends` option to `apt install` in CI, which will reduce by roughly half 168 MB download it's currently doing for apt installing apt-system-requirements.txt. --- apt-system-requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apt-system-requirements.txt b/apt-system-requirements.txt index 4ffdaca503..9c0500a19f 100644 --- a/apt-system-requirements.txt +++ b/apt-system-requirements.txt @@ -1,3 +1,4 @@ +ghostscript latexmk -python3-tk +poppler-utils texlive-latex-extra From 56122c11a73984fc28110ec74570e01dee88c9b5 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 10 Nov 2026 20:21:08 +0000 Subject: [PATCH 2/6] Add `--no-install-recommends` when installing apt packages As it was, `apt-get install apt-system-requirements.txt` pulled in large recommended font/doc/X11-viewer packages on every Changed files test, Coverage check, and Pytest Ubuntu job. By adjusting apt-system-requirements.txt and using `--no-install-recommends`, we can greatly reduce what needs to be downloaded and installed. --- .github/workflows/ci-monitoring.yml | 2 +- .github/workflows/ci.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-monitoring.yml b/.github/workflows/ci-monitoring.yml index 9371bce591..7da66c682f 100644 --- a/.github/workflows/ci-monitoring.yml +++ b/.github/workflows/ci-monitoring.yml @@ -42,7 +42,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) - name: Install requirements run: | pip install --upgrade setuptools diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 772eaf154d..eb0bdff041 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,7 +102,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) - name: Install changed files test dependencies run: dev_tools/conf/pip-install-minimal-for-pytest-changed-files.sh - name: Changed files test @@ -227,7 +227,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) - name: Install requirements run: | pip install --upgrade setuptools @@ -289,7 +289,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) - name: Install requirements run: | pip install --upgrade setuptools From 7cb95275a81697fcca24b12b4b97b37fe4020ab1 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 10 Nov 2026 21:53:53 +0000 Subject: [PATCH 3/6] Also need to install `lmodern` --- apt-system-requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/apt-system-requirements.txt b/apt-system-requirements.txt index 9c0500a19f..00f55545ea 100644 --- a/apt-system-requirements.txt +++ b/apt-system-requirements.txt @@ -1,4 +1,5 @@ ghostscript latexmk +lmodern poppler-utils texlive-latex-extra From 3750e3226b04fe95da3269bafd08a1ec1f386031 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 10 Nov 2026 21:54:03 +0000 Subject: [PATCH 4/6] Add `--no-install-recommends` when installing apt packages As it was, `apt-get install apt-system-requirements.txt` pulled in large recommended font/doc/X11-viewer packages on every Changed files test, Coverage check, and Pytest Ubuntu job. By adjusting apt-system-requirements.txt and using `--no-install-recommends`, we can greatly reduce what needs to be downloaded and installed. --- .github/workflows/ci-daily.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-daily.yml b/.github/workflows/ci-daily.yml index 89d30c25a0..5c40b25f8a 100644 --- a/.github/workflows/ci-daily.yml +++ b/.github/workflows/ci-daily.yml @@ -36,7 +36,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) - name: Install requirements run: | pip install --upgrade "cirq~=1.0.dev" "cirq-core[contrib]~=1.0.dev" From b7a94aec34c2c6505542368226b32f151b9226df Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 10 Nov 2026 23:17:10 +0000 Subject: [PATCH 5/6] Test without -y flag --- .github/workflows/ci-daily.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-daily.yml b/.github/workflows/ci-daily.yml index 5c40b25f8a..992a4d6527 100644 --- a/.github/workflows/ci-daily.yml +++ b/.github/workflows/ci-daily.yml @@ -36,7 +36,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends $(cat apt-system-requirements.txt) - name: Install requirements run: | pip install --upgrade "cirq~=1.0.dev" "cirq-core[contrib]~=1.0.dev" From 55389876f4a8ccb88a3cf749b14c947d552b5f94 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 10 Nov 2026 23:25:30 +0000 Subject: [PATCH 6/6] It seems the `-y` flag may not be needed after all --- .github/workflows/ci-monitoring.yml | 2 +- .github/workflows/ci.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-monitoring.yml b/.github/workflows/ci-monitoring.yml index 7da66c682f..3a1a6ca0a5 100644 --- a/.github/workflows/ci-monitoring.yml +++ b/.github/workflows/ci-monitoring.yml @@ -42,7 +42,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends $(cat apt-system-requirements.txt) - name: Install requirements run: | pip install --upgrade setuptools diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb0bdff041..1eb6b7a9e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,7 +102,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends $(cat apt-system-requirements.txt) - name: Install changed files test dependencies run: dev_tools/conf/pip-install-minimal-for-pytest-changed-files.sh - name: Changed files test @@ -181,7 +181,7 @@ jobs: - name: Install requirements run: | sudo apt-get update - sudo apt-get install --no-install-recommends -y yamllint + sudo apt-get install --no-install-recommends yamllint - name: Run yamllint run: yamllint . CITATION.cff isolated-modules: @@ -227,7 +227,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends $(cat apt-system-requirements.txt) - name: Install requirements run: | pip install --upgrade setuptools @@ -289,7 +289,7 @@ jobs: - name: Install system packages run: | sudo apt-get update - sudo apt-get install --no-install-recommends -y $(cat apt-system-requirements.txt) + sudo apt-get install --no-install-recommends $(cat apt-system-requirements.txt) - name: Install requirements run: | pip install --upgrade setuptools