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

Sherlock workflow fails when no JS code block is present #8

Closed
sargunv opened this issue Feb 25, 2021 · 4 comments · Fixed by #9
Closed

Sherlock workflow fails when no JS code block is present #8

sargunv opened this issue Feb 25, 2021 · 4 comments · Fixed by #9

Comments

@sargunv
Copy link
Contributor

sargunv commented Feb 25, 2021

I just opened an issue over at yarnpkg/berry#2517 and got a bunch of emails telling me "Run failed: Sherlock for Yarn". Looking at the actual run, the error appears to be because "no JS code block got found". https://github.com/yarnpkg/berry/runs/1976830896?check_suite_focus=true#step:5:172. I assume this workflow should simply be a no-op when no JS test case is present in the issue instead of failing a bunch?

image

@arcanis
Copy link
Owner

arcanis commented Feb 25, 2021

The reason for that is that we need to "cancel" the subsequent job steps when there's no code, but GitHub doesn't support neutral exit code or similar feature (to the best of my knowledge?).

@sargunv
Copy link
Contributor Author

sargunv commented Feb 25, 2021

Oh, I usually do that by setting an output on the step that determines whether to continue, and then something like if: ${{ steps.blah.outputs.should-continue }} on all subsequent steps.

@arcanis
Copy link
Owner

arcanis commented Feb 25, 2021

That seems a good idea - is that something you could PR in our workflow? This part of the integration isn't stored in this repository 🤔

@sargunv
Copy link
Contributor Author

sargunv commented Feb 25, 2021 via email

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

Successfully merging a pull request may close this issue.

2 participants