Skip to content

test: flaky 'analyze deps: repository size detection' — commit exit 128 in CI loop #186

@elifarley

Description

@elifarley

Flaky test

tests/unit/test_analyze_deps_performance.bats"hug analyze deps: repository size detection" fails intermittently in CI with:

not ok 596 hug analyze deps: repository size detection in 588ms
# (in test file tests/unit/test_analyze_deps_performance.bats, line 102)
#   `git commit -m "commit $i"' failed with status 128

The test runs a 50-iteration commit loop (for i in {1..50} then stages + commits per iteration). CI logs show commits 1-11 succeeding before the failure — the git commit invocation exits 128 mid-loop, which is a resource/timing pressure signature (not a logic error in the code under test).

Evidence it is flaky (not a real regression)

Surfaced while addressing review feedback on #178, which touches only git-wtdel/git-wtc (no causal path to git analyze-deps):

Suggested fix direction

Motivated by

#178 — the spurious failure blocked merge gating until a manual gh run rerun cleared it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions