Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
bump: none
---

Test-only: the `AffectedSuites` fixture ignores the machine's global and system git config, so its `git commit` no longer fails when `commit.gpgsign` is on and signing cannot reach its key; nothing a user runs changes.
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,13 @@ def commit(self, files: dict[str, str], message: str) -> str:
return self.git(self.root, "rev-parse", "HEAD")

def setUp(self) -> None:
# The machine's global config signs commits (commit.gpgsign) through a
# key the fixture cannot reach, which fails `git commit` under load.
env = mock.patch.dict(
os.environ, {"GIT_CONFIG_GLOBAL": os.devnull, "GIT_CONFIG_NOSYSTEM": "1"}
)
env.start()
self.addCleanup(env.stop)
tmp = tempfile.TemporaryDirectory()
self.addCleanup(tmp.cleanup)
self.root = pathlib.Path(tmp.name) / "clone"
Expand Down
Loading