This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There's a few things in here, feel free to cherry pick what you want and throw out the rest.
First, I made sure prefix is created as a directory before building. I had a build script that didn't create it and it was unclear what the error was until I annotated the code.
Second, I save the output from the build command into couch. This is useful if it does build but not correctly. That way you can at least see what happened during the build in the couch web interface or something.
The last three commits capture any exceptions for the
make
ruby script and save them into couch. Then when you try to get the output via/output/
it checks if there was an error and tells you what it was. Before this patch, themake
script would silently fail, and the only error message I would get would be about the missing output attachment.And a related question. Why is the
make
script done in ruby? I am kind of new to Heroku so maybe I am missing something but I didn't see a way to capture the output from it. So in my case, things were going wrong but I couldn't tell because the failures were silently ignored.Thanks for the project.