Skip to content

Hash-pin the bundled Python packages and let Dependabot update them - #259

Merged
v0lumehi merged 1 commit into
mainfrom
v0lumehi/dependabot-bundled-python
Oct 30, 2026
Merged

v0lumehi merged 1 commit into
mainfrom
v0lumehi/dependabot-bundled-python

Conversation

@v0lumehi

Copy link
Copy Markdown
Collaborator

What and why

Dependabot cannot update pip installs written inline in a workflow, so the pins of the Python packages in the release app live in a requirements file it can read.

  • frontend/tools/bundled-python-requirements.txt moves to frontend/bundled-python/requirements.txt, now with every release file of each pinned version hashed. bundle_tools.sh installs from it with --require-hashes (and still --only-binary).
  • .github/dependabot.yml has two ecosystems, pip for /frontend/bundled-python and github-actions for / (the workflows pin every action to a commit SHA with its tag in a comment, so Dependabot moves both). Weekly, one grouped PR per ecosystem, labels dependencies plus build (pip) or ci (actions), commit prefixes build and ci. The dependencies label is created.
  • Dependabot has no entry for dm/, scripts/, docs/, ref/ or patches/: upstream's pins there are not ours to change.
  • The test that keeps the launcher's package list equal to the pins now reads the new format and checks that every pin has hashes. The launcher keeps its own list (pipPackages), which that test compares against the file.

Not covered by Dependabot: the bundled CPython and the native tools (zstd, spirv-cross, glslangValidator, xcodegen) are pinned by source and checksum in frontend/tools/bundle_tools.sh.

Stacked on #258 (base v0lumehi/bundle-zbic), because it moves the file that PR adds zbic to. Retarget to main after #258 merges.

Checked

  • Tests: swift test --filter BundledToolsTests (24 tests, 0 failures). python3 scripts/patches.py check OK. pip download --require-hashes --only-binary :all: for CPython 3.13 and macosx_11_0_arm64 resolves all 13 packages against the hashes.
  • Visual QA: not applicable.
  • Run on a device or Mac: the release workflow was not run, so the hashed install runs for the first time in the next release build. Dependabot's first PRs show whether it accepts the file.

Screenshots

None.

Scope

  • No vendored file (dm/, scripts/, docs/, ref/, AGENTS.md) is edited directly
  • Not an engine or game profile fix
  • No keys, game files or data extracted from a game

The pins move to frontend/bundled-python/requirements.txt with every release file
hashed, bundle_tools.sh installs with --require-hashes, and dependabot.yml gets a
pip entry for that folder next to the github-actions one, both weekly and grouped.
@v0lumehi v0lumehi added build Building a game fails ci Workflows and repository tooling labels Oct 30, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation launcher The NX2Apple launcher app labels Oct 30, 2026
@v0lumehi
v0lumehi changed the base branch from v0lumehi/bundle-zbic to main October 30, 2026 16:12
@v0lumehi
v0lumehi merged commit 00e634a into main Oct 30, 2026
10 checks passed
@v0lumehi
v0lumehi deleted the v0lumehi/dependabot-bundled-python branch October 30, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Building a game fails ci Workflows and repository tooling documentation Improvements or additions to documentation launcher The NX2Apple launcher app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant