Skip to content

Incremental flows/communities compare relative changed_files against absolute nodes.file_path #1058

Description

@Vex788

The incremental branch of flow tracing and community detection matches changed_files entries against nodes.file_path, but build_or_update_graph passes repo-relative paths while nodes.file_path holds absolute paths. normalize_file_path only normalises separators, so the comparison never matches and the incremental branch is a no-op.

Observable effect: graphs maintained purely by incremental updates end up with flows, communities and flow_memberships empty, so orient_tool, get_affected_flows_tool, list_communities_tool and get_community_tool answer with nothing while the graph itself is complete and current. A full postprocess repopulates them, which is what makes the mismatch easy to miss.

Either normalise changed_files to absolute before the comparison, or compare on the repo-relative form on both sides.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions