Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Added multiple features in a specification ForkJoinSpec to verify the… #1691

Merged
merged 2 commits into from
May 20, 2020

Conversation

pctreddy
Copy link
Contributor

… fork join behavior

@coveralls
Copy link

coveralls commented May 19, 2020

Pull Request Test Coverage Report for Build 4150

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.02%) to 69.321%

Files with Coverage Reduction New Missed Lines %
cassandra-persistence/src/main/java/com/netflix/conductor/dao/cassandra/CassandraMetadataDAO.java 2 55.44%
core/src/main/java/com/netflix/conductor/core/execution/tasks/DoWhile.java 2 96.0%
Totals Coverage Status
Change from base Build 4132: 0.02%
Covered Lines: 12337
Relevant Lines: 17797

💛 - Coveralls

@codecov
Copy link

codecov bot commented May 19, 2020

Codecov Report

Merging #1691 into dev will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev    #1691      +/-   ##
============================================
+ Coverage     64.71%   64.73%   +0.01%     
- Complexity     3724     3726       +2     
============================================
  Files           289      289              
  Lines         17788    17797       +9     
  Branches       1599     1603       +4     
============================================
+ Hits          11511    11520       +9     
+ Misses         5467     5466       -1     
- Partials        810      811       +1     
Impacted Files Coverage Δ Complexity Δ
.../conductor/dao/cassandra/CassandraMetadataDAO.java 53.88% <0.00%> (-1.56%) 24.00% <0.00%> (-1.00%)
...etflix/conductor/core/execution/tasks/DoWhile.java 93.33% <0.00%> (-0.61%) 22.00% <0.00%> (+1.00%) ⬇️
...netflix/conductor/contribs/queue/QueueManager.java 60.20% <0.00%> (+4.08%) 16.00% <0.00%> (+2.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a331f4c...87b9ce4. Read the comment docs.

@@ -0,0 +1,874 @@
package com.netflix.counductor.integration.test
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add license header.

* End
*/
def "Test a simple workflow with fork join success flow"() {
setup: "Ensure that all the tasks involved in the workflow have a retry count of 0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this was done to maintain consistency with the existing JUnit tests, but this spec does not use/need modification of retry counts, so this could be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was done before using the fork_join_workflow_without_retryable_tasks , this test can be changed to use a different workflow and the setup and cleanup are not needed.

metadataService.updateTaskDef(persistedIntegrationTask2Definition)
}

def "Test restarting a failed fork join workflow"() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

restarting -> retrying

when: "The workflow is retried"
workflowExecutor.retry(workflowInstanceId)

then: "verify that all the workflow is restarted and new tasks are added in place of the failed tasks"
Copy link
Collaborator

Choose a reason for hiding this comment

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

restarted -> retried

@pctreddy pctreddy merged commit a8c81c2 into dev May 20, 2020
@pctreddy pctreddy deleted the fork_join_integration_tests branch May 20, 2020 17:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants