Artifacts are not copied when running garden test
in interactive mode (--interactive=true
)
#5629
Labels
garden test
in interactive mode (--interactive=true
)
#5629
Bug
Current Behavior
garden test
doesn't copy artifacts when in interactive mode (garden test <test-name> --interactive=true
).Expected behavior
garden test
copies artifacts in both interactive and non-interactive modes.Ideal Test action:
Reproducible example
Run
garden test <test-name> --interactive=true
in a project that stores artifacts and note that they're not copied to the.garden/artifacts
directory.Workaround
Add a script to the application repo that contains the desired commands to execute and point to that script for the command executed when running
garden test <test-name>
instead of defining the test commands in the garden config.Workaround Test action:
Additional context
Global context:
This is the same bug reported by @eysi09 here and @stumpc here for Acorn. I am re-reporting it for Bonsai per this comment.
Personal context:
The garden config files for all the applications deployed are stored in a central repo that is separate from each application's repo. Each Build action points to the git repository where the source code is stored. At the end of each test run the test reports need to be copied back to the local machine running garden. Ideally, the test commands to execute in the container can be placed inside the garden config (this requires interactive mode so it can pass the command appropriately). This currently doesn't work because when running in interactive mode garden doesn't copy the artifacts specified into the
.garden/artifacts
directory. The work around is to run in non-interactive mode (the default) but this requires a single script to execute (that must be present in the container) instead of being able to define a list of bash commands in the garden config. This is problematic since the goal for this use case was to leave the application repos completely untouched. It is also confusing to have 99% of garden config in the central repo but then have scripts added to each application repo that defines how to execute the tests.Your environment
garden version
0.13.14
The text was updated successfully, but these errors were encountered: