发布

  • fix(core): render critical-path tasks as a nested list in the job summary (#36394)

    frostbyte_neo 发布于 2026-07-20 18:04:08 +00:00

    Current Behavior

    In the GitHub Actions job summary, the Nx Run Report's "Speed up or
    split the longest tasks on the critical path" recommendation renders its
    task list as terminal-style rows collapsed with <br>:

    - Speed up or split the longest tasks on the critical path:<br>e2e-react-native:e2e-macos-local                 20m 2s<br>@nx/nx-source:populate-local-registry-storage    5m 31s
    

    The rows are space-padded for terminal column alignment, but HTML
    collapses runs of spaces, so the rendered summary shows ragged,
    hard-to-read lines jammed into a single bullet.

    Expected Behavior

    The Markdown renderer formats the task list as a nested list under the
    recommendation's bullet:

    - Speed up or split the longest tasks on the critical path:
      - `e2e-react-native:e2e-macos-local` — 20m 2s
      - `@nx/nx-source:populate-local-registry-storage` — 5m 31s
    

    Structurally, the critical-path recommendation now carries its task rows
    as data (RecTaskRows) instead of a pre-joined terminal string, and
    each renderer formats them natively. The terminal report and the TUI
    popup payload output are byte-for-byte unchanged (covered by the
    existing tests, which pass unmodified); only the job-summary Markdown
    changes.

    Related Issue(s)

    N/A


    View session information


    Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>

    下载附件