-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Single line comments can end in newline or EOF. Fixes #11815 #11816
Single line comments can end in newline or EOF. Fixes #11815 #11816
Conversation
c8b63c4
to
ae916e5
Compare
b486a87
to
de002fb
Compare
❌ Gradle check result for b486a87: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
modules/lang-painless/src/main/java/org/opensearch/painless/antlr/PainlessParser.java
Outdated
Show resolved
Hide resolved
❕ Gradle check result for de002fb: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11816 +/- ##
============================================
- Coverage 71.38% 71.38% -0.01%
+ Complexity 59353 59330 -23
============================================
Files 4919 4919
Lines 278909 278909
Branches 40548 40548
============================================
- Hits 199098 199092 -6
- Misses 63294 63314 +20
+ Partials 16517 16503 -14 ☔ View full report in Codecov by Sentry. |
❕ Gradle check result for fdfb640: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
modules/lang-painless/src/main/java/org/opensearch/painless/antlr/PainlessParser.java
Outdated
Show resolved
Hide resolved
Ah ... conflicts, could you please rebase against latest |
fdfb640
to
5c5c595
Compare
❌ Gradle check result for 5c5c595: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
…ect#11815 Signed-off-by: camerondurham <[email protected]>
Signed-off-by: camerondurham <[email protected]>
Signed-off-by: Cameron Durham <[email protected]>
Signed-off-by: Cameron Durham <[email protected]>
5c5c595
to
88912d1
Compare
❕ Gradle check result for 88912d1: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
LGTM. The fact that no tests broke is promising, but @camerondurham if you want to spend a bit more time looking through existing tests around scripting to see if there are uncovered areas, that'd be grand. |
* Single line comments can end in newline or EOF. Fixes #11815 Signed-off-by: camerondurham <[email protected]> * Re-add license to autogen parser files Signed-off-by: camerondurham <[email protected]> * Remove noise from changelog Signed-off-by: Cameron Durham <[email protected]> * Accept single-line comments until newline char Signed-off-by: Cameron Durham <[email protected]> --------- Signed-off-by: camerondurham <[email protected]> Signed-off-by: Cameron Durham <[email protected]> (cherry picked from commit 8192488) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#11834) * Single line comments can end in newline or EOF. Fixes #11815 * Re-add license to autogen parser files * Remove noise from changelog * Accept single-line comments until newline char --------- (cherry picked from commit 8192488) Signed-off-by: camerondurham <[email protected]> Signed-off-by: Cameron Durham <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ect#11815 (opensearch-project#11816) * Single line comments can end in newline or EOF. Fixes opensearch-project#11815 Signed-off-by: camerondurham <[email protected]> * Re-add license to autogen parser files Signed-off-by: camerondurham <[email protected]> * Remove noise from changelog Signed-off-by: Cameron Durham <[email protected]> * Accept single-line comments until newline char Signed-off-by: Cameron Durham <[email protected]> --------- Signed-off-by: camerondurham <[email protected]> Signed-off-by: Cameron Durham <[email protected]>
…ect#11815 (opensearch-project#11816) * Single line comments can end in newline or EOF. Fixes opensearch-project#11815 Signed-off-by: camerondurham <[email protected]> * Re-add license to autogen parser files Signed-off-by: camerondurham <[email protected]> * Remove noise from changelog Signed-off-by: Cameron Durham <[email protected]> * Accept single-line comments until newline char Signed-off-by: Cameron Durham <[email protected]> --------- Signed-off-by: camerondurham <[email protected]> Signed-off-by: Cameron Durham <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Changes grammar of painless language to accept single-line comments that end in
\n
,\r
orEOF
.Related Issues
Resolves #11815
To Reproduce Bug Before Fix
Check List
New functionality has been documented.(skipping since no new functionality added)New functionality has javadoc addedPublic documentation issue/PR created(not including since this is a "bug fix" that wasn't documented before)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.