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

[JBIDE-26756] added support for EAP 7.3 #637

Merged
merged 1 commit into from Aug 27, 2019

Conversation

adietish
Copy link
Member

@adietish adietish commented Aug 22, 2019

No description provided.

@adietish
Copy link
Member Author

adietish commented Aug 22, 2019

in jenkins build #347 AllSubsystemResolutionTest is failing:

Test Result (10 failures / ±0)
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, local, launchTabProvider]
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, local, server.ports]
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, rse, launchTabProvider]
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, rse, server.ports]
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, null, launchTabProvider]
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, null, server.ports]
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, local.mgmt, launchTabProvider]
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, local.mgmt, server.ports]
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, rse.mgmt, launchTabProvider]
org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.testResolution[org.jboss.ide.eclipse.as.eap.73, rse.mgmt, server.ports]

Furthermore local results dont match jenkins: I have tests failing even in master while jenkins is green for master.
And then baseline checks go crazy, they complain about changes in archives for a feature. Disabling the checks have no effect (-Dtycho.baseline=disable as pointed out in parent pom). Looks very similar to https://www.eclipse.org/lists/tycho-user/msg08141.html
@jeffmaury how do you usually handle this?

@adietish adietish force-pushed the JBIDE-26756 branch 3 times, most recently from 05d2241 to 1bd2d99 Compare August 22, 2019 14:21
@adietish
Copy link
Member Author

adietish commented Aug 22, 2019

tests all fail with an NPE:

java.lang.NullPointerException
	at org.jboss.tools.as.test.core.subsystems.AllSubsystemResolutionTest.setUp(AllSubsystemResolutionTest.java:140)

Looks like a missing file org.jboss.tools.as.test.core/serverMock/eap7.3.0.mf.jboss-as-server.jar. No idea how to create it, simply copying the 7.2 version and renaming it. Looking how this goes.
@robstryker how to correctly create the above file (I simply copied the jar for 7.2 which looks different from it's predecessors)?

@adietish
Copy link
Member Author

adietish commented Aug 22, 2019

@psrna finally jenkins build #351 is a green build. Please review.

@jeffmaury
Copy link
Member

@adietish for the mock jar the rule is the following: identify in the 7.3 distribution the corresponding jar (if I remember correctly this is jboss or wildlfy server module) and remove everything except metadata (META-INF). If you can't wait until @robstryker or @jeffmaury are back

Copy link
Member

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need more time to validate the PR. Unless @robstryker approves it, please wait for my return

@@ -5,16 +5,16 @@ Bundle-Name.0 = JBoss AS, WildFly & EAP Server Tools - Classpath Core Plug-in

# NEW_SERVER_ADAPTER Add the new runtime and server ID to the proper constants below!
AllJBossRuntimeTypes=org.jboss.ide.eclipse.as.runtime.32,org.jboss.ide.eclipse.as.runtime.40,org.jboss.ide.eclipse.as.runtime.42,org.jboss.ide.eclipse.as.runtime.50,org.jboss.ide.eclipse.as.runtime.51,org.jboss.ide.eclipse.as.runtime.60,org.jboss.ide.eclipse.as.runtime.70,org.jboss.ide.eclipse.as.runtime.71,org.jboss.ide.eclipse.as.runtime.eap.43,org.jboss.ide.eclipse.as.runtime.eap.50,org.jboss.ide.eclipse.as.runtime.eap.60,org.jboss.ide.eclipse.as.runtime.eap.61,org.jboss.ide.eclipse.as.runtime.eap.70,org.jboss.ide.eclipse.as.runtime.eap.71,org.jboss.ide.eclipse.as.runtime.eap.72,org.jboss.ide.eclipse.as.runtime.wildfly.80,org.jboss.ide.eclipse.as.runtime.wildfly.90,org.jboss.ide.eclipse.as.runtime.wildfly.100,org.jboss.ide.eclipse.as.runtime.wildfly.110,org.jboss.ide.eclipse.as.runtime.wildfly.120,org.jboss.ide.eclipse.as.runtime.wildfly.130,org.jboss.ide.eclipse.as.runtime.wildfly.140,org.jboss.ide.eclipse.as.runtime.wildfly.150,org.jboss.ide.eclipse.as.runtime.wildfly.160,org.jboss.ide.eclipse.as.runtime.wildfly.170
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be updated as well

@adietish
Copy link
Member Author

adietish commented Aug 23, 2019

@jeffmaury I've been told that this is urgent and needs to be available by next week.
Looks like this is the one you're pointing at, correct?
image
Removed everything but META-INF, renamed it & added a README.txt that points this out.

@adietish adietish force-pushed the JBIDE-26756 branch 2 times, most recently from 2ed0b03 to 37ab396 Compare August 23, 2019 09:46
@adietish
Copy link
Member Author

@psrna can QE please test this?

@jeffmaury
Copy link
Member

Why is it that urgent ? It was planned long ago on my schedule and planned to be started when I will be back. I still feel it's not complete but if it is that urgent go for it and I will deeply check it when I will be back

@odockal
Copy link
Member

odockal commented Aug 25, 2019

@adietish I have noted just a couple of issues, but I would rather to take a look into detail on Monday.

@odockal
Copy link
Member

odockal commented Aug 25, 2019

@adietish Here it goes:

  1. Not yet functional: Download and install - also missing record in jboss-stacks/stacks.yaml file

  2. Adding EAP 7.3 Beta server into EAP 7.3 Server adapter introduced warning about beta vs. 7.3 may cause critical errors.

  3. No new facet module versions for EAP 7.3 runtime type? 37ab396#diff-bd70d3ab4ac4ee1a51cf5f94af0cf6c7R1246

@adietish
Copy link
Member Author

adietish commented Aug 26, 2019

@jeffmaury about the urgency: middleware informed us that they want the adapter to be ready when they release 7.3 this week.

@adietish
Copy link
Member Author

@odockal thx for testing this.

  1. Looks to me as if the stacks file contains md5 sums & exact file sizes (look here: https://github.com/jboss-developer/jboss-stacks/blob/1.0.0.Final/stacks.yaml#L3293). I thus dont see how we can have this file augmented before we have the final release.
    btw. where is this file?
  2. I'd think that this warning only exists as long as there's no final release.
  3. I dont know about the facets, is there a spec?

@odockal
Copy link
Member

odockal commented Aug 26, 2019

@adietish Please note that I am just summarizing things I think we need to fix or know about and do them once they are ready.

  1. Looks to me as if the stacks file contains md5 sums & exact file sizes (look here: https://github.com/jboss-developer/jboss-stacks/blob/1.0.0.Final/stacks.yaml#L3293). I thus dont see how we can have this file augmented before we have the final release.
    btw. where is this file?
  • You found the file, it is correct one, but we do not need to it now as it was not yet released. But do not forget about it.
  1. I'd think that this warning only exists as long as there's no final release.
  • agree, or maybe when server is using beta libs? Or when the server is Beta?
  1. I dont know about the facets, is there a spec?
  • No idea, but judging based on previous commits that brought new adapter. It also brought new facet module versions. I will to find some specs about modules, so far no luck.

@odockal
Copy link
Member

odockal commented Aug 26, 2019

New issues:
Adding server via runtime detection does not recognize EAP 7.3 but rather some older one (maybe default)
Steps:

  1. Preferences -> Server -> Runtime Environment -> Search -> Path to EAP 7.3 server
  2. Expected: Dialog with EAP 7.3 server adapter offering
    Actual: EAP 6 server adapter instead (and as a bonus, closing the dialog will spawn empty window that's just hanging)
    Screenshot_20190826_134551

@odockal
Copy link
Member

odockal commented Aug 26, 2019

@adietish Wait a minute.... I deleted second issue. Wrong bits.

@adietish
Copy link
Member Author

@odockal sorry, confused, is the issue above valid?

@odockal
Copy link
Member

odockal commented Aug 26, 2019

@adietish the above one yes.

@adietish
Copy link
Member Author

@odockal ok, thx for spotting this, I can reproduce it. Fixing it.

@adietish
Copy link
Member Author

@odockal fixed the runtime detection issue. Please review.

Signed-off-by: Andre Dietisheim <adietish@redhat.com>
@odockal
Copy link
Member

odockal commented Aug 26, 2019

@adietish Seems fine. I checked runtime-detection, now there is EAP 7.3 detected. although I did not tests everything as some thing like after start runtime detection can be verified from snapshot. So it will need to be double checked after merging as well. Tech preview is at place, thanks for that.

@adietish
Copy link
Member Author

@odockal thx for testing and pointing out deficiencies. Helped a lot.

@adietish
Copy link
Member Author

@odockal if I get the versions right I'd guess that eap 7.3 should match the capabilities of wildfly 17, is this correct (referring to the facets that you brought up)?

@odockal
Copy link
Member

odockal commented Aug 27, 2019

@adietish Yes, that sounds like good starting point. It should be based on wildfly 17.

@adietish
Copy link
Member Author

adietish commented Aug 27, 2019

@odockal just verified, both are identical:

          <moduleType types="jst.appclient" versions="5.0, 6.0,7.0,8.0"/>
          <moduleType types="wst.web" versions="1.0,1.2,1.3,1.4"/>
          <moduleType types="jst.web" versions="2.2, 2.3, 2.4, 2.5, 3.0,3.1,4.0"/>
          <moduleType types="jst.ejb" versions="1.0, 1.1, 2.0, 2.1, 3.0, 3.1,3.2"/>
          <moduleType types="jst.ear" versions="1.2, 1.3, 1.4, 5.0, 6.0,7.0,8.0"/>
          <moduleType types="jst.connector" versions="1.0, 1.5, 1.6,1.7"/>
	  <moduleType types="jst.utility" versions="1.0"/>
          <moduleType types="jboss.package" versions="1.0"/>
          <moduleType types="jboss.singlefile" versions="1.0"/>
          <moduleType types="jst.jboss.sar" versions="1.0"/>
          <moduleType types="jbt.bpel.module" versions="1.1, 2.0"/>
          <moduleType types="bpel.module" versions="1.1, 2.0"/>
          <moduleType types="jboss.osgi" versions="1.0"/>
          <moduleType types="jst.appclient" versions="5.0, 6.0,7.0,8.0"/>
          <moduleType types="wst.web" versions="1.0,1.2,1.3,1.4"/>
          <moduleType types="jst.web" versions="2.2, 2.3, 2.4, 2.5, 3.0, 3.1, 4.0"/>
          <moduleType types="jst.ejb" versions="1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 3.2"/>
          <moduleType types="jst.ear" versions="1.2, 1.3, 1.4, 5.0, 6.0,7.0,8.0"/>
          <moduleType types="jst.connector" versions="1.0, 1.5, 1.6,1.7"/>
	  <moduleType types="jst.utility" versions="1.0"/>
          <moduleType types="jboss.package" versions="1.0"/>
          <moduleType types="jboss.singlefile" versions="1.0"/>
          <moduleType types="jst.jboss.sar" versions="1.0"/>
          <moduleType types="jbt.bpel.module" versions="1.1, 2.0"/>
          <moduleType types="bpel.module" versions="1.1, 2.0"/>
          <moduleType types="jboss.osgi" versions="1.0"/>

@odockal odockal requested a review from jeffmaury August 27, 2019 13:34
@odockal
Copy link
Member

odockal commented Aug 27, 2019

@adietish I checked as well, all three EAP 7.2, WF 17 and EAP 7.3 Beta are the same.

@psrna psrna merged commit ac6e79c into jbosstools:master Aug 27, 2019
@adietish adietish deleted the JBIDE-26756 branch August 27, 2019 13:46
@robstryker
Copy link
Member

Thanks for getting this done guys. +1

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.

None yet

5 participants