Skip to content

get_process_flow returns N steps but total_steps:0 #17

@Regis-RCR

Description

@Regis-RCR

TL;DR: get_process_flow clearly returns a populated steps array but reports total_steps: 0. The count field is plainly not wired to the actual step list.

Environment

  • memtrace 0.6.0, darwin-arm64
  • engine in remote mode on 127.0.0.1:50051
  • repo repo-a, indexed

Repro

list_processes(repo_id=repo-a) -> includes process "StatusRun_status_command"

get_process_flow(repo_id=repo-a, process=StatusRun_status_command)
  -> {"process_name": "StatusRun_status_command",
      "steps": [ {step 0: run_status_command}, {step 1: get_git_commit},
                 {step 2: verify_hooks}, {step 3: get_enablement_method},
                 {step 4: get_dir_size} ],   // 5 entries
      "total_steps": 0}

Five steps in the array, total_steps: 0.

Expected

total_steps equals the length of steps (5 here).

Actual

total_steps is 0 in this response despite the populated steps array. A caller that trusts total_steps to size or page the flow may treat the process as empty.

Severity

Low. The data is present in steps; only the summary count is wrong. This is likely a small count-population bug. Happy to send a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions