-
Notifications
You must be signed in to change notification settings - Fork 58
Failing CI on MacOS/Windows? #287
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
Gotcha: the phase that generates parser out of the grammar is only run on Linux, and Windows/MacOS use the I think we should generate parser out of the grammar every time we run tests, regardless of the environment |
I think the bug is tree-sitter-scala/.github/workflows/ci.yml Lines 88 to 91 in cd3a29c
If I recall correctly, at some point @keynmol, @ckipp01, and I decided that running checks on Linux is good enough, except for the external scanner C code, which we run test on all 3 OSes. |
I think, running MacOS/Windows tests only when external scanner changes is okay as long as we run them using freshly generated parser |
+1 |
Could you give me a hint on the purpose of the Check parser job? 🤔 |
To prevent someone committing a malicious C code, we test that if C sources are checked in there should be no |
Is there a reason why it's disabled for Linux environment? |
Problem ------- "Parser tests" job is run in MacOS/Windows environments whenever external scanner changes. However it's run on the `parser.c` file from this repo, which might be stale. This leads to falsely failing CI Solution ------- Remove "Parser tests" job. Instead, run "Generate parser from scratch and test it" not only for Linux
Closing this in favor of #288 |
Haven't found a button to run the workflow manually, hence this PR
I suspect that CI is failing for MacOS and Windows