Skip to content

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

Merged
busunkim96 merged 2 commits into
googleapis:masterfrom
daniel-sanche:allow-no-samples
Oct 14, 2020
Merged

busunkim96 merged 2 commits into
googleapis:masterfrom
daniel-sanche:allow-no-samples

Conversation

@daniel-sanche

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

Copy link
Copy Markdown
Contributor

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

@SurferJeffAtGoogle SurferJeffAtGoogle left a comment

Copy link
Copy Markdown
Contributor

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.

@busunkim96 busunkim96 left a comment

Copy link
Copy Markdown
Contributor

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.

3 participants