Skip to content

Test commits fail when GPG signing is enabled #20385

@altendky

Description

@altendky

Description

The test fixtures (tmpdir in unit tests and createTestProject in e2e tests) set up temporary git repositories but do not disable commit signing via git config. This causes test failures on developer machines configured with GPG/SSH signing agents (e.g., 1Password, pinentry-touchid).

The current state is inconsistent - some test files already use --no-gpg-sign while others do not. This makes it easy to introduce new failures when adding commits to tests.

Related:

Plugins

N/A

OpenCode version

dev branch

Steps to reproduce

  1. Configure git to use a signing agent (e.g., 1Password SSH agent, GPG with pinentry)
  2. Run tests from packages/opencode: bun test test/project/project.test.ts
  3. Tests fail with signing agent errors or spam pinentry prompts

Screenshot and/or share link

error: 1Password: agent returned an error
fatal: failed to write commit object

Operating System

Any (macOS, Linux, Windows)

Terminal

Any

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions