Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Dec 8, 2022

Root cause was that they were ignoring URIs that intermittently failed due to the InterruptedException. These URIs were being set to the failure handler, so they weren't being dropped. The tests just needed to account for them.

Also made both of these extends AbstractFunctionalTest so that they run a lot faster now.

Fixed a typo in Jenkinsfile too.

Root cause was that they were ignoring URIs that intermittently failed due to the InterruptedException. These URIs were being set to the failure handler, so they weren't being dropped. The tests just needed to account for them. 

Also made both of these extends AbstractFunctionalTest so that they run a lot faster now.

Fixed a typo in Jenkinsfile too.
@rjrudin rjrudin requested review from BillFarber and anu3990 December 8, 2022 17:53

assertEquals(
"Unexpected count; success: " + successCount + "; skipped: " + skippedCount + "; failed: " + failedCount,
DOC_COUNT, successCount + skippedCount + failedCount + notTransformedCount.get());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@anu3990 This is the key change here (the rest was just tidying up) - the test now accounts for URIs that failed due to the InterruptedException.

assertTrue("Number of docs transformed must be <= number of docs selected; " +
"applied count: " + appliedTranscount.get() + "; success batch size: " + successBatch.size(),
appliedTranscount.get() <= successBatch.size());
"applied count: " + transformedCount.get() + "; success batch size: " + successUris.size() + "; failed count: " + failedUris.size(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same change here, failed URIs are accounted for now.

@rjrudin rjrudin merged commit 8044a17 into develop Dec 8, 2022
@rjrudin rjrudin deleted the feature/off-by-one-job-failures branch December 8, 2022 18:32
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.

3 participants