Skip to content

Conversation

@parrt
Copy link
Member

@parrt parrt commented Aug 27, 2022

Some were turned off due to performance I think.

@parrt
Copy link
Member Author

parrt commented Aug 27, 2022

@jimidle I have reactivated some tests that are now failing. Can you take a look?

[ERROR] Tests run: 348, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 140.81 s <<< FAILURE! - in org.antlr.v4.test.runtime.go.GoRuntimeTests
[ERROR] runtimeTests[1][2]  Time elapsed: 0.066 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
Test: ExtraTokensAndAltLabels; [Go:ExtraTokensAndAltLabels] Parse output is incorrect: expectedOutput:<(s ${ (v ? a) ? })
>; actualOutput:<(s ${ (v a) ? })
>; expectedParseErrors:<line 1:3 extraneous input '?' expecting {'a', 'b'}
line 1:7 extraneous input '?' expecting '}'
>;actualParseErrors:<line 1:3 extraneous input '?' expecting {'a', 'b'}
line 1:7 extraneous input '?' expecting '}'
>.
Test directory: /var/folders/w1/_nr4stn13lq0rvjdkwh7q8cc0000gn/T/GoRunner-ForkJoinPool-1-worker-1-1661634306946


[ERROR] runtimeTests[7][15]  Time elapsed: 0.407 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
Test: PredFromAltTestedInLoopBack_1; [Go:PredFromAltTestedInLoopBack_1] Parse output is as expected, but errors are not: expectedParseErrors:<line 5:0 mismatched input '<EOF>' expecting {'s', '\n', 'x'}
>;actualParseErrors:<line 5:0 mismatched input '<EOF>' expecting '\n'
>.
Test directory: /var/folders/w1/_nr4stn13lq0rvjdkwh7q8cc0000gn/T/GoRunner-ForkJoinPool-1-worker-11-1661634326629


[ERROR] runtimeTests[14][31]  Time elapsed: 0.231 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
Test: ExtraneousInput; [Go:ExtraneousInput] Parse output is as expected, but errors are not: expectedParseErrors:<line 1:0 mismatched input 'b' expecting {<EOF>, 'a'}
>;actualParseErrors:<line 1:0 mismatched input 'b' expecting <EOF>
>.
Test directory: /var/folders/w1/_nr4stn13lq0rvjdkwh7q8cc0000gn/T/GoRunner-ForkJoinPool-1-worker-3-1661634427955

Oh, I found another test that was ignored: AtnStatesSizeMoreThan65535. I don't know if that will succeed you will find out when you try to run the tests.

@parrt parrt added this to the 4.11 milestone Aug 27, 2022
@parrt parrt mentioned this pull request Aug 27, 2022
10 tasks
@jimidle
Copy link
Collaborator

jimidle commented Aug 30, 2022

Yes - I am looking now. Not sure if i can fix them all today, but let's see

@parrt
Copy link
Member Author

parrt commented Aug 30, 2022

Hi @jimidle no problem. I'm going to try for a release this coming weekend because it's a long weekend here. We can leave this for after release if necessary.

@jimidle
Copy link
Collaborator

jimidle commented Aug 31, 2022

@parrt To fix these properly I will have to rejig the runtime structures. Which is something that I wish to do anyway, but cannot be done for this weekend's release. So, let's leave this issue open - you can assign it to me if you wish.

After release v4.11.0, I will fix these by upgrading all the structures to use generics and proper embedding.

@parrt
Copy link
Member Author

parrt commented Aug 31, 2022

OK let's leave it open and I will change the tag number.

@parrt parrt removed this from the 4.11 milestone Aug 31, 2022
@parrt parrt requested a review from jimidle September 2, 2022 17:26
@jimidle
Copy link
Collaborator

jimidle commented Oct 11, 2022 via email

@parrt
Copy link
Member Author

parrt commented Oct 13, 2022

I need to get a release inside google fairly soon; I was going to try this Friday with the existing release. Hmm... Maybe I figure out how to do that and then we can make another release with your fixes Jim?

@jimidle
Copy link
Collaborator

jimidle commented Oct 14, 2022 via email

@cyqw
Copy link
Contributor

cyqw commented Sep 12, 2025

@jimidle I have reactivated some tests that are now failing. Can you take a look?

[ERROR] Tests run: 348, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 140.81 s <<< FAILURE! - in org.antlr.v4.test.runtime.go.GoRuntimeTests
[ERROR] runtimeTests[1][2]  Time elapsed: 0.066 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
Test: ExtraTokensAndAltLabels; [Go:ExtraTokensAndAltLabels] Parse output is incorrect: expectedOutput:<(s ${ (v ? a) ? })
>; actualOutput:<(s ${ (v a) ? })
>; expectedParseErrors:<line 1:3 extraneous input '?' expecting {'a', 'b'}
line 1:7 extraneous input '?' expecting '}'
>;actualParseErrors:<line 1:3 extraneous input '?' expecting {'a', 'b'}
line 1:7 extraneous input '?' expecting '}'
>.
Test directory: /var/folders/w1/_nr4stn13lq0rvjdkwh7q8cc0000gn/T/GoRunner-ForkJoinPool-1-worker-1-1661634306946


[ERROR] runtimeTests[7][15]  Time elapsed: 0.407 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
Test: PredFromAltTestedInLoopBack_1; [Go:PredFromAltTestedInLoopBack_1] Parse output is as expected, but errors are not: expectedParseErrors:<line 5:0 mismatched input '<EOF>' expecting {'s', '\n', 'x'}
>;actualParseErrors:<line 5:0 mismatched input '<EOF>' expecting '\n'
>.
Test directory: /var/folders/w1/_nr4stn13lq0rvjdkwh7q8cc0000gn/T/GoRunner-ForkJoinPool-1-worker-11-1661634326629


[ERROR] runtimeTests[14][31]  Time elapsed: 0.231 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
Test: ExtraneousInput; [Go:ExtraneousInput] Parse output is as expected, but errors are not: expectedParseErrors:<line 1:0 mismatched input 'b' expecting {<EOF>, 'a'}
>;actualParseErrors:<line 1:0 mismatched input 'b' expecting <EOF>
>.
Test directory: /var/folders/w1/_nr4stn13lq0rvjdkwh7q8cc0000gn/T/GoRunner-ForkJoinPool-1-worker-3-1661634427955

Oh, I found another test that was ignored: AtnStatesSizeMoreThan65535. I don't know if that will succeed you will find out when you try to run the tests.

I am doing the RUST target works in rust-target (antlr4rust#4). the test case 'AtnStatesSizeMoreThan65535' is failed. I find the same issue of Go target. PR 4883

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants