test(#5208): add fork step definitions and world state - #5225
Conversation
Add Gherkin step definitions for fork operations in behaviour tests:
- Given a fork {string} of the enrolled test repository
- When a fork pull request is opened
- When a commit is pushed to the fork pull request
Extend World struct with ForkOwner, ForkRepo, ForkPRNumber, and
ForkPRBranch fields. Register fork steps in the suite and reset
fork state between scenarios.
Step definitions use only the scm.Driver interface per ADR-0066.
Include unit tests verifying:
- Validation errors for missing preconditions
- Full lifecycle with mock scm.Driver (fork created, PR opened,
commit pushed) with world state assertions
|
/fs-review |
Site previewPreview: https://02f8e09d-site.fullsend-ai.workers.dev Commit: |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Looks good to me |
|
🤖 Finished Review · ✅ Success · Started 8:18 PM UTC · Completed 8:23 PM UTC |
|
/fs-fix get the coverage to 80% or above |
Add tests for error paths and auto-fill branch in givenFork, CommitFileToFork/CreateForkChangeProposal failure paths in whenForkPullRequestOpened and whenCommitPushedToForkPR, and all three branches of BehaviourScriptPath. Raises patch coverage to ~84%% to meet the 80%% CI threshold.
🔧 Fix agent — iteration 1 (human-triggered)Added unit tests to raise patch coverage above the 80% CI threshold. Enhanced fork_test.go with 5 new test cases covering error paths and the auto-fill branch in givenFork (100%), whenForkPullRequestOpened (100%), and whenCommitPushedToForkPR (100%). Created world_test.go with 3 tests covering all branches of BehaviourScriptPath (100%). The registerForkSteps function (godog registration glue) remains untested at 0%, consistent with all other register* functions in the package. Estimated patch coverage is ~84%, above the 80% threshold with 5% tolerance. Fixed (2):
Tests: passed Decision points
Updated by fullsend fix agent |
|
🤖 Finished Fix · ✅ Success · Started 8:31 PM UTC · Completed 8:46 PM UTC |
E2E tests are runningAuthorization passed for this commit. See the E2E Tests workflow for results. |
|
🤖 Finished Retro · ✅ Success · Started 7:55 AM UTC · Completed 8:13 AM UTC |
Retro: PR #5225 —
|
Add Gherkin step definitions for fork operations in behaviour tests:
Extend World struct with ForkOwner, ForkRepo, ForkPRNumber, and ForkPRBranch fields. Register fork steps in the suite and reset fork state between scenarios.
Step definitions use only the scm.Driver interface per ADR-0066.
Include unit tests verifying:
commit pushed) with world state assertions
Closes #5208
Post-script verification
feat/5208-fork-step-definitions)a2886fef736364f1b5ea5fc50ac8a2a18c734dad..HEAD)