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

JBERET-597 skippable exception thrown in ItemWriter triggers new chun… #381

Merged
merged 1 commit into from Oct 17, 2023

Conversation

chengfang
Copy link
Contributor

…k within the old transaction

https://issues.redhat.com/browse/JBERET-597

@chengfang chengfang requested a review from a team as a code owner October 10, 2023 22:29
@chengfang chengfang force-pushed the skippable.exception.JBERET-597 branch from a3cbe8e to cecb409 Compare October 12, 2023 17:04
@chengfang
Copy link
Contributor Author

@liweinan this PR should be ready to merge.

This change is in an important code block, so you may want to test it with batch TCK in Java SE, and in WildFly.

You may also want to cut a release (the last release was in July 2023) of jberet-core.

@liweinan
Copy link
Contributor

@chengfang Okay! I'll do the test and then merge it to do the release, and then I'll take the work in WildFly and EAP part.

@liweinan
Copy link
Contributor

liweinan commented Oct 16, 2023

I checked out this branch locally and built the JBeret:

➤ git checkout skippable.exception.JBERET-597
image 2

And then I setup the local environment according to the README in jberet-tck-porting:

export BATCH_TCK_DIR=/Users/weli/works/jberet_tck/jakarta.batch.official.tck-2.1.1
export JBERET_PORTING_DIR=/Users/weli/works/jberet_tck/jberet-tck-porting
export JBOSS_HOME=/Users/weli/works/jberet_tck/wildfly/dist/target/wildfly-30.0.0.Final-SNAPSHOT

Then I checked out jberet-tck-porting and update the jberet version accordingly:

image 7

Then I built the jberet-tck-poriting and copy the poms into the jakarta.batch.official.tck-2.1.1:

/bin/cp $JBERET_PORTING_DIR/src/main/resources/runners/sigtest/pom.xml $BATCH_TCK_DIR/runners/sigtest/pom.xml
/bin/cp $JBERET_PORTING_DIR/src/main/resources/runners/se-classpath/pom.xml $BATCH_TCK_DIR/runners/se-classpath/pom.xml
/bin/cp $JBERET_PORTING_DIR/src/main/resources/runners/platform-arquillian/pom.xml $BATCH_TCK_DIR/runners/platform-arquillian/pom.xml
/bin/cp $JBERET_PORTING_DIR/src/main/resources/runners/platform-arquillian/src/test/resources/arquillian.xml $BATCH_TCK_DIR/runners/platform-arquillian/src/test/resources/arquillian.xml

Then I replace the used jberet version in the poms of platform-arquillian and se-classpath:

image 4

The I did the SE test firstly and the tests passed:

image 5 image 6

Next I prepare WildFly to do the EE tests. I updated the jberet version used in WildFly and rebuilt it:

image 10 image 11 image 12

After the WildFly is prepared, I copied the jberet-tck-porting.jar into WildFly deployment directory:

$ cp $JBERET_PORTING_DIR/target/jberet-tck-porting.jar $JBOSS_HOME/standalone/deployments/

And started the WildFly server:

image 13

Then I did the platform-arquillian tck test:

/Users/weli/works/jberet_tck/jakarta.batch.official.tck-2.1.1/runners/platform-arquillian
image 14

And the TCK tests passed:

image

@liweinan
Copy link
Contributor

@chengfang I have finished doing the TCK testing and record the process of testing in above. Could you please help to verify I'm doing it right? If so I'll merge this PR and do the release.

@chengfang
Copy link
Contributor Author

@liweinan looks good. thanks for verifying it.

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

3 participants