DependsOn ordering in tests
See original GitHub issueMigrating this issue from the taskcat/taskcat-v9 repo, as it’s now archived.
A need has been identified to serialze test runs via DependsOn. The use-case involves using multiple CFN Stacks to 1) build infra, and 2) run integration tests. Running the integration tests in parallel as the infra is being built does not lead to a desired outcome.
from @jaymccon :
thinking about this, implicit dependencies should be pretty easy to do if we have a new magic parameter, something like
$[taskcat_output_MyTestName_MyOutputName]
would fetch the MyOutputName output from the stack created by the MyTestName test
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Gradle, dependsOn ordering - Stack Overflow
The unpredictable dependency ordering in Gradle is really annoying. Here is workaround for executing the dependent tasks in order:
Read more >Enforce dependsOn order on task references #11031 - GitHub
When I run this code from my root project, which includes many builds, I want to enforce the depends order of tests. I...
Read more >Gradle Task Dependencies and Ordering
Task ordering can be useful for example in the situation when both unit and integration tests are executed and it is useful to...
Read more >How to order amongst the group of dependsOn tasks?
I am trying to develop a "release" task within a multi-project build. This task needs to coordinate the execution of many tasks across...
Read more >Determine the order of Tests when tests have dependencies ...
Let's consider each test case as Vertex and dependency between two tests as Edge between two vertices. So, for example, B depends on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@andrew-glenn Yes, exactly. Also as an example, the AWS Quick Start templates use CloudFormation custom resources to do some configuration with the EKS cluster once it’s online. We’d have to use
DependsOn
on those custom resources as we’d have to wait for the EKS cluster resource to complete its provisioning process before they can be executed.Here are some example templates: https://github.com/aws-quickstart/quickstart-amazon-eks/tree/main/templates
We use cloudformation to do layered deployments. i.e. separate cfn templates are used to create separate layers.
DependsOn
along with being able to take output and use it in the dependent test would work great for us.