Skip to content

GRAPH_REPORT.md header embeds the generator's absolute host path (same class as #2598) #2628

Open

Description

@AirRocker

GRAPH_REPORT.md's generated header embeds the absolute path of the machine that built it:

# Graph Report - /Users/<user>/dev/apps/<project>  (2026-08-03)

Source is graphify/report.py:104:

f"# Graph Report - {root}  ({today})",

root is interpolated as given, so the header reflects whatever was passed on the command line: running graphify update . from inside the project yields # Graph Report - ., while passing an absolute root bakes the full host path into the file.

This is the same class as #2598, just fixed for graph.html's <title>. GRAPH_REPORT.md is a tracked artifact in practice — of six repos here, four commit it, and one of those carries an absolute /Users/... path in its committed blob. The result is that the same graph produces different bytes on different machines, and the build machine's directory layout ends up in git history.

Suggested fix, mirroring #2598: prefer a project-relative label or the directory basename rather than interpolating root raw.

Notes for triage:

Observed on 0.9.40.

Activity

  1. AirRocker commented on Aug 13, 2026

    @AirRocker
    Author

    Confirmed resolved in v0.9.42 — verified against the published wheel, not just the tag: report.py now routes the header label through _portable_root_label() (basename-only, cwd-resolve reserved for the degenerate ./.. case), so GRAPH_REPORT.md no longer embeds the generator's absolute host path.

    Note for closure: #2682 landed in-range as b3ca490 but outside GitHub's merge state (PR reads CLOSED, mergedAt null), so its Fix #2628 keyword never auto-fired. Fine to close as completed.

  2. omsenjalia commented on Oct 18, 2026

    @omsenjalia
    Contributor

    This looks fixed on the v8 branch by b3ca4904 (fix(report): use a portable basename in the GRAPH_REPORT header (#2682)). Could a maintainer confirm and close?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions