-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Reduce Output in Atmos Tests #923
base: main
Are you sure you want to change the base?
Conversation
Important Cloud Posse Engineering Team Review RequiredThis pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes. To expedite this process, reach out to us on Slack in the |
Important Cloud Posse Engineering Team Review RequiredThis pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes. To expedite this process, reach out to us on Slack in the |
414bb4a
to
28e8c98
Compare
…pdate env var name
@Cerebrovinny please resolve the conflicts |
💥 This pull request now has conflicts. Could you fix it @Cerebrovinny? 🙏 |
@Cerebrovinny I’ve been reflecting on this, and I think my ideal implementation would suppress all logs unless there’s a failure. In the case of a failure, it would then emit the full log. Is that how it works? |
The quiet mode shows minimal output and only failures |
Can you show me what a failure looks like? Is it the same, but just says failed? If so, that won't fly. Would it be possible to buffer the logs? I don't think we can use quiet mode in CI, b/c it will make supporting open source contributions too cumbersome if the maintainers have to check out the branch, just to see what the failure/error was. |
@@ -135,3 +135,27 @@ introduction: |- | |||
Find all documentation at: [atmos.tools](https://atmos.tools) | |||
|
|||
contributors: [] | |||
|
|||
testing: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is testing a supported section in the README.md.tmpl?
💥 This pull request now has conflicts. Could you fix it @Cerebrovinny? 🙏 |
@Cerebrovinny I would prefer a different approach that doesn’t involve wrapping existing functions and introducing a new lexicon for testing. Ideal requirements:
Pseudo code (gpt):
|
@@ -135,3 +135,27 @@ introduction: |- | |||
Find all documentation at: [atmos.tools](https://atmos.tools) | |||
|
|||
contributors: [] | |||
|
|||
testing: | |||
content: |- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's a misunderstanding how the README.yaml
works. We run this though gomplate
and apply this template: https://github.com/cloudposse/.github/blob/main/README.md.gotmpl
There's no section we look for called content
or testing
.
Also, after updating the README.yaml
, run make readme
to rebuild it.
Note, we're going to do this with atmos soon, see:
And the confusion here, shows we should have a JSON schema.
@@ -14,6 +14,8 @@ import ( | |||
"github.com/cloudposse/atmos/pkg/schema" | |||
) | |||
|
|||
// captureOutput is a simple stdout capture utility specific to logger tests. | |||
// For more comprehensive output capture in other tests, use the testhelper package. | |||
func captureOutput(f func()) string { | |||
r, w, _ := os.Pipe() | |||
stdout := os.Stdout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to capture stderr
what
why
references