Skip to content

test: the fake gpg works with older git too - #175

Merged
thorsten-klein merged 1 commit into
mainfrom
test/fake-gpg-old-git
Oct 23, 2026
Merged

thorsten-klein merged 1 commit into
mainfrom
test/fake-gpg-old-git

Conversation

@thorsten-klein

Copy link
Copy Markdown
Owner

What this changes

The fake gpg.program of test_gpg_sign_signs_the_commit_and_the_nested_commits prints [GNUPG:] BEGIN_SIGNING before [GNUPG:] SIG_CREATED, like gpg does.

Why

With git 2.34.1 (Ubuntu 22.04) the test failed with error: gpg failed to sign the data: this git only finds SIG_CREATED after a newline in the status output, and the fake gpg printed it as the very first line. Reproduced with plain git commit -S and the fake script, outside the tests.

Checklist

  • uv run poe all passes (ruff, mypy, pyright, bandit, complexipy, and the
    tests at 100% coverage) — locally 738 passed, 100% coverage; pip-audit reports CVEs in certifi/virtualenv, unrelated and also on main
  • New behaviour has a test (the change is the test)
  • README / --help / the man page updated, if the change is visible to users (not visible)
  • The PR title reads as a Conventional Commit
    (feat:, fix:, docs:, …) — it becomes the squash-merge commit message
    and the changelog line

🤖 Generated with Claude Code

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (795486e) to head (bcf6ec4).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #175   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           45        45           
  Lines         2119      2119           
=========================================
  Hits          2119      2119           

thorsten-klein added a commit that referenced this pull request Oct 23, 2026
## What this changes

`uv.lock` takes the newest versions of the packages pip-audit flags, and
of what they need:

| Package | From | To |
|---|---|---|
| certifi | 2026.7.22 | 2026.10.23 |
| virtualenv | 21.14.5 | 21.14.13 |
| packaging | 26.0 | 26.3 |
| typing-extensions | 4.15.0 | 4.16.0 |

virtualenv 21.14.13 needs packaging >= 26.3 and, on Python 3.10,
typing-extensions >= 4.16. Without those two bumps, uv keeps virtualenv
21.14.5 for Python 3.10, and pip-audit still fails there.

## Why

Every `test` job fails at `pip-audit`, before the tests run (e.g. on
#174 and #175):

- certifi 2026.7.22: PYSEC-2026-4320 (fixed in 2026.10.19)
- virtualenv 21.14.5: CVE-2026-113725 (fixed in 21.14.7),
CVE-2026-113722 (fixed in 21.14.9)

## Checklist

- [x] `uv run poe all` passes (ruff, mypy, pyright, bandit, complexipy,
and the
tests at 100% coverage) — locally pip-audit reports "No known
vulnerabilities found"; 737 passed, 100% coverage;
`test_gpg_sign_signs_the_commit_and_the_nested_commits` fails with git
2.34 only, fixed by #175
- [x] New behaviour has a test (no behaviour change)
- [x] README / `--help` / the man page updated, if the change is visible
to users (not visible)
- [x] The PR title reads as a [Conventional
Commit](https://www.conventionalcommits.org)
(`feat:`, `fix:`, `docs:`, …) — it becomes the squash-merge commit
message
      and the changelog line

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
git 2.34 only finds [GNUPG:] SIG_CREATED after a newline in the status
output of gpg.program. The fake gpg printed it as the first line, so
test_gpg_sign_signs_the_commit_and_the_nested_commits failed with
"gpg failed to sign the data". Like gpg, it now prints BEGIN_SIGNING
first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@thorsten-klein
thorsten-klein merged commit 668a8ad into main Oct 23, 2026
24 checks passed
@thorsten-klein
thorsten-klein deleted the test/fake-gpg-old-git branch October 23, 2026 17:55
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