Bump tree-sitter version to 0.25.2#6077
Conversation
|
For some reason pip cannot find the latest tree-sitter version (https://pypi.org/project/tree-sitter/): Might it have to do with python version? On the other hand, tree-sitter-verilog seems unmaintained. There is an open PR from some months ago to update it to version 0.21: tree-sitter/tree-sitter-verilog#76 |
05f098a to
1ad8413
Compare
|
I have made some changes to Would it be possible to use this latest Thanks! |
|
@gmlarumbe sounds great to me! Please try to adjust the CI so it works the way you propose and we can merge it if green, thanks! |
|
All tests are failing for I tried updating the Do you have any suggestion about how to add this latest version as a dependency? Would this latest version also be used by Thanks! |
|
@gmlarumbe what is the exact version that you need? if the release on pypi is not sufficient, maybe we could switch to using git directly? i.e https://github.com/tree-sitter/py-tree-sitter/tree/v0.24.0 ? this would be in the requirements file. If that would help, we could also use a specific commit instead of the version tag (if you need something from the dev branch for example) |
ae487e0 to
dcaa8dd
Compare
|
Hi @tgorochowik , The required version would be at least v0.25.2. This version still does not have a release for the Python bindings that are used in the runner. In my opinion the simplest fix would be to change the runner to use the What would be the way to include this pre-built binary of Thanks again! |
|
python binding is updating now not merged yet |
|
@gmlarumbe We already use npm in the build process, I guess we could install Alternatively, I think it should be okay to use pip with git pointing to the current last commit from https://github.com/tree-sitter/py-tree-sitter/tree/0.25 (so this is kind of what @zoomer-k suggest - thanks for this btw) - this should probably be simpler as there are fewer changes |
dcaa8dd to
cd26b02
Compare
|
I pushed a commit that should switch the package to a dev release, let's see if this helps. If not, feel free to go the |
|
I guess this would be the simplest solution. However it seems to be incompatible with current runner of Due to the latest line of its runner in Probably the runner of On the other hand the Code Quality Checks fail with the following error: Any idea of what would be the best option? Thanks again for taking the time to find a solution. |
|
@gmlarumbe would you be willing to update Alternatively we could try to come up with a way to isolate the runners a bit more and install dedicated dependencies (i.e. separate requirements, maybe venvs?) but that could be a bit more work I imagine. |
79ec552 to
07f070b
Compare
|
I force-pushed some changes that fix the compilation of the shared object for To fix the Code Quality Checks would it be possible to add Python 3.10 to the |
|
do we even need python 3.8? would it be possible to just switch to 3.10 completely? |
|
I am not sure if the conda environment is still even used though? feel free to modify it if it still is used |
75525e0 to
d0e2a8f
Compare
|
Thank you for your hard work on this @gmlarumbe ! Are the results satisfactory? |
|
Hi @tgorochowik , I would say they are not yet since it seems almost all tests are failing both for Would it be possible to check the SV test logs of this integration CI? Thanks! |
|
We don't put the output of the tools in the CI logs as they are (at least for some tools and tests) huge, make the CI much slower and the logs much less readable. That being said, if it helps debugging, feel free to just add some temporary print statements for example here: https://github.com/chipsalliance/sv-tests/blob/master/tools/runners/tree_sitter_systemverilog.py#L100 (I assume self.log is what you need?) - check what is needed, and then we can remove it before merging. Would this help? |
d0e2a8f to
140c747
Compare
b3b2a2b to
d35e1cf
Compare
|
Hi @tgorochowik , I tried adding the GitHub action to However the environment cannot find the node executable: And therefore still gives this error: This is the Any ideas? |
d927976 to
7b837f7
Compare
ee2f990 to
a83e6e9
Compare
|
The path set by I switched to |
|
@gmlarumbe could you please check if everything works as expected after the changes from @kbieganski ? |
428cbfe to
4890d91
Compare
|
Hi @tgorochowik , Sorry for the delay in the answer. I have been a bit busy lately. Regarding the error I do not really think pushed changes have to do anything with it. Let me know if I need to do something else. Thanks! |
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
4890d91 to
e1439bc
Compare
Separate PR from #6076 to update tree-sitter to a newer version after adding tree-sitter-systemverilog CI jobs.