orange-ability-1812
07/27/2023, 5:11 PMgarden dev
environment and stream the logs to actually see the stack trace on the server side. It would be really awesome if there was a way to specify which services to capture logs for during a test run.
I tried doing something like this:
kind: Workflow
name: integration-tests
steps:
- command: [deploy, --logs, api]
- command: [test, integration-tests]
But it gives me an error that specifically it can't stream logs using workflows.
Is there a solution I'm missing, or is this something that would be a feature request?chilly-gigabyte-83853
07/28/2023, 9:15 AMgarden logs api --follow
and in another window run the integration tests.
You could also use sync mode in a similar fashion:
- First you'd start the dev command with garden dev
- then you'd deploy api in sync mode deploy api --sync
and then you could go on https://app.garden.io
and check the api logs from the Live page (selecting the api
from the Sources dropdown).
Of course those approaches won't work unfortunately if you are running the workflows or tests from a CI pipeline. What's your use case?orange-ability-1812
07/28/2023, 12:17 PMbright-policeman-43626
07/29/2023, 3:19 AMquaint-dress-831
08/14/2023, 8:54 AMorange-ability-1812
08/16/2023, 5:00 PM