-
Notifications
You must be signed in to change notification settings - Fork 60
Final submodule script version #404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
06aceb4 to
41d3471
Compare
Codecov Report
@@ Coverage Diff @@
## master #404 +/- ##
=======================================
Coverage 23.26% 23.26%
=======================================
Files 45 45
Lines 5489 5489
Branches 805 805
=======================================
Hits 1277 1277
Misses 3690 3690
Partials 522 522 Continue to review full report at Codecov.
|
45d141a to
fcbbeec
Compare
Since a CI system uses the commit present in a repository that already contain the differences, it is not necessary to update the tree-sitter-language
The two software now used to compare metrics are written in Rust and provide a considerable speed up on large repositories.
fcbbeec to
cf3a2e7
Compare
| print(f"Cloning rust-code-analysis master branch into /tmp") | ||
| run_subprocess( | ||
| "git", | ||
| "clone", | ||
| "--depth=1", | ||
| "--recurse-submodules", | ||
| "-j8", | ||
| "https://github.com/mozilla/rust-code-analysis", | ||
| rca_path, | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have a local clone, we can just reuse it by checking out to master instead of recloning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some CI systems fetch a single branch and you need to reset commits and make complicated stuff to retrieve master branch's commits. This solution could potentially be used on any CI system. It takes less than a second, so we could maintain it imho
Depends on #400
Fixes #367
This PR provide the final script to compute and compare metrics in order to verify whether there are differences among each tree-sitter-language update.
The changes present in this PR are:
Thanks in advance for your review! :)