Skip to content

Pin tree-sitter language grammar versions

Tan Le requested to merge pin-tree-sitter-languages into main

What does this merge request do and why?

Pin tree-sitter language grammar versions

We are currently building tree-sitter grammars using the latest Git commits. While this allows us to pick up new improvements fast, it also can cause unexpected breaking changes. This commit also add some improvements to the git clone command to speed up the cloning process.

Closes https://gitlab.com/gitlab-org/modelops/ai-model-validation-and-research/prompt-library/-/issues/128

How to set up and validate locally

  1. Ensure GCP environment variables are setup.
  2. Check out to this merge request's branch.
  3. Run the follow command to build tree-sitter grammars in Docker.
    docker build --target=client --no-cache --tag promptlib-client:0.2.0 .
  4. Confirm the Docker image is built successfully.

Merge request checklist

  • I've ran the affected pipeline(s) to validate that nothing is broken.
  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.
Edited by Tan Le

Merge request reports

Loading