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

unable to update xtext-reference-project wizard examples to orbit 2024-06 / eclipse 2024-03 #2962

Open
cdietrich opened this issue Mar 24, 2024 · 24 comments

Comments

@cdietrich
Copy link
Member

cdietrich commented Mar 24, 2024

https://github.com/xtext/xtext-reference-projects/actions/runs/8408063499/job/23023767481

i am running out of time investigating whats going on ..,

am also not sure which java versions are visible to the eclipse in the tests.
locally i see java 11 disturbing

maybe we should say the java 11 users a goodbye when it comes to examples

@LorenzoBettini
Copy link
Contributor

I see a few failures resolving update sites.. maybe it's just a network failure?

What do you mean you see java 11?

@cdietrich
Copy link
Member Author

cdietrich commented Mar 24, 2024

when running the test locally.
mwe and junit runs with j11.

@LorenzoBettini
Copy link
Contributor

That will depend on what they find in your os path..

@cdietrich
Copy link
Member Author

@LorenzoBettini
problem is persistent. builds not working.
https://github.com/xtext/xtext-reference-projects/actions/runs/8431370703

@LorenzoBettini
Copy link
Contributor

These lines:

!MESSAGE bundle org.apache.felix.scr:2.2.10 (30) Circular reference detected trying to get service 
...
java.lang.Exception: stack trace
	at org.apache.felix.scr.impl.ComponentRegistry.enterCreate(ComponentRegistry.java:493)
	at org.apache.felix.scr.impl.BundleComponentActivator.enterCreate(BundleComponentActivator.java:722)

can also be found on other bug reports.

I don't think it's our fault... it's either m2e or platform...

This happens only after upgrading to the new Orbit, doesn't it?

@cdietrich
Copy link
Member Author

Did not work neither this is why I started bumping all kind of stuff

@LorenzoBettini
Copy link
Contributor

So this is the project that hasn't worked for a long time?

@cdietrich
Copy link
Member Author

There is wizard tests where gradle was broken for a long time. And there is example tests which was working

@LorenzoBettini
Copy link
Contributor

OK, but concerning the one that is failing now: when has it started to fail?

@cdietrich
Copy link
Member Author

cdietrich commented Mar 26, 2024

the wizard gradle one? or the examples one?
the examples one is green on master

@LorenzoBettini
Copy link
Contributor

The one that you mention in this issue

@cdietrich
Copy link
Member Author

the examples test is green on master
so it is related to the changes in my pr

@LorenzoBettini
Copy link
Contributor

OK, so the failure is due to the new Orbit. That was my original question (see above).

@cdietrich
Copy link
Member Author

indeed it looks like java 11 is visible "somehow" inside the tests

homeAutomationExample(org eclipse xtext swtbot tests XtextExamplesTest)

@cdietrich
Copy link
Member Author

domainModelExample(org eclipse xtext swtbot tests XtextExamplesTest)

@cdietrich
Copy link
Member Author

cdietrich commented Mar 26, 2024

still have no clue where the bad java version come from? preinstalled on ubuntu? one of the actions?

@cdietrich
Copy link
Member Author

@LorenzoBettini
Copy link
Contributor

The one shown in the screenshot says "temurin", so it is the one installed with the setup java action... but we install Java 17, don't we?

Listing the contents of that system directory in a pre step would be helpful?

Is the project the test wants to build configured for Java 11 or Java 17? Lately, I saw Eclipse having a predefined option to discover installed Java versions and automatically configure them (something I immediately uncheck). If that happens, and the project is configured for Java 11 the running Eclipse will automatically use the discovered matching version.

Just a few thoughts

@cdietrich
Copy link
Member Author

see the branch mentioned. all javas are there

@LorenzoBettini
Copy link
Contributor

So if all javas are there, it might be due to what I said

@LorenzoBettini
Copy link
Contributor

But what should I see in the mentioned branch? I was suggesting to print the contents of the java directory.

@cdietrich
Copy link
Member Author

????
grafik

@LorenzoBettini
Copy link
Contributor

OK, then I think it happens as I said before (Eclipse automatically detects all the available JDKs and configures the JREs accordingly). Maybe we should configure those projects to use Java 17 if that's not already done. In that case, Java 17 should be used in our SWTBot tests. If that's already done, then the problem is somewhere else. Currently, I can't test it locally. Maybe in the next few days.

@cdietrich
Copy link
Member Author

merged xtext/xtext-reference-projects#413
with that one we are not testing latest eclipse

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

No branches or pull requests

2 participants