Skip to content

Stale doc references to retired mark_entrypoint_targets / clearEntrypointAttributionForRemovedFiles #2437

Closed

Description

@carlos-alm

Found while resolving merge conflicts on #2434 (not introduced by that merge — present on the branch as authored, so it lands with the PR).

#2434 retires markEntrypointTargets / mark_entrypoint_targets and clearEntrypointAttributionForRemovedFiles / clear_entrypoint_attribution_for_removed_files in favour of persistEntrypointCalls + projectEntrypointAttribution (apply_entrypoint_attribution on the Rust side). Three comments still point readers at the removed names:

  • crates/codegraph-core/src/graph/classifiers/roles.rs:444 — // 2b. Program-entrypoint IDs (#2392) — set by mark_entrypoint_targets`` . Entrypoint IDs are now set by apply_entrypoint_attribution, so this sends a future reader to a symbol that no longer exists. This is the one worth fixing — it is production code documenting where the column comes from.
  • tests/integration/issue-2392-python-entrypoints.test.ts:248-250 — comment describes the retired pre-purge capture step as the mechanism under test.

Not a correctness bug (comments only, no live references — verified by grep across src/, crates/, tests/), and deliberately left out of #2434 to keep that PR to one concern.

Note: the header comment in tests/integration/issue-2428-watch-python-entrypoints.test.ts:9-10 also names both retired functions, but there it is intentional historical context describing the bug being fixed, and should stay.

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