Skip to content

Skip test that fails on Linux docker image on PR validation only (#294) - #504

Merged
iloveeclipse merged 1 commit into
eclipse-platform:masterfrom
iloveeclipse:issue_294
Feb 14, 2023
Merged

iloveeclipse merged 1 commit into
eclipse-platform:masterfrom
iloveeclipse:issue_294

Conversation

@iloveeclipse

Copy link
Copy Markdown
Member

If the problem can't be fixed / debugged properly, we should disable the test, otherwise other issues might be not noticed for new PR's.

Workaround for
#294

@akurtakov

Copy link
Copy Markdown
Member

I would ask to not push this one yet. It's in my list to work on that as it's real issue but I can't find time for it.

@iloveeclipse

Copy link
Copy Markdown
Member Author

I would ask to not push this one yet. It's in my list to work on that as it's real issue but I can't find time for it.

OK. Should we target 4.27 M3 - if nothing happens, this should be merged?

@akurtakov

Copy link
Copy Markdown
Member

OK. Should we target 4.27 M3 - if nothing happens, this should be merged?

Sounds good. Thanks.

@iloveeclipse

Copy link
Copy Markdown
Member Author

Just for the record: "Test Result (no failures)", so the workaround "works".

Build fails because there was no bundle version bump for tests yet => #505

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

     303 files       303 suites   7m 3s ⏱️
  4 047 tests   4 034 ✔️   8 💤 4 ❌ 1 🔥
12 068 runs  11 992 ✔️ 70 💤 5 ❌ 1 🔥

For more details on these failures and errors, see this check.

Results for commit 59105fe.

@HannesWell

Copy link
Copy Markdown
Member

I noticed that in #514 the Jenkins build succeeds without any test-failures/errors. My guess is that this is because the tests run on the standard centos-latest/8 docker-image and not a specialized one. So this is probably obsolete once #514 is submitted?

@akurtakov

Copy link
Copy Markdown
Member

@iloveeclipse Would you please rebase on top of master? I didn't manage to get to this one so time to skip it on validation.

@iloveeclipse

Copy link
Copy Markdown
Member Author

Will do.

…ipse-platform#294)

If the problem can't be fixed / debugged properly, we should disable the
test, otherwise other issues might be not noticed for new PR's.

Workaround for
eclipse-platform#294
@iloveeclipse

Copy link
Copy Markdown
Member Author

@laeubi : please note this error on "Verify Windows" check:

Error: [ERROR] Internal error: java.io.UncheckedIOException: java.nio.file.AccessDeniedException: C:\Users\runneradmin\.m2\repository\commons-fileupload\commons-fileupload\1.5\_remote.repositories.11532822172687905050.tmp -> C:\Users\runneradmin\.m2\repository\commons-fileupload\commons-fileupload\1.5\_remote.repositories -> [Help 1]

This is for sure unrelated to the change, which works as expected:
image

=> merging.

@iloveeclipse
iloveeclipse merged commit 15bd0b2 into eclipse-platform:master Feb 14, 2023
@iloveeclipse
iloveeclipse deleted the issue_294 branch February 14, 2023 13:56
@laeubi

laeubi commented Feb 14, 2023

Copy link
Copy Markdown
Contributor

@iloveeclipse I think this could be this bug:

as the windows runner already uses Maven 3.9

@akurtakov

akurtakov commented Feb 14, 2023 •

Copy link
Copy Markdown
Member

Is it possible that Tycho would have to be compiled against Maven 3.9.0? I tried e.g building platform.ua repo with Maven 3.9.0 (using 4.0.0-SNAPSHOT and -U parameter) and it still fails with:

[akurtakov@localhost eclipse.platform.ua]$ mvn clean verify 
[INFO] Scanning for projects...
[ERROR] Internal error: java.lang.NullPointerException: Cannot invoke "org.apache.maven.repository.internal.ModelCacheFactory.createCache(org.eclipse.aether.RepositorySystemSession)" because "this.modelCacheFactory" is null -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException: Cannot invoke "org.apache.maven.repository.internal.ModelCacheFactory.createCache(org.eclipse.aether.RepositorySystemSession)" because "this.modelCacheFactory" is null
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:108)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:821)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:270)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
    at java.lang.reflect.Method.invoke (Method.java:578)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.maven.repository.internal.ModelCacheFactory.createCache(org.eclipse.aether.RepositorySystemSession)" because "this.modelCacheFactory" is null
    at org.apache.maven.project.DefaultProjectBuilder.createModelCache (DefaultProjectBuilder.java:1002)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:362)
    at org.sonatype.maven.polyglot.TeslaProjectBuilder.build (TeslaProjectBuilder.java:43)
    at org.apache.maven.graph.DefaultGraphBuilder.collectProjects (DefaultGraphBuilder.java:349)
    at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:340)

@laeubi

laeubi commented Feb 14, 2023

Copy link
Copy Markdown
Contributor

Yes I think you are right, let me check if I can find a hack for that....

@laeubi

laeubi commented Feb 14, 2023

Copy link
Copy Markdown
Contributor

@akurtakov I think the other issue might because by some references to maven-legacy, we should try to get rid of it (unless test-scoped), so probably this is a good time to work on that now.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants