Skip to content

[DOCS] Document run-duration-ms action output and Duration footer field #226

Closed

Description

Summary

The infer-action GitHub Action now tracks and surfaces the agent's run duration. This was added in inference-gateway/infer-action#80 (resolves inference-gateway/infer-action#71) and is not yet reflected on the github-action.md docs page. Two user-facing surfaces need documenting:

  1. New action output run-duration-ms - wall-clock duration of the agent run in milliseconds (0 if unavailable). It joins the existing result / exit-code / pr-url / failed-tool-calls-count / total-tool-calls-count outputs and is referenced the same way: ${{ steps.<id>.outputs.run-duration-ms }}.

  2. New Duration field in the result-comment footer - rendered in the metadata line (alongside Model, Exit Code, Tokens, Cost) as **Duration:** <value>. The value is human-readable: 0s, 1s, 1m 0s, 1h 1m 1s, and shows - when the duration is unavailable. The measured window is spawn-to-exit of the infer agent child, so it excludes CLI install / Node setup time.

Affected page

  • github-action.md
    • ## Outputs table - add a run-duration-ms row.
    • ### Result comment section - add Duration to the bulleted list of footer fields, and add the **Duration:** ... line to the example footer code block.

Source

Acceptance Criteria

  • The ## Outputs table in github-action.md includes a run-duration-ms row described as "Wall-clock duration of the agent run in milliseconds (0 if unavailable)."
  • The ### Result comment section lists the Duration footer field and notes its format (0s / 1m 0s / 1h 1m 1s, - when unavailable).
  • The example result-footer code block shows the **Duration:** ... line.
  • Wording matches the run-duration-ms description in action.yml.

Activity

  1. added
    documentation
    on Jun 14, 2026
  2. edenreich commented on Jun 14, 2026

    @edenreich
    Contributor

    @claude Can you document it? use /maintainer

  3. inference-gateway-maintainer commented on Jun 14, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 6m 53s —— View job • docs/issue-226-20260614-2227 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-226-20260614-2227?quick_pull=1&title=Issue%20%23226%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23226%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented run-duration-ms output and Duration footer field

    All edits are on github-action.md and verified against the infer-action source (action.yml, src/post-results.ts, src/duration.ts).

    Todo

    • Read context & verify wording against action.yml description
    • Add issue [DOCS] Document run-duration-ms action output and Duration footer field #226 to Roadmap 2026 board, set Status = In progress
    • Add run-duration-ms row to the ## Outputs table
    • Add Duration to the ### Result comment footer field list (with format notes)
    • Add **Duration:** ... line to the example footer code block
    • Run lint:md + format:check (both pass)
    • Commit and open PR, move Status = QA

    What changed

    • Outputs table - new run-duration-ms row, placed between pr-url and failed-tool-calls-count to match the order in action.yml. Description matches action.yml verbatim: "Wall-clock duration of the agent run in milliseconds (0 if unavailable)."
    • Result comment section - new Duration bullet describing the human-readable format (0s / 1m 0s / 1h 1m 1s), the — shown when unavailable, and the spawn-to-exit measurement window (excludes CLI install / Node setup). It cross-links the run-duration-ms output.
    • Example footer code block - added **Duration:** 1m 0s to the metadata line in the exact position the action renders it (after Exit Code, before View Job).

    All four acceptance criteria are met. npm run format:check and npm run lint:md both pass.

    Note on the unavailable indicator: the issue describes it as -, but the action's buildFooter actually renders an em dash (—); the docs reflect the real output. Flag it if you'd prefer the ASCII form.

    PR: #227 (Closes #226) - issue Status moved to QA.
    | Branch docs/issue-226-20260614-2227

  4. moved this from Todo to In progress in 2026on Jun 14, 2026
  5. moved this from In progress to QA in 2026on Jun 14, 2026
  6. moved this from QA to Done in 2026on Jun 14, 2026
  7. inference-gateway-releaser commented on Jun 16, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.6.111 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions