-
Notifications
You must be signed in to change notification settings - Fork 877
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
Upgrade commons libs, asm, jgit, jna, jackson, felix, jacoco and junit #7237
Conversation
Nice. |
I should have checked what version jgit needs first before updating that. Jgit is loaded as osgi module and it won't load dependencies which are outside the declared range -> classloader error. The manifest has
speaking of which... I should probably update JavaEWAH too. edit: have to investigate that failing php test on windows |
PHP test failure on win is likely file path length / max cp length / max arg size related. The forked JVM can't start. Will try to debug this on windows and check what is causing this. alternative is to drop the edit: suspicion confirmed, it is not the file path length itself, it is the gigantic classpath combined with the path prefix which goes over the process arg length limit. I could still make it test if I moved the workspace closer to the drive letter, going to try to replicate it in gh actions. |
266d869
to
a016a69
Compare
- both 'methodTag' and 'methodTest' seem to apply, CslTestBase L3150 returns the first result which differs in some environments - moving cursor to the right avoids this issue
- win has a 32k char process arg limit - test classpath args for the junit JVM can go over this limit if the workspace path is too long and the process will fail to start - this moves the workspace close to the drive letter as workaround
- commons-io dependency added due to sig tests
and upgrade JavaEWAH from 1.1.6 to 1.2.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sane to me. Only eyeballed this.
checkCompletionDocumentation("testfiles/completion/documentation/php82/dnfTypes.php", "$this->methodT^ag($param1, $param2);", false, ""); | ||
checkCompletionDocumentation("testfiles/completion/documentation/php82/dnfTypes.php", "$this->methodTa^g($param1, $param2);", false, ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the interesting aspect about this issue here was that the test support classes take the first completion item and simply go with it (in this case 'methodTag' and 'methodTest'). It seems like what is first can depend on the environment which can cause test failures. For some reason the lib upgrade here guaranteed test failure on windows in this particular php test case.
netbeans/ide/csl.api/test/unit/src/org/netbeans/modules/csl/api/test/CslTestBase.java
Lines 3148 to 3154 in cac7b2c
CompletionProposal match = null; | |
for (CompletionProposal proposal : proposals) { | |
if (proposal.getName().startsWith(itemPrefix)) { | |
match = proposal; | |
break; | |
} | |
} |
I think we should consider to fail the test right away when this loop returns more than one match since this would indicate that the test case is likely not stable and then update the tests. Or make sure that proposals
has a stable order.
did some manual testing and everything worked fine, all tests green -> merging |
tried to find some low hanging fruits using the dependency checker: https://github.com/apache/netbeans/actions/runs/8543693772
one commit per library, if I should drop a commit please say so.
Upgrade jsch from 0.1.72 to 0.2.17outside of jgit*s declared range