-
Notifications
You must be signed in to change notification settings - Fork 2
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
Azure storage #118
Azure storage #118
Conversation
azure_storage@703 aka 20210412.3 vs main ewma over 13 builds from 637 to 687 Click to see table
|
@@ -51,6 +51,8 @@ steps: | |||
- script: python -m cimetrics.github_pr | |||
env: | |||
GITHUB_TOKEN: $(GITHUB_TOKEN) | |||
AZURE_BLOB_URL: $(AZURE_BLOB_URL) | |||
AZURE_WEB_URL: $(AZURE_WEB_URL) |
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.
It'd be really nice to derive the second one from the first one, but I haven't worked out how to do it.
Re curbing growth, there's an auto-delete feature for blobs. It has to be setup with rules etc., not when creating the blob, so it's not something to implement in cimetrics, but should probably be hinted at in the readme. |
@letmaik yeah I saw that, but I think at one png per-PR (as opposed to one per push now) we may not need to worry about cleanup all that soon. |
Note to self: discuss http caching when overwriting images |
The GitHub-proxied cimetrics image in this PR has According to https://docs.github.com/en/github/authenticating-to-github/about-anonymized-image-urls#an-image-that-changed-recently-is-not-updating it seems like if the origin server doesn't set I can think of two options:
Without a doubt, option 1 is much easier, though it has a slight latency/bandwidth hit on follow-up requests. It's probably not too bad though and we could experiment with it in this PR. |
@letmaik I'm not sure it will work on this PR because: https://docs.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.models.ContentSettings?view=azure-python-previous
This implies that it may not be stored if the value wasn't set to start with. Anyway we can change the prefix if this really is the case. |
I think it just means that it inherits an earlier value but you can also set a new one. |
@letmaik it seems to work either way. |
Looks good. |
Spawned off of #103, the idea is to:
I was initially worried about the implications of 2. with concurrent jobs, but it seems to me that with batching/autoCancel it is in fact a non issue. If this turns out not to be the case, I suppose we can look at using ETags. I've added this as a side-option for now, but my intention is for this to replace the branch-based storage altogether.
Assuming we're happy with this, the plan is to:
I don't think it's worth spending time migrating old PRs, but we could keep the branch around for say, six months, before dropping it. Also pinging @eddyashton for review/feedback.