Skip to content

Status functions across two reusable-workflow calls read a skipped called job instead of the call's result #73

Done

Description

@waynesun09

Body:

success() and failure() read every ancestor. #37 judges a job inside a reusable call by the call's result, both for direct dependents and further down a chain inside the same workflow. One case is left: a dependency path that crosses into another called workflow.

Example:

  • A is a reusable call with one successful job and one job skipped by its own if:.
  • middle needs A.
  • B is a reusable call that needs middle.
  • A job in B (B / leaf) has if: success().

_ancestors looks up callers with the prefix of the job being decided (B / ), so it doesn't collapse A / optional into A. B / leaf sees the skipped job and is skipped. On GitHub it runs.

Suggested fix: resolve each traversed ancestor against its own workflow's prefix (try _caller_of with the traversed key's prefix), or carry caller metadata on each job row. Add a test for A -> middle -> B with an optional skipped job in A and a success() job in B.

Found by the review agent on #37 (thread on src/app/services/workflow_scheduler.py:79).

Found in the review of #37. Part of #39.

Activity

  1. fullsend-ai-triage commented on Nov 19, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 7:16 PM UTC · Completed 7:17 PM UTC

    Commit: 69c2a2b · View workflow run →

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

  2. fullsend-ai-triage commented on Nov 19, 2026

    @fullsend-ai-triage

    The problem and a suggested fix are clearly described, including a concrete A -> middle -> B scenario and a test to add. The blocker is that the code involved is not on the main branch yet. The call-result logic for status functions inside reusable calls, and the caller lookup the fix would extend, come from the open PR #37 (workflow semantics). On main, the scheduler only has the plain ancestor traversal, so a fix can't be written or tested against main.

    This issue is therefore waiting on #37 to merge. Because #37 introduces the behavior with this remaining gap and doesn't address cross-workflow dependency paths, it is a prerequisite rather than a fix for this issue. After it lands, the issue can be re-triaged and implemented as described: resolve each traversed ancestor against its own workflow's caller prefix, and add the test for a skipped optional job in the first called workflow plus a success() job in the second.

    Blocked by:

  3. added
    ready-to-code
    and removed on Dec 3, 2026
  4. jctanner commented on Dec 3, 2026

    @jctanner
    Collaborator

    Unblocking: the prerequisite PR #37 (workflow semantics) merged on 2026-11-20, and the ancestor/caller logic it introduced is in src/app/services/workflow_scheduler.py.

    The fix as scoped: status functions inside reusable calls currently read a skipped called job instead of the call's result when the dependency path crosses two reusable-workflow calls. Resolve each traversed ancestor against its own workflow's caller prefix rather than the outermost one.

    Test: the A -> middle -> B scenario from the issue — a skipped optional job in the first called workflow plus a success() job in the second.

  5. jctanner commented on Dec 3, 2026

    @jctanner
    Collaborator

    /fs-code

  6. fullsend-ai-coder commented on Dec 3, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 10:33 PM UTC · Completed 10:45 PM UTC

    Commit: fdad287 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $1.06

  7. added a commit that references this issue on Dec 4, 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

    ready-to-code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions