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

org.eclipse.pde.build.internal.tests.p2.PublishingTests fails #661

Closed
jukzi opened this issue Jul 11, 2023 · 5 comments · Fixed by #662
Closed

org.eclipse.pde.build.internal.tests.p2.PublishingTests fails #661

jukzi opened this issue Jul 11, 2023 · 5 comments · Fixed by #662
Labels
bug Something isn't working regression Regression defect

Comments

@jukzi
Copy link
Contributor

jukzi commented Jul 11, 2023

As of today 14 tests fail in I-Builds across platforms:
for example:

https://download.eclipse.org/eclipse/downloads/drops4/I20230710-1800/testresults/html/org.eclipse.pde.build.tests_ep429I-unit-mac64-java17_macosx.cocoa.x86_64_17.html

Caused by: /Users/genie.releng/workspace/AutomatedTests/ep429I-unit-mac64-java17/workarea/I20230710-1800/eclipse-testing/test-eclipse/Eclipse.app/Contents/Eclipse/pdebuild_folder/pde.build/PublishBundle_p2infCUs/assemble.org.eclipse.pde.build.container.feature.p2.xml:72: Replace: source file /Users/genie.releng/workspace/AutomatedTests/ep429I-unit-mac64-java17/workarea/I20230710-1800/eclipse-testing/test-eclipse/Eclipse.app/Contents/Eclipse/pdebuild_folder/pde.build/PublishBundle_p2infCUs/features/org.eclipse.pde.build.container.feature/product/p2.inf doesn't exist
at org.apache.tools.ant.taskdefs.Replace.processFile(Replace.java:645)
at org.apache.tools.ant.taskdefs.Replace.execute(Replace.java:533)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at jdk.internal.reflect.GeneratedMethodAccessor1211.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
... 198 more
@iloveeclipse
Copy link
Member

I assume this is side effect of eclipse-platform/eclipse.platform#516.
Ant support libraries are built using smallest possible JLS target, and this PR above requires at least Java 8 JLS.
See also eclipse-platform/eclipse.platform#570.

@iloveeclipse iloveeclipse added bug Something isn't working regression Regression defect labels Jul 11, 2023
@jukzi
Copy link
Contributor Author

jukzi commented Jul 11, 2023

There is (also?) some regression from #637

jukzi pushed a commit to jukzi/eclipse.pde that referenced this issue Jul 11, 2023
fixes regressions from a2612ef
for example:

"FileAlreadyExistsException: license.html" in
org.eclipse.pde.build.internal.tests.p2.PublishingTests.testBug266488()

"p2.inf doesn't exist" in
org.eclipse.pde.build.internal.tests.p2.PublishingTests.testBug271373()
@jukzi jukzi linked a pull request Jul 11, 2023 that will close this issue
@jukzi
Copy link
Contributor Author

jukzi commented Jul 11, 2023

Is there any reason that such tests no executed in CI / Integration Builds?
can't see "org.eclipse.pde.build" or "PublishingTests" in
https://ci.eclipse.org/pde/job/eclipse.pde/job/PR-662/1/testReport/

@iloveeclipse
Copy link
Member

Is there any reason that such tests no executed in CI / Integration Builds? can't see "org.eclipse.pde.build" or "PublishingTests" in https://ci.eclipse.org/pde/job/eclipse.pde/job/PR-662/1/testReport/

The reason is that they fail on jenkins (at least some of pde tests, if I remember it right). Ideally one would fix that but as usually it is not high prio for anyone.

HannesWell pushed a commit that referenced this issue Jul 11, 2023
fixes regressions from a2612ef
for example:

"FileAlreadyExistsException: license.html" in
org.eclipse.pde.build.internal.tests.p2.PublishingTests.testBug266488()

"p2.inf doesn't exist" in
org.eclipse.pde.build.internal.tests.p2.PublishingTests.testBug271373()
@HannesWell
Copy link
Member

Is there any reason that such tests no executed in CI / Integration Builds? can't see "org.eclipse.pde.build" or "PublishingTests" in https://ci.eclipse.org/pde/job/eclipse.pde/job/PR-662/1/testReport/

If anybody wants to make them run in the CI, this would be of course more then welcome.
One just has to remove their disabling in:

pom.model.property.skipTests = true

In case just running all tests does not work, you maybe want to start only with the test suite org.eclipse.pde.build.tests.PDEBuildTestSuite. To enable it, just set in the build.properties:
pom.model.property..testClass = org.eclipse.pde.build.tests.PDEBuildTestSuite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Regression defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants