Skip to content

Widen the import-graph corpus to every tree-sitter language, and lift the small-n ones #3798

Closed

Description

@squid-protocol

What

import_graph_accuracy.py scores 20 languages, each on one pinned repo (three for Python). The plan:

  • Add the remaining languages that have a tree-sitter grammar and an import construct, each with its own resolution rule, as the existing 20 do. Examples: C#, Swift, Elixir, Erlang, OCaml, Julia, R, Groovy, Nim, Fortran (modules), Objective-C++, PowerShell, Terraform/HCL modules.
  • Add a second repo where n is too small to quote:
    • Go: 11 import statements;
    • Shell: 28;
    • Rust: 37;
    • Perl: 49;
    • JavaScript: 63.

Why

The coverage chart shows these as "not measured" or small-n. Imports drive every file-level hub, blast-radius and PageRank number, so they're the graph users rely on most.

How

One PR per language family: a resolution rule, a corpus entry, a baseline, and a triage of what it finds into the graph comparison ledger. The callgraph-language-onboarding skill's corpus and "sanity check" sections apply.

Activity

  1. added
    enhancement
    testing
    on Sep 26, 2026
  2. added
    scope:infra
    on Oct 16, 2026
  3. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    PR #6403 lifts JS and Shell. Remaining (scope:sweep, no burned program needs them): [ ] Go second repo blocked by engine bug (stdlib net/http linked by file stem; nested go.mod imports get no edge), prometheus/client_golang P 61.6% R 37.2%. [ ] Perl second repo blocked by engine bug (use lines inside POD counted as imports), Plack P 92.6%. [ ] New-language families without extractors: C#, Swift, Groovy, Elixir, Erlang, OCaml, Julia, R, Nim, Fortran, Obj-C++, PowerShell, HCL.

  4. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 3798-20261024T0859Z (host melek) ended without a PR. plan-held: real overlap with running 3641 on import-graph files; requeued

  5. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 3798-20261024T1239Z (host melek) ended without a PR. plan-held: real overlap with worker 3797; requeued, waits 2 h

  6. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 3798-20261024T1758Z (host melek) ended without a PR. plan held on ledger overlap; requeued after PR 6499 (cap 3/3)

  7. 10 remaining items

  8. squid-protocol commented on Nov 22, 2026

    @squid-protocol
    OwnerAuthor

    Complete: tests/import_graph_corpus.json now covers 34 languages across 49 pinned repos, including every listed language (C#, Swift, Elixir, Erlang, OCaml, Julia, R, Groovy, Nim, Fortran, Objective-C, PowerShell, HCL) and multi-repo lifts for every small-n language (Go: 3, Shell: 4, Rust: 2, Perl: 2, JavaScript: 2; landed via #6557, #6571, #6586, #6603, #6617, #6627, #6631, #6636, #6718, #7005, and siblings). Closing as complete.

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

    call-graphenhancementpriority: mediumscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions