Skip to content

ci: add dummy-playback behavior-test infrastructure #6837

Closed

Description

@ggallen

What happens

The behavior-test harness needs shared infrastructure for dummy-playback scenarios, including repository allocation and installation, SCM and CI driver support, workflow/pipeline polling, dispatch-log handling, scenario state, and cleanup behavior.

These changes are implemented in PR #7873, together with the playback scenarios, runtime changes, and CI integration that consume them.

What should happen

The behavior-test framework should provide stable, reusable infrastructure for playback scenarios while preserving the existing behavior-test suite. Workflow and pipeline polling should identify the intended dispatch, honor cancellation and timeout conditions, and support the relevant GitHub and GitLab drivers.

Context

This issue is the infrastructure child of the dummy-playback behavior-test rollout tracked by the parent issue. The original harness proposal described this work as PR 1b; PR #7873 now contains that infrastructure together with the subsequent scenario, runtime, and CI work.

Tracking

Parent tracking issue: #7939

Implementation context: PR #7873.

Activity

  1. fullsend-ai-triage commented on Sep 1, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 3:35 AM UTC · Completed 3:39 AM UTC

    Commit: 87cb9cb · View workflow run →

    Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $0.78

  2. added
    feature
    triaged
    component/e2e
    type/chore
    on Sep 1, 2026
  3. fullsend-ai-triage commented on Sep 1, 2026

    @fullsend-ai-triage

    Re-triaged following today's /fs-triage request. The situation has changed materially since the last pass: PR #7873, which previously contained this issue's infrastructure bundled with the runtime, scenarios, and CI work, was closed without merging a few minutes before this request, with the author noting it was superseded by the new parent tracking issue #7939. That issue now tracks four split-out children: this issue (infrastructure), #7940 (runtime hardening), #7941 (scenarios/fixtures), and #7942 (CI integration/admin e2e retirement).

    A fresh repo check confirms none of this issue's deliverables exist yet -- no PlaybackDriver, IsPlaybackMode, or SetRepoHint in pkg/behaviourtest, no ListPullRequestReviews on the SCM drivers, and dispatchWait is still 12 minutes in the GitHub Actions CI driver. So this issue is no longer blocked by an in-flight PR -- it is unblocked, actionable work.

    Sibling issue #7940 (runtime hardening) is not a prerequisite here: the base dummy-playback runtime already landed separately via the earlier merged PR, so this infrastructure piece can proceed independently of that hardening work. #7939 itself is a tracking issue rather than a blocker.

    Carrying forward implementation notes from prior triage passes (still valid against the current tree):

    • The playback driver should allocate a fresh repo per scenario, diverging from the existing pool-based driver -- take care not to regress pool-based test paths.
    • beforeScenario needs a name parameter, requiring updates to its three call sites in init_test.go.
    • Adding ListPullRequestReviews to the scm.Driver interface requires implementations in both the GitHub and GitLab drivers plus the panickingSCM fake.
    • Raising dispatchWait from 12 to 20 minutes should be validated against real playback scenario timing.
    • Any build-tag path references should target internal/e2etest/build.go (live-test infra moved there per ADR 0066), not the older pkg/e2etest/ path.

    This is internal test-infrastructure work (category: feature, not a defect fix), so it falls outside the automatically-promoted categories and will not be auto-dispatched for implementation.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
    Previous run

    Re-triage per the stale-issue review request:

    Still relevant. The tracking issue (#6788) is closed and the dependency PR 1a (#6789, dummy-playback runtime) is merged, but none of this issue's deliverables — PlaybackDriver, the playback/repo step definitions, or the new World fields — exist in the tree yet, so the work described here is still outstanding and still needed to unblock the remaining parts of the playback-testing track.

    One drift found: the issue's file-path references under pkg/e2etest/ are stale. Live-test infrastructure moved to internal/e2etest/ in September (per ADR 0066's changelog and issue #7279), so the build-tag change this issue calls for should target internal/e2etest/build.go instead. Everything else referenced (the install.Driver/scm.Driver interfaces, SettleFunc/awaitWorkflowReady, the GitHub/GitLab CI drivers) still matches the current codebase.

    No open PR currently addresses this issue, and a check of the fullsend-ai/agents repo turned up no related or conflicting work in flight.

    As requested, this pass does not trigger or recommend ready-to-code — the issue is left tagged for human prioritization. Prior triage findings (fresh-repo-per-scenario driver semantics, the 3 init_test.go call sites needing updates, the ListPullRequestReviews fan-out across SCM implementations and fakes, and the dispatchWait timing bump) are carried forward unchanged above.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
    Previous run (2)

    Triage Summary

    Severity: Medium · Category: Feature (internal test infrastructure)

    This is PR 1b of the e2e playback testing track. The dependency on PR 1a (#6789, dummy-playback runtime) is confirmed merged. No blocking prerequisites remain.

    Key implementation notes

    • The PlaybackDriver creates a fresh repo per scenario (no pool reuse), which differs from the existing pool-based driver — take care not to break existing pool-based tests.
    • The beforeScenario signature change (adding name string) requires updating 3 existing call sites in init_test.go.
    • The ListPullRequestReviews addition to the scm.Driver interface requires implementations in both GitHub and GitLab drivers plus the panickingSCM fake.
    • The dispatchWait increase from 12→20 minutes in GitHub Actions CI driver should be validated against actual playback scenario timing.

    Proposed test cases

    // Unit test for PlaybackDriver
    func TestPlaybackDriver_AllocateRepo(t *testing.T) {
        // Verify AllocateRepo creates a repo with scenario-derived name hint,
        // runs fullsend repos install --runtime dummy-playback,
        // and returns the repo name.
    }
    
    func TestPlaybackDriver_SetRepoHint(t *testing.T) {
        // Verify SetRepoHint stores a slug used in the next AllocateRepo call.
        // Input: "Triage Labels Scenario" -> slug: "triage-labels-scenario"
    }
    
    func TestWorld_IsPlaybackMode(t *testing.T) {
        // Verify IsPlaybackMode returns true when Driver is *PlaybackDriver,
        // false otherwise.
    }

    Related issues


    Labels: Internal e2e test infrastructure for the playback runtime — component/e2e for the test domain and type/chore for non-user-facing housekeeping.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. fullsend-ai-scribe commented on Sep 3, 2026

    @fullsend-ai-scribe

    Meeting update — 2026-09-03

    Relevant to this issue: Progress on the dummy-playback test infrastructure was discussed, along with concerns about complexity and fragility that may inform harness design decisions.

    • A playback mechanism is being developed to simulate multi-agent sequences for behavior testing, building on the dummy-playback runtime (resolved in Add dummy-playback runtime for replaying canned agent results #6788)
    • The playback mechanism tracks test sequences using GitHub issues to coordinate outputs across multiple agent invocations
    • Concerns were raised about the complexity and potential for fragility within the testing infrastructure, suggesting the harness design should prioritize maintainability

    Unresolved: Balancing comprehensive multi-agent simulation with keeping the test infrastructure simple and non-fragile.

    Meeting notes

  5. ralphbean commented on Sep 24, 2026

    @ralphbean
    Member

    /fs-triage lots of things have changed between when this was originally filed and now across both the https://github.com/fullsend-ai/fullsend and https://github.com/fullsend-ai/agents repos. Is this still relevant? This is a stale-issue review, not an implementation request: even if the issue is still a valid bug and has sufficient information, do not recommend or trigger ready-to-code yet. Leave it for human prioritization after confirming whether it remains relevant. Do not close a still-relevant bug merely to avoid coding it.

  6. fullsend-ai-triage commented on Sep 24, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 6:55 PM UTC · Completed 6:59 PM UTC

    Commit: fbf65c8 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.39

  7. added
    triaged
    and removed
    feature
    triaged
    on Sep 24, 2026
  8. changed the title [-]ci: add behaviour test harness for dummy-playback runtime[/-] [+]ci: add dummy-playback behavior-test infrastructure[/+] on Oct 1, 2026
  9. 9 remaining items

  10. added
    feature
    triaged
    on Oct 1, 2026
  11. ggallen commented on Oct 1, 2026

    @ggallen
    MemberAuthor

    /fs-code

  12. fullsend-ai-coder commented on Oct 1, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 9:01 PM UTC · Completed 9:25 PM UTC

    Commit: 4f2746c · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $10.66

  13. added 3 commits that reference this issue on Oct 1, 2026
  14. added 2 commits that reference this issue on Oct 2, 2026
  15. added a commit that references this issue on Oct 2, 2026
  16. added 2 commits that reference this issue on Oct 2, 2026
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

    component/e2efeaturetriagedtype/chore

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions