Skip to content

Write a script to help with updating tree-sitter dependencies #361

Description

@marco-c

When updating tree-sitter dependencies, there might be changes to the grammars that we might need to take into account.
Sometimes they are new features, so they don't break our current code. Sometimes they might contain breaking changes too, so we need a way to validate them.

We could write a script that:

  1. Clones a big repository such as mozilla-central;
  2. Runs RCA, storing the metrics in JSON files;
  3. Applies the tree-sitter language update;
  4. Runs RCA again, storing the metrics in a separate set of JSON files;
  5. Generates an explorable diff of the JSON files.

If the diff is empty, or all the changes in the diff makes sense, then we can apply the tree-sitter update.
If some of the changes in the diff are bad, we can't apply the tree-sitter update and we need to debug what's wrong.

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

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions