-
Notifications
You must be signed in to change notification settings - Fork 48
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
updated tag store read/write to blob #533
Conversation
Background : [github-api] GHRepository.getFileContent doesn't support reading/writing a file with size more > 1 MB |
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Outdated
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Outdated
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #533 +/- ##
============================================
+ Coverage 81.75% 82.40% +0.64%
- Complexity 297 300 +3
============================================
Files 23 23
Lines 1058 1074 +16
Branches 135 135
============================================
+ Hits 865 885 +20
+ Misses 159 155 -4
Partials 34 34
|
2241a88
to
13235f3
Compare
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Outdated
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Outdated
Show resolved
Hide resolved
log.info("Image tag store {} is already initialized and have size more than 1 MB" | ||
, path); | ||
} else { | ||
throw ex; |
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.
I don't think we threw before - just want to make sure this is intended.
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.
yes, this is intentional. we were throwing it earlier as well just not explicitely.
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Outdated
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Outdated
Show resolved
Hide resolved
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.
Thanks for the update! Small adjustment and a few typos in messages to resolve.
13235f3
to
0802b87
Compare
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Show resolved
Hide resolved
...image-update/src/main/java/com/salesforce/dockerfileimageupdate/storage/GitHubJsonStore.java
Outdated
Show resolved
Hide resolved
0802b87
to
fac90f8
Compare
fac90f8
to
f8acff5
Compare
Test Cases:
new store created:
https://git.****.****.com/jitender-kumar/sfci-test/blob/master/store_new.json
store update with sized less < 1 MB
https://git.****.****.com/jitender-kumar/sfci-test/blob/master/store_new.json
store updated with size > 1MB
https://git.****.****.com/jitender-kumar/sfci-test/blob/master/store.json
Benchmarking for reads from the new API: