glamorous-kangaroo-20427
10/19/2024, 3:30 AMmicroscopic-river-74022
10/19/2024, 3:30 AMmicroscopic-river-74022
10/19/2024, 3:31 AM--parallel
option. This allows git updates to happen in parallel and automatically rejects any Git prompt, such as username/password.
Here is an example of how to use the --parallel
option:
bash
garden update-remote all --parallel # update all remote sources in the project in parallel mode
This command will update all remote sources, actions, and modules in the project in parallel mode.
Please note that this does not parallelize the execution of tests, but it can speed up the process of updating your project's remote resources, which could indirectly make your tests run faster if they depend on these resources.
For more information, you can refer to the Garden documentation on update-remote commands ().
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------microscopic-river-74022
10/19/2024, 3:31 AMglamorous-kangaroo-20427
10/19/2024, 3:32 AMmicroscopic-river-74022
10/19/2024, 3:32 AMmicroscopic-river-74022
10/19/2024, 3:32 AMdependencies
array. Each action must be completed before the next one begins.
Here's an example of how dependencies are defined:
yaml
dependencies:
- build.my-image
- deploy.api
In this example, build.my-image
will be executed first, and once it's completed, deploy.api
will be executed. Only after all dependencies have been successfully executed will the test itself be run.
For more information, you can refer to the Garden documentation on dependencies ().
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------microscopic-river-74022
10/19/2024, 3:32 AMglamorous-kangaroo-20427
10/19/2024, 3:37 AMmicroscopic-river-74022
10/19/2024, 3:37 AMmicroscopic-river-74022
10/19/2024, 3:37 AMResolveActionTask
and BuildTask
) are tightly integrated to manage this process.
The solver uses the getStatus
method of the tasks it's processing to determine whether they (or their dependencies) need to be processed at all. If an up-to-date result is available, the getStatus
method will return a status with state: "ready"
, which indicates to the solver that the task doesn't need to be processed. This is how graph-aware caching is implemented in Garden.
However, the document does not explicitly mention parallel execution of tasks. It does mention concurrency control, but this is more about managing the execution of tasks in a way that they don't interfere with each other, rather than executing them in parallel.
In the context of a test that has dependencies on many exec actions, the solver will process these actions in the order of their dependencies. If an action is ready (i.e., up-to-date), it will not be processed again. This can make the execution of the test faster, but it does not mean that the actions are run in parallel.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------microscopic-river-74022
10/19/2024, 3:37 AM