Skip to content

fix(ci): the fail-to-pass replay runs tests in a tree where git works, so a test that reads git history does not fail on the base for the replay's own reason #2197

Closed

Description

@dan-petty

What happened

uv run devops ci fail-to-pass --base origin/main on the #1817 branch (2026-10-24) reported tests/test_k8s_argocd_apps.py::test_no_application_renders_the_devops_cli_config_map_and_no_commit_holds_it as failed on the base, although the change did not touch what it tests. The test runs git ls-files, and in the replay directory git exits 128: the replay directory is not a git work tree, so a test that reads git history fails there for a reason that has nothing to do with the change.

What should happen

The fail-to-pass replay runs each test in a tree where git works as in the real checkout (for example a temporary worktree of the base with git worktree add --detach), or it reports a replay failure whose cause is the replay setup (git exit 128) apart from the failures of the change, so a reader does not take it for a fail-to-pass result.

Acceptance criteria

  • A test of the replay shows that a test which runs git ls-files passes on the base in the replay when it passes in the checkout.

Activity

  1. added
    source/agent
    type/bug
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/bug. The candidate describes a bug where git history tests fail in replay directories.
    • Priority: P2-Medium. The issue impacts CI reliability but does not block development or cause critical failures.
    • Value: Medium. Fixing the issue improves CI stability and test accuracy for developers.
    • Effort: High. Implementing proper git worktree handling in replay directories requires significant changes to CI infrastructure.
    • Related: test(ci): the devops ci, devops test and fail-to-pass tests start no git and reach git through the git fake #2179, which asks for a different change. Both items deal with git usage in tests, but the candidate focuses on replay directory git functionality while #2179 addresses starting git in tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/bug

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions