Skip to content

chore(agent): move the macOS Python runtime to 3.12.16 - #1600

Open
ioanalytica wants to merge 1 commit into
karanhudia:mainfrom
ioanalytica:chore/cpython-3.12-manifest
Open

ioanalytica wants to merge 1 commit into
karanhudia:mainfrom
ioanalytica:chore/cpython-3.12-manifest

Conversation

@ioanalytica

Copy link
Copy Markdown
Contributor

Description

The macOS agent installer unpacks the CPython build that app/api/python_runtimes.json names. That manifest still names 3.12.14+20260924. python-build-standalone has since published 3.12.15 (release 20261001) and 3.12.16 (release 20261110), and nothing refreshes the manifest automatically.

This PR runs scripts/refresh_python_runtime_manifest.py (minor 3.12 from docker/runtime-base.env) and commits the result: the manifest now names 3.12.16+20261110 for aarch64 and x86_64.

The script needed one change to run at all. The release API answers a page of 30 releases with HTTP 504 (each release carries about a thousand assets; ?per_page=30 failed on every try, ?per_page=10 answers). It now asks for pages of 10 and walks up to 30 of them, so it still reaches the same 300 releases as before.

Checksums: the values the script took from the release API match the release's own SHA256SUMS and a hash of the downloaded archives:

aarch64  e956e60bc9465d577ef8062059aa05cd3a2665b4b8678a2ed24e432368330b8f
x86_64   83f2922437e6d546d0fcdb8c11f150a8e52787e8d9ea8651b1974e20908eb1bc

The aarch64 build unpacks and runs: 3.12.16 (main, Nov 11 2026, 00:09:12) [Clang 23.1.3], OpenSSL 3.5.9.

An installed macOS agent keeps its runtime until the next reinstall. The installer then sees that the recorded version no longer matches the pin and replaces the runtime and the virtualenv made from it.

Related Issue

No issue; tracked by the Contributor Planning board item "Dependency updates: what Dependabot and the updater workflows miss". A scheduled workflow that runs this script, like the rclone and Borg updaters, stays open on that card.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📖 Documentation update
  • 🎨 UI/UX improvement
  • 🧪 Test addition/improvement
  • ♻️ Refactoring

Testing

  • I have tested this locally
  • I have added tests that prove my fix is effective or that my feature works (version bump; the existing manifest tests cover the pinned minor, both architectures and the checksum format)
  • All existing tests pass
  • A new database migration comes with an upgrade test (tests/migrations, upgraded_from)
$ python scripts/refresh_python_runtime_manifest.py
Python minor from runtime-base.env: 3.12
  3.12.16+20261110: 2 runtimes
Wrote app/api/python_runtimes.json

$ python -m pytest -q tests/unit/test_python_runtimes.py tests/unit/test_agent_installer_darwin.py
57 passed

$ python -m pytest tests/unit -n 8 --dist loadfile -q
9575 passed, 410 skipped, 0 failed

Checklist

  • I have read the CONTRIBUTING guidelines
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (none needed)
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

Screenshots (if applicable)

Not applicable.

Additional Context

Not tested on a Mac running the agent; the installer path is covered by tests/unit/test_agent_installer_darwin.py, which pins its own test versions.


Note: By submitting this pull request, you agree that your contributions will be licensed under the GNU Affero General Public License v3.0 (AGPL-3.0), the same license as this project.

The manifest the macOS agent installer reads still named CPython
3.12.14+20260924. python-build-standalone has published 3.12.15
(20261001) and 3.12.16 (20261110) since; nothing refreshes the
manifest automatically.

app/api/python_runtimes.json is rewritten by
scripts/refresh_python_runtime_manifest.py and now names
3.12.16+20261110 for both macOS architectures. The two sha256 values
match the release's SHA256SUMS and a hash of the downloaded archives.

The refresh script itself could not run any more: the release API
answers a page of 30 releases (about a thousand assets each) with HTTP
504. It now asks for pages of 10 and walks up to 30 of them, which
covers the same 300 releases as before.

An installed agent replaces its runtime on the next reinstall, because
the recorded version no longer matches the pin.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Updates
    • Updated the current Python 3.12 runtime to version 3.12.16. The refreshed release is available for macOS on both Apple silicon and Intel, with updated downloads and verification data. New installations selecting the current runtime will use this build instead of the previous 3.12.14 release, while retaining support for both Mac processor architectures.

The runtime manifest now selects Python 3.12.16+20261110 and its updated macOS assets. The refresh script requests smaller release pages and searches more pages.

Changes: Python Runtime Updates

Layer / File(s) Summary
Update Python runtime entries
app/api/python_runtimes.json
The current runtime changes to 3.12.16+20261110. The macOS ARM64 and x86_64 entries use updated asset names, release URLs, and SHA-256 values.
Adjust release API pagination
scripts/refresh_python_runtime_manifest.py
The release API page size changes from 30 to 10, and the maximum page count increases from 10 to 30.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: karanhudia

Merge Risk: Minimal · up to 6085e

This change moves the macOS agent's bundled Python runtime to a newer 3.12 build and makes the refresh script request smaller release pages to avoid timeouts. No concrete problem was found, and the reported unit tests passed. The change was not tested on a Mac running the agent, so no merge-blocking risk is established.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the macOS Python runtime moves to 3.12.16. It also uses the chore(agent) prefix, which matches the scope of the manifest update. It does not mention the refresh script…
Description check Passed The description matches the changeset. It explains why the manifest moves from 3.12.14+20260924 to 3.12.16+20261110, describes the refresh script change to 10-release pages, gives checksums, and lists…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the macOS Python runtime moves to 3.12.16. It also uses the chore(agent) prefix, which matches the scope of the manifest update. It does not mention the refresh script change, but that secondary change does not need to appear in the title.

Full details: Description check

Explanation

The description matches the changeset. It explains why the manifest moves from 3.12.14+20260924 to 3.12.16+20261110, describes the refresh script change to 10-release pages, gives checksums, and lists test results. It is detailed and on topic.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the runtime list,
New Python builds are on the way.
Smaller pages hop through releases,
More pages help the search proceed.
The updated assets join the day.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: karanhudia/borg-ui
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: b8e3503
  • Layers: Repository YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 381c86ef-b402-4a01-8f24-39739e33c8b5
Commits

Reviewing files that changed from the base of the PR and between b8e3503 and 6085e02.

Files selected for processing: 2

  • app/api/python_runtimes.json
  • scripts/refresh_python_runtime_manifest.py

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant