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

Update Excludes for Accepted TCK Challenge: https://github.com/eclipse-ee4j/jaxrs-api/issues/937 #603

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

brideck
Copy link
Contributor

@brideck brideck commented Jan 27, 2021


name: Pull Request
about: Create a pull request for a Platform TCK change
title: ''
labels: ''
assignees: ''


Fixes Issue
Specify the issue (link) that is solved with this pull request.

Related Issue(s)
Specify any related issue(s) links.

Describe the change
A clear and concise description of the change.

Additional context
Add any other context about the problem here.

CC @alwin-joseph @anajosep @arjantijms @cesarhernandezgt @dblevins @m0mus @edbratt @gurunrao @jansupol @jgallimore @kazumura @kwsutter @LanceAndersen @bhatpmk @RohitKumarJain @gthoman

@jansupol
Copy link
Contributor

While we agreed that CDI possibly can create a proxy, the cause seems to be the same as in the case of the second TCK issue, where the discussion still continues. Similar to that second issue, the ExceptionMapper is not a CDI bean, since it does not have any bean defining annotations. In the case of the bean validation, it is not clear if the TCK test classes should be treated as CDI beans, and in this case, it is not clear whether the TCK test ExceptionMapper should have been a CDI bean.

I believe the CDI related exclusions should go all or none, based on the conclusion of discussion in the Jakarta REST issue tracker.

@jansupol
Copy link
Contributor

jansupol commented Jan 27, 2021

Based on jakartaee/rest#937 (comment) I agree with the exclude. However, this exclusion would not work. For the exclusion to work, the tests need to be specified with the vehicles, if I remember correctly. I.e.

com/sun/ts/tests/jaxrs/ee/rs/ext/providers/JAXRSProvidersClient.java#isRegisteredRuntimeExceptionMapper_from_standalone

@brideck
Copy link
Contributor Author

brideck commented Jan 27, 2021

Based on eclipse-ee4j/jaxrs-api#937 (comment) I agree with the exclude. However, this exclusion would not work. For the exclusion to work, the tests need to be specified with the vehicles, if I remember correctly. I.e.

com/sun/ts/tests/jaxrs/ee/rs/ext/providers/JAXRSProvidersClient.java#isRegisteredRuntimeExceptionMapper_from_standalone

Ah, yes. I can make an update to that today with the proper vehicle added.

@LanceAndersen
Copy link

LanceAndersen commented Jan 27, 2021 via email

@jansupol
Copy link
Contributor

@LanceAndersen I never used a tool. Perhaps it is one in the tools repo?

@jansupol
Copy link
Contributor

This one looks promising

@LanceAndersen
Copy link

LanceAndersen commented Jan 27, 2021 via email

@brideck
Copy link
Contributor Author

brideck commented Jan 28, 2021

I'm not actually sure if the vehicle is required, unless the test method in question is run with multiple vehicles and only some of those are intended to be excluded. The recent Servlet exclusions that I was using as a template do not include a vehicle suffix, and they successfully excluded the test.

Regardless, the test method was incorrect in my initial commit, so it's good that I took a closer look at this. It should now be correct.

Copy link
Contributor

@jansupol jansupol left a comment

Choose a reason for hiding this comment

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

This looks much better. The signoff is missing though,

@scottmarlow
Copy link
Contributor

We should start requesting the .jtr test result files to be attached for confirming the tests to be excluded (should be the line that starts with test= (just need to be sure to not copy/paste the extra slash character in that ;-).

@scottmarlow

This comment has been minimized.

jakartaee/rest#937

Signed-off-by: Brian Decker <bmdecker@us.ibm.com>
@brideck
Copy link
Contributor Author

brideck commented Jan 29, 2021

Okay, I've successfully squashed my commits and amended in the signoff so I think it's good now. I knew I was missing it, but didn't know what the process was. Long time listener, first time caller.

Copy link
Contributor

@RohitKumarJain RohitKumarJain left a comment

Choose a reason for hiding this comment

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

LGTM

@scottmarlow
Copy link
Contributor

I downloaded the .jtr from jakartaee/rest#937 and confirm that it contains the following which matches the Jakarta EE Platform TCK change in this pr:
test=com/sun/ts/tests/jaxrs/ee/rs/ext/providers/JAXRSProvidersClient.java\#isRegisteredRuntimeExceptionExceptionMapperTest_from_standalone

Note that the test= line contains an extra \ after .java should should not be included in the exclusion list.

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.

5 participants