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

WAR class path loader configuration and tests for default and EAR loader behavior #29340

Merged
merged 10 commits into from
Sep 11, 2024

Conversation

tjwatson
Copy link
Member

@tjwatson tjwatson commented Aug 9, 2024

################################################################################################

@tjwatson
Copy link
Member Author

tjwatson commented Aug 9, 2024

#build

@LibbyBot
Copy link

LibbyBot commented Aug 9, 2024

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_5cPBkFZiEe-nla_L9rYqvA

The build will run your changed FAT bucket(s) 10 times.

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

LibbyBot commented Aug 9, 2024

Your personal pipeline request is at https://libh-proxy1.fyre.ibm.com/cognitive/pipelineAnalysis.html?uuid=755a8f70-0e2a-40e7-b587-048e977d7484

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

The build tjwatson-29340-20240809-1626
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_5cPBkFZiEe-nla_L9rYqvA
completed successfully!

@tjwatson
Copy link
Member Author

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_LuhX0FlxEe-nla_L9rYqvA

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

Your personal pipeline request is at https://libh-proxy1.fyre.ibm.com/cognitive/pipelineAnalysis.html?uuid=0dee71b2-d5cd-4bab-a214-d90279f38a1c

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

@LibbyBot
Copy link

The build tjwatson-29340-20240813-0648
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_LuhX0FlxEe-nla_L9rYqvA
completed and has errors or failures.

For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_LuhX0FlxEe-nla_L9rYqvA

@tjwatson
Copy link
Member Author

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_CQM9AFpSEe-nla_L9rYqvA

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

Your personal pipeline request is at https://libh-proxy1.fyre.ibm.com/cognitive/pipelineAnalysis.html?uuid=39df3964-d8fa-4575-94b4-6570d9216cca

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

@LibbyBot
Copy link

The build tjwatson-29340-20240814-0937
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_CQM9AFpSEe-nla_L9rYqvA
completed and has errors or failures.

For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_CQM9AFpSEe-nla_L9rYqvA

@tjwatson tjwatson changed the title Add EAR class loading tests for Class-Path processing Heritage class path configuration and tests for default and heritage behavior Aug 27, 2024
@tjwatson
Copy link
Member Author

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_5yivYGRxEe-O2sUHUib4kg

Target locations of links might be accessible only to IBM employees.

@tjwatson
Copy link
Member Author

Related Epic #28110

@LibbyBot
Copy link

The build tjwatson-29340-20240827-0653
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_5yivYGRxEe-O2sUHUib4kg
completed and has errors or failures.

For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_5yivYGRxEe-O2sUHUib4kg

@tjwatson tjwatson changed the title Heritage class path configuration and tests for default and heritage behavior WAR class path loader configuration and tests for default and EAR loader behavior Aug 30, 2024
@tjwatson
Copy link
Member Author

#build

@tjwatson
Copy link
Member Author

tjwatson commented Sep 9, 2024

Aside from one comment left about the commented out repeat, the CDI test changes look good.

Although the test changes assert the same behaviour with the new flag or or off, this is a change to the existing behaviour where the bean visibility strictly follows the classloader visibility.

At present, when the flag is set, beans declared in libraries on the war classpath are only visible to other beans in the war or its libraries, whereas the classes are visible to the whole application.

We may decide to change this before release.

One clarification here. The failures I was seeing before with earLoader was that the Class-Path references from a WAR would loose visibility to the content of the referenced JARs altogether WRT to the CDI bean visibility tests here. That I believe was a real and true bug in my impl for earLoader. What you state is true though. The bean visibility is gated by the Class-Path closure for the WAR. Same for EJB JARs Class-Path closure in the EAR. That is regardless of the use of warLoader or earLoader for the configuration. We may decide to open that gate up to allow bean visibility to all things available on the parent EAR loader regardless of the computed Class-Path closure.

@tjwatson tjwatson dismissed stale reviews from Azquelt and dazavala via 144ced7 September 9, 2024 16:16
@tjwatson
Copy link
Member Author

tjwatson commented Sep 9, 2024

#build

@LibbyBot
Copy link

LibbyBot commented Sep 9, 2024

Your personal pipeline request is at https://libh-proxy1.fyre.ibm.com/cognitive/pipelineAnalysis.html?uuid=fcb315fb-086e-4c8a-a3aa-c83e24dd84fe

Target locations of links might be accessible only to IBM employees.

@tjwatson
Copy link
Member Author

tjwatson commented Sep 9, 2024

#build

@LibbyBot
Copy link

LibbyBot commented Sep 9, 2024

Your personal pipeline request is at https://libh-proxy1.fyre.ibm.com/cognitive/pipelineAnalysis.html?uuid=36206b09-128c-4270-bba5-ff65827d9337

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

LibbyBot commented Sep 9, 2024

@LibbyBot
Copy link

LibbyBot commented Sep 9, 2024

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_hMcYkG7TEe-0ZL4JeBVc2g

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

LibbyBot commented Sep 9, 2024

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_OFC0cG7UEe-0ZL4JeBVc2g

Target locations of links might be accessible only to IBM employees.

dazavala
dazavala previously approved these changes Sep 9, 2024
Copy link
Contributor

@dazavala dazavala left a comment

Choose a reason for hiding this comment

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

Latest three commits LGTM. I know you're waiting on a doc review of the new metatype properties; that all looks logically consistent.

@LibbyBot
Copy link

@LibbyBot
Copy link

The build tjwatson-29340-20240909-1155
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_hMcYkG7TEe-0ZL4JeBVc2g
completed and has errors or failures.

For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_hMcYkG7TEe-0ZL4JeBVc2g

@LibbyBot
Copy link

The build tjwatson-29340-20240909-1200
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_OFC0cG7UEe-0ZL4JeBVc2g
completed and has errors or failures.

For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_OFC0cG7UEe-0ZL4JeBVc2g

@tjwatson
Copy link
Member Author

#libby

Copy link
Member

@dmuelle dmuelle left a comment

Choose a reason for hiding this comment

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

ID review- some suggestions per IBM style and a question to clarify on the last two descriptions. I think I understand hopw these all fit together but im not sure what we're asking the user to specify to define the attributes

Co-authored-by: David Mueller <48686014+dmuelle@users.noreply.github.com>
Copy link
Member

@dmuelle dmuelle left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@dazavala dazavala self-requested a review September 10, 2024 20:15
@tjwatson
Copy link
Member Author

#libby

@LibbyBot
Copy link

Code analysis and actions

DO NOT DELETE THIS COMMENT.
  • 10 product code files were changed.

  • Please describe in a separate comment how you tested your changes.

  • 126 FAT files were changed, added, or removed.

  • Check that the build did not break the affected FAT suite(s).

  • 1 NLS files were changed and need an ID review.

  • @OpenLiberty/message-reviewer Please review.

  • dev/com.ibm.ws.app.manager.war/resources/OSGI-INF/l10n/metatype.properties

@tjwatson tjwatson merged commit 16635fd into OpenLiberty:integration Sep 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants