-
Couldn't load subscription status.
- Fork 250
Upgrade to latest version of ANTLR #724
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
|
/gcbrun |
|
@marvinkite we haven't been observing any flakiness with the ANTLR version used with CEL before. Could you describe what you're seeing in terms of flakiness? Or could you point us to a reference? |
|
The ANTLR was updated to latest version v4.12.0 in this commit from v4.10.0. This commit updates to recently released ANTLR v4.13.0. The v4.13.0 is a big release, hence the minor version bump. Despite the performance gain stated in release note there are few fixes. This is the reason to version bump. The other reason is the change in the package name to github.com/antlr4-go/antlr/v4 for this reason which cause problem to keep project dependency updated. When the project depends on this package name: the project which require go-cel which require as above the These are the two reasons. The v4.12.0 was also moved to new repository so there could be an alternative fix where only the package name is changed and the version is not bumped. I thought due to the improvement in the new version it worth to consider the upgrade. Everything looked good and all test passes but as I wrote I noticed one problem. If I run 10 times the parser test it fails 2-3 times. Exactly as you can see the builder failed. Due to this problem this PR MUST NOT BE accepted as is but I hope someone sees the benefit and can take it over and fix the last bits. If I have some more time I will investigate and may be able to fix it. |
|
@marvinkite what you're describing sounds like an issue with concurrency safety in v4.13.0. I'll investigate it, but I don't think we can upgrade CEL to the latest ANTLR based on what you're describing. |
b43c480 to
d01d24d
Compare
d01d24d to
7e420c9
Compare
|
/gcbrun |
7e420c9 to
0c55ab5
Compare
|
/gcbrun |
Upgrade ANTLR version to v4.13.0 and point to its new name github.com/antlr4-go/antlr/v4. It allows go get command to retrieve and update dependencies.
0c55ab5 to
903b5f4
Compare
|
Refreshed in #857 |
Upgrade to latest version of v4.13.0 ANTLR
The main reason is to change the name
github.com/antlr4-go/antlr/v4for this reason which cause problem to keep project dependency updated.The parser test unfortunately became unstable as randomly some test fail or succeed entirely. That problem must be resolved but unfortunately I'm not skilled enough to find the root cause.