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

Redirect test output when we are running on the CI #712

Merged
merged 4 commits into from
Sep 28, 2021

Conversation

damianavila
Copy link
Contributor

The idea of this PR is just redirecting to dev/null only if we are running the deployer on the CI and get the full
output when running locally.

Accordingly, to GitHub docs about environment variables, the CI is always set to true. I think that should be enough to "detect" the CI environment.

Closes #694

We were redirecting the test output to prevent the leakage of secrets
when running the deployer on the CI. At the same time, the redirection
was preventing us to get details about the failure at the time to run
the deployer locally. So, the idea of this PR is just redirecting to
dev/null only if we are running the deployer on the CI and get the full
output when running locally.
@damianavila
Copy link
Contributor Author

Picked some reviewers but everyone is invited to review 😉

Copy link
Member

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few quick thoughts but it LGTM in general!

deployer/hub.py Outdated Show resolved Hide resolved
deployer/hub.py Outdated Show resolved Hide resolved
Copy link
Member

@GeorgianaElena GeorgianaElena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants