Skip to content
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

Remove runtime antlr - ( workaround for 2.4 release. - we need to revert this ) #1264

Merged

Conversation

mengweieric
Copy link
Collaborator

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Eric Wei <menwe@amazon.com>
Signed-off-by: Eric Wei <menwe@amazon.com>
@mengweieric mengweieric requested a review from a team as a code owner November 4, 2022 18:40
@dblock
Copy link
Member

dblock commented Nov 4, 2022

This is a fine workaround, but how are you going to keep it in sync? I think you need something (a test in CI?) that ensures build fails if these files are out of sync.

@CEHENKLE
Copy link
Member

CEHENKLE commented Nov 4, 2022

To second what dB said -- this will unblock us but it's incredibly fragile. Please open an issue to track a long term solution and link it here before merge.

@mengweieric
Copy link
Collaborator Author

This is a fine workaround, but how are you going to keep it in sync? I think you need something (a test in CI?) that ensures build fails if these files are out of sync.

It currently has no way to keep files in sync yet, the files are just manually generated locally for a specific version of the grammar files. But yes to your point we may need such tests to check if these files are in sync. Previously we were just making it generate grammar files on every builds.

@dblock
Copy link
Member

dblock commented Nov 4, 2022

This is a fine workaround, but how are you going to keep it in sync? I think you need something (a test in CI?) that ensures build fails if these files are out of sync.

It currently has no way to keep files in sync yet, the files are just manually generated locally for a specific version of the grammar files. But yes to your point we may need such tests to check if these files are in sync. Previously we were just making it generate grammar files on every builds.

I suggest doing two things:

  1. In this PR and PR GHA, run the generator that will generate these files, and fail the CI if any of these files have changed (e.g. with https://github.com/marketplace/actions/changed-files)
  2. Open an issue to remove the generated files, linking to why we implemented this.

@anirudha anirudha changed the title Remove runtime antlr Remove runtime antlr - ( workaround for 2.4 release. - we need to revert this ) Nov 4, 2022
@mengweieric mengweieric merged commit a1527c5 into opensearch-project:2.4 Nov 4, 2022
@mengweieric mengweieric deleted the remove-runtime-antlr branch November 4, 2022 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AUTOCUT] OS Distribution Build Failed for observabilityDashboards-2.4.0
5 participants