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

Flakiness in running tests under Maven #25

Closed
msridhar opened this issue May 28, 2013 · 1 comment
Closed

Flakiness in running tests under Maven #25

msridhar opened this issue May 28, 2013 · 1 comment
Labels
maven WALA’s Maven build system

Comments

@msridhar
Copy link
Member

When running mvn clean verify after a fresh checkout, the WALA core tests fail to run, with the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (test) on project com.ibm.wala.core.tests: Execution test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test failed: There was an error in the forked process
[ERROR] java.lang.NoClassDefFoundError: com/ibm/wala/util/graph/NumberedGraph
[ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
[ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
[ERROR] at java.lang.Class.getMethod0(Class.java:2694)
[ERROR] at java.lang.Class.getMethod(Class.java:1622)
[ERROR] at org.apache.maven.surefire.util.ReflectionUtils.tryGetMethod(ReflectionUtils.java:57)
[ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isSuiteOnly(JUnit3TestChecker.java:64)
[ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isValidJUnit3Test(JUnit3TestChecker.java:59)
[ERROR] at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.accept(JUnit3TestChecker.java:54)
[ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.accept(JUnit4TestChecker.java:51)
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:97)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.scanClassPath(JUnit4Provider.java:206)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:103)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
[ERROR] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)

However, if we run mvn clean verify -DskipTests=true, and then run mvn clean verify, the tests run fine and pass. We should probably figure out what's going on here.

@liblit liblit modified the milestone: Retire Maven build system May 5, 2019
@liblit liblit added the maven WALA’s Maven build system label May 5, 2019
@liblit liblit removed this from the Retire Maven build system milestone May 5, 2019
@msridhar
Copy link
Member Author

msridhar commented Jan 7, 2022

Not going to worry about these Maven issues anymore

@msridhar msridhar closed this as completed Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maven WALA’s Maven build system
Projects
None yet
Development

No branches or pull requests

2 participants