question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DependsOn ordering in tests

See original GitHub issue

Migrating 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:open
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jeffreycoecommented, Nov 5, 2020

@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

0reactions
t0ffelcommented, Feb 2, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found