5d8bbf22b5
CI / push-validation (pull_request) Successful in 23s
CI / helm (pull_request) Successful in 33s
CI / build (pull_request) Successful in 3m50s
CI / lint (pull_request) Successful in 4m4s
CI / quality (pull_request) Successful in 4m13s
CI / typecheck (pull_request) Successful in 4m39s
CI / security (pull_request) Successful in 4m47s
CI / integration_tests (pull_request) Successful in 8m26s
CI / e2e_tests (pull_request) Successful in 8m36s
CI / unit_tests (pull_request) Successful in 8m47s
CI / docker (pull_request) Successful in 1m39s
CI / coverage (pull_request) Successful in 15m1s
CI / docker (push) Blocked by required conditions
CI / status-check (push) Blocked by required conditions
CI / coverage (push) Blocked by required conditions
CI / benchmark-regression (push) Waiting to run
CI / benchmark-publish (push) Waiting to run
CI / status-check (pull_request) Successful in 5s
CI / push-validation (push) Successful in 42s
CI / helm (push) Successful in 1m10s
CI / build (push) Successful in 3m46s
CI / lint (push) Successful in 3m55s
CI / quality (push) Successful in 4m17s
CI / typecheck (push) Successful in 4m28s
CI / e2e_tests (push) Successful in 7m17s
CI / integration_tests (push) Successful in 7m50s
CI / unit_tests (push) Successful in 8m52s
CI / security (push) Failing after 15m17s
CI / benchmark-regression (pull_request) Has been cancelled
CI / benchmark-publish (pull_request) Has been cancelled
Add 3 Behave scenarios covering GitWorktreeSandbox.cleanup_stale(): - Removes existing branch and worktree directory - Idempotent when no branch exists (returns False) - create() succeeds after cleanup_stale removes stale branch ISSUES CLOSED: #7271
23 lines
1.3 KiB
Gherkin
23 lines
1.3 KiB
Gherkin
@sandbox-reexecute-cleanup
|
|
Feature: Stale worktree branch cleanup before re-execute (#7271)
|
|
Verifies that re-executing a plan cleans up the stale worktree
|
|
branch from the previous execution before creating a fresh sandbox.
|
|
|
|
Scenario: cleanup_stale removes existing branch and worktree for srec
|
|
Given a temp git repo with a worktree branch for plan "01TESTREEXEC000000000000" for srec
|
|
When I call cleanup_stale for plan "01TESTREEXEC000000000000" for srec
|
|
Then the branch "cleveragents/plan-01TESTREEXEC000000000000" should not exist for srec
|
|
And the worktree directory should not exist for srec
|
|
|
|
Scenario: cleanup_stale is idempotent when no branch exists for srec
|
|
Given a temp git repo without any worktree branches for srec
|
|
When I call cleanup_stale for plan "01TESTNOEXIST00000000000" for srec
|
|
Then cleanup_stale should return False for srec
|
|
|
|
Scenario: create succeeds after cleanup_stale removes stale branch for srec
|
|
Given a temp git repo with a worktree branch for plan "01TESTRECREATE0000000000" for srec
|
|
When I call cleanup_stale for plan "01TESTRECREATE0000000000" for srec
|
|
And I create a fresh sandbox for plan "01TESTRECREATE0000000000" for srec
|
|
Then the fresh sandbox should be a directory for srec
|
|
And the branch "cleveragents/plan-01TESTRECREATE0000000000" should exist for srec
|