Skip to content

dependabot relock: drop the YAML quotes around a bumped version (unblocks #8401) - #8474

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
fix/dependabot-relock-quoted-version
Nov 14, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
fix/dependabot-relock-quoted-version

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Why

Dependabot PR #8401 (the weekly ci-requirements bump) has been red on 20 checks since 2026-11-13. One bug causes all of them.

  • Dependabot's metadata footer is YAML, so a version that reads as a number is quoted: dependency-version: '26.3' (pip).
  • dependabot_relock.py kept the quotes and called pin_requirements.py ... -P "pip=='26.3'". uv refused it, so the relock job failed (run).
  • With no relock, Dependabot's own bootstrap.txt stood, in which setuptools is unpinned. Every job that installs it then died in about 20 seconds: In --require-hashes mode, all requirements must have their versions pinned with ==.

What

  • parse_dependabot_metadata strips single or double quotes from the version.
  • A test covers a single-quoted version, a double-quoted one, and a blank one in the same footer, and checks the -P arguments that result.

Verification

  • pytest tests/tools/test_dependabot_relock.py: 7 passed.
  • ruff check and ruff format --check on both files: clean.

After merge

The relock workflow runs main's copy of the tool, so #8401 needs a new relock run once this lands (re-run the failed relock job, or @dependabot rebase).

🤖 Generated with Claude Code

Dependabot's metadata footer quotes a version that reads as a number
(dependency-version: '26.3'). The quotes reached pin_requirements.py as
-P pip=='26.3', uv refused it, and the relock of PR #8401 failed, which
left bootstrap.txt with setuptools unpinned and every install job red.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 14, 2026 13:22
@squid-shepherd
squid-shepherd Bot merged commit f1affeb into main Nov 14, 2026
31 checks passed
@squid-shepherd
squid-shepherd Bot deleted the fix/dependabot-relock-quoted-version branch November 14, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant