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

fix: samples tests should pass if no samples exist #803

Merged
merged 2 commits into from
Oct 14, 2020

Conversation

daniel-sanche
Copy link
Contributor

@daniel-sanche daniel-sanche commented Oct 13, 2020

Currently, test-samples.sh runs into a bug and crashes if the ./samples directory doesn't exist in a repo. I'd argue that the check should pass automatically if there are no samples to test against.

This would fix the issue we're running into on python-logging, where no CI tests will pass until we merge the PR adding samples

If we'd prefer having no samples to count as a test failure, I'd suggest we least add a better error message. Right now the code just crashes by trying to cd into a directory that doesn't exist

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 13, 2020
@daniel-sanche daniel-sanche changed the title fix: samples tests pass if no samples exist fix: samples tests should pass if no samples exist Oct 13, 2020
Copy link
Contributor

@SurferJeffAtGoogle SurferJeffAtGoogle left a comment

Choose a reason for hiding this comment

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

LGTM. Please wait for @busunkim96's approval.

Copy link
Contributor

@busunkim96 busunkim96 left a comment

Choose a reason for hiding this comment

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

Thanks for adding this @daniel-sanche!

@busunkim96 busunkim96 merged commit 477764c into googleapis:master Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants