-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
verify that docker script reached its end #454
Conversation
protect against apparent early termination
I think if we even just did |
I think that there already is an |
My rough understanding of what's happening:
|
Could it be that using Edit: Drop wrongly placed "not". |
I don't think so. The |
this build was run after rendering with this PR, confirming that |
Thanks for the link. I agree with your conclusion. |
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.
LGTM
@gqmelo, what do you think about this change? |
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.
LGTM
Thanks @minrk. Thanks everyone who helped review. |
@@ -50,5 +52,11 @@ conda build /recipe_root --quiet || exit 1 | |||
{%- endfor -%} | |||
{%- endblock -%} | |||
|
|||
touch /feedstock_root/build_artefacts/conda-forge-build-done | |||
EOF | |||
|
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.
Missed that we did not include another empty line below. As a result, this means the terminal newline would be dropped from this file. Fixing it in PR ( #459 ).
# see https://github.com/conda-forge/conda-smithy/pull/337 | ||
# for a possible fix | ||
set -x | ||
test -f "$FEEDSTOCK_ROOT/build_artefacts/conda-forge-build-done" || exit 1 |
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.
An empty line is added after here in PR ( #459 ) so the re-rendered file has a terminal newline.
protects against early termination appearing as success.
This is one small piece of #337, but might be reviewed and merged more easily because it doesn't change anything, just adds a check that the script finished executing.
This would at least turn the cases fixed by #337 into failures, rather than mysteriously missing packages.