-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Backend - Fixed handling of sample compilation failure #387
Backend - Fixed handling of sample compilation failure #387
Conversation
1253593
to
9297d40
Compare
There is a build-image failure... |
@qimingj Looks like the dsl-compiler fails to load the file in some cases. Can you please investigate this? I suspect that there are some problems with file path handling.
|
You don't need the quotes around find command. RUN for pipeline in "$(find . -maxdepth 2 -name '*.py' -type f)"; do dsl-compile --py "$pipeline" --output "$pipeline.tar.gz"; done should be: RUN for pipeline in $(find . -maxdepth 2 -name '*.py' -type f); do dsl-compile --py "$pipeline" --output "$pipeline.tar.gz"; done With the quotes the results are treated as a single string with multiple lines. |
@qimingj Thanks for fixing the problem. I checked the code locally and it did not occur to me that it would work differently in Docker. I think we should modify the compiler so that it checks the existence of a file and give a meaningful error if the file does not exist.
I've checked that the quotes are needed when the files can have spaces. Otherwise |
/lgtm |
The other pair of quotes ("$pipeline") should take care of the space in file names? I can reproduce the problem locally with your previous command. |
Those quotes cannot help when the file name is already split into parts by
|
/lgtm |
/test presubmit-e2e-test |
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ark-kun, IronPan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test build-image |
1 similar comment
/test build-image |
* Update the backend test instructions with go test * Apply suggestions from code review Co-authored-by: Animesh Singh <[email protected]> Co-authored-by: Animesh Singh <[email protected]>
Fixes #354
This change is