Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(seed): Always include docker logs #4784

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

amckinney
Copy link
Contributor

This makes a lightweight change to seed so that we always surface the docker logs, regardless of the exit code. This is primarily meant to make it easier to diagnose the behavior of the generator during development, but it can also be used to help us understand the behavior of the generator against real APIs when we run with the --local flag.

The new expected seed output looks like the following:

Success

[php-sdk:file-upload]:  Running generator...
[php-sdk:file-upload]:  Started.
[php-sdk:file-upload]:  Generator logs here: /var/folders/bs/h5sq6ysx2tb_l9dn3tshxcxw0000gn/T/tmp-13441-jJlyGmwURozF
[php-sdk:file-upload]:  Wrote files to /Users/alex/code/fern/fern/seed/php-sdk/file-upload
[php-sdk:file-upload]:  Finished.
[php-sdk:file-upload]:  Writing .mock directory...
[php-sdk:file-upload]:  Successfully wrote .mock directory...
[php-sdk:file-upload]:  Running script composer install on file-upload

Failure

[php-sdk:file-upload]:  Running generator...
[php-sdk:file-upload]:  Started.
[php-sdk:file-upload]:  Generator logs here: /var/folders/bs/h5sq6ysx2tb_l9dn3tshxcxw0000gn/T/tmp-20608-08ncUDFnEDTA
[php-sdk:file-upload]:  Docker exited with a non-zero exit code.
[php-sdk:file-upload]:  Failed.

@amckinney amckinney merged commit 5e82e60 into main Oct 1, 2024
48 checks passed
@amckinney amckinney deleted the amckinney/seed/logs branch October 1, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants