Skip to content

Draft: PoC for tree-sitter integration

Mikołaj Wawrzyniak requested to merge mwaw/tree-sitter-poc into master

What does this MR do and why?

This MR contains PoC for including tree sitter as part of GitLab monolith.

This MR is far from being production ready state, however its purpose is to demonstrate approach to include tree sitter as a node package due to the Ruby gems for tree sitter are stale and incomplete and are based on native extensions which are host machine architecture dependant significantly increasing distribution effort.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Run yarn install to install new packages
  2. Run bin/rspec ee/spec/lib/code_suggestions/model_selector_spec.rb
  3. Verify test suite results all but one (ee/spec/lib/code_suggestions/model_selector_spec.rb:75) test should pass

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Mikołaj Wawrzyniak

Merge request reports