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
[match] Add s3_object_prefix
option to match's S3Storage.
#16682
Conversation
This option is used to add a prefix to all objects managed by match. It does not automatically add a trailing `/` character to specify a directory.
Not sure how best to address the failing build
The step beforehand prints out:
If anyone has any thoughts on the best path forward let me know. |
s3_object_prefix
option to match's S3Storage.s3_object_prefix
option to match's S3Storage.
I usually just restart the tests - this error message does not make any sense. I fear it is some random machine on Circle CI that just lies to us for some reason. IF you have an idea how to fix it, pleeeeease let me know. |
Uh hey @googlebot, how about the CLA label thing!? |
75094ba
to
c6b3fe4
Compare
Will prepend this value to all target_paths of uploaded/deleted files Will strip this value from the object_key when downloading files so the path in the working directory is maintained.
c6b3fe4
to
a115e4c
Compare
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.
This looks great! I like this addition. Just a few small thoughts on adding back in some checking on the tests 😊
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.
Just tested this out and it works great for me! Thanks for adding this in! ❤️
Hey @atreat 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
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.
Congratulations! 🎉 This was released as part of fastlane 2.151.0 🚀
…#16682) * Adds `s3_object_prefix option to match. This option is used to add a prefix to all objects managed by match. It does not automatically add a trailing `/` character to specify a directory. * Updates match runner to pass `s3_object_prefix` option to Storage * Updates S3Storage to handle `s3_object_prefix` option Will prepend this value to all target_paths of uploaded/deleted files Will strip this value from the object_key when downloading files so the path in the working directory is maintained. * Update regex when stripping s3_object_prefix from object_path * Reverts changes to Match runner spec
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
Wanted to use the Match S3 storage option but realized that it would take over the bucket I had planned to use. With a prefix, I'd be able to keep android/ios codesign assets in the same bucket but partitioned off correctly.
Description
This adds the
s3_object_prefix
(MATCH_S3_OBJECT_PREFIX
envvar) as an available option. This can be used to help partition match in an existing bucket.Testing Steps
I've added RSpec examples for the areas that were updated. Also updated what seemed to be an odd stub mechanism in the runner spec as I did not expect tests to fail because this new optional option was not present.
I also switched over to use this updated option locally and was able to import my existing certificates/profiles into the expected s3 structure.