-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
return a nonzero error code when missing an item in the cache #70
Comments
Would totally be down to submit a PR but wanted to get the feelers out about this change. |
Hi @ekimia, thanks for opining an issue. If I understand correctly you want to build what is missing in the cache and then upload it. What you want to do is list before building/uploading like so: # Rome CI workflow
rome download --platform iOS # download missing frameworks (or copy from local cache)
rome list --missing --platform ios | awk '{print $1}' | xargs carthage update --platform ios # list what is missing and update/build if needed
rome list --missing --platform ios | awk '{print $1}' | xargs rome upload --platform ios # upload what is missing If no frameworks are missing the pipe to awk will fail and the rest of the command will not be executed. This avoids rebuilding all dependencies or uploading frameworks already present in the cache. For the sake of understanding the complete command you can call list with Does this help in supporting your workflow? The download command could be further enhanced to even skip copying file locally if your Carthage |
I have opened a PR to enhance the documentation on the CI workflow. Feel free to comment: https://github.com/blender/Rome/blob/fix/ci-workflow-readme/README.md#ci-workflow |
ah this is perfect! Great idea to enhance the documentation. |
@ekimia here is the PR #71, let me know if you have comments. About exiting with non-zero status from a
|
I would be up for
|
I think this really depends on what you consider rome's job to be. In my opinion: If you perform |
I agree with @erichoracek , a miss is just one of the possible outcomes, it's not an exceptional failure that terminates the program execution. For the time being I'll leave things as they are. If the issue is brought up again I'll consider exiting with non-zero status. @ekimia please consider closing the issue if the explanations I gave about the CI workflow are enough for you. |
Closing for now. |
Enhancement Suggestion
Currently it outputs the "could not find .frameworkname.version in local cache at: CACHE_DIR but with a 0 exit code.
Automatically cache and upload if the cache isn't present
The text was updated successfully, but these errors were encountered: