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

Mail samples tests should not be run for javaee_webprofile #791

Closed
brideck opened this issue Dec 15, 2021 · 11 comments
Closed

Mail samples tests should not be run for javaee_webprofile #791

brideck opened this issue Dec 15, 2021 · 11 comments
Assignees
Labels
10.0 Issues related to the Jakarta EE 10 Platform TCK release

Comments

@brideck
Copy link
Contributor

brideck commented Dec 15, 2021

Jakarta Mail is not a required component of the WebProfile specification, so the tests in samples/javamail should not be run when the javaee_webprofile keyword is specified.

The keywords should be updated to match the ones used for the javamail bucket which uses javaee_webprofile_optional instead.

@brideck brideck self-assigned this Dec 15, 2021
@gurunrao
Copy link
Contributor

gurunrao commented Jan 4, 2022

@brideck - thanks for raising the issue, Please feel free to raise a PR with modification to https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/lib/harness/keyword.properties

@gurunrao gurunrao added the 10.0 Issues related to the Jakarta EE 10 Platform TCK release label Jan 4, 2022
@scottmarlow
Copy link
Contributor

I agree with @gurunrao. This has likely been ignored in the past due to the samples just being an optional way to verify that a TCK installation works at all. 👍 for fixing it!

@brideck
Copy link
Contributor Author

brideck commented Jan 13, 2022

@scottmarlow @gurunrao I was trying to test my change locally, and it didn't seem sufficient to just update the keyword.properties file in my install. Do changes to that file require a rebuild of some sort in order to be honored in a test run?

@scottmarlow
Copy link
Contributor

@brideck what change did you make to your keyword.properties?

@brideck
Copy link
Contributor Author

brideck commented Jan 13, 2022

@scottmarlow Linked a PR with the change. It's dead simple, but I've also had trouble in the past when tinkering with this file to get everything to work the way it feels like it should.

@scottmarlow
Copy link
Contributor

I'm not sure from reading the https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/lib/util/ConfigUtil.java#L85 source that deals with loading the keyword.properties.

If you push your branch to github, myself (via https://ci.eclipse.org/jakartaee-tck/job/jakartaee-tck-scottmarlow) or @gurunrao or @alwin-joseph can build your branch for you. Once the TCK is built, then you can download it and run it.

@scottmarlow
Copy link
Contributor

@brideck the TCK is building still, takes a while.

Are you specifying !javamail when running the samples?

I think it would be something like the following with your keyword.properties change:

ant -Dkeywords="\!javamail" runclient

@LanceAndersen
Copy link

LanceAndersen commented Jan 13, 2022 via email

@brideck
Copy link
Contributor Author

brideck commented Jan 13, 2022

I'm specifying javaee_web_profile in a run and expecting that the samples/javamail subset will not be run as part of that after making the updates for this issue. I would not think that I need to additionally gate on a javamail-related keyword if everything is set up correctly.

Running samples with the javaee_web_profile keyword specified currently only excludes the samples/ejb tests.

@brideck
Copy link
Contributor Author

brideck commented Jan 14, 2022

Thanks for the build, @scottmarlow . I tried it out and it ran the expected tests for me (just the jdbc sample), so rebuilding must incorporate the contents of keyword.properties somewhere that I'm not able to find.

@scottmarlow
Copy link
Contributor

Closing as the linked pull request is merged. Please reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.0 Issues related to the Jakarta EE 10 Platform TCK release
Projects
None yet
Development

No branches or pull requests

4 participants