-
Notifications
You must be signed in to change notification settings - Fork 557
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
Hitting rate limiting issues due to .sccache_check write checks on GCS #2132
Comments
Yes, we can include an option to bypass the storage check if users verify their setup is accurate. |
I'm willing to provide mentorship for this issue. TaskImplement an option to bypass the storage check if users verify their setup is accurate. Mentorship@Xuanwo is willing to offer mentorship to help address this issue effectively. @Xuanwo promises to respond to your questions regarding the implementation of this feature within 24 hours, excluding weekends. After finishing this issue, you will
Notes
|
I would be interested! My contact info is at cceckman.com. |
Thank you very much for your interest! Mails coming in. |
Some notes from investigation & discussion with @Xuanwo so far:
The next steps I'm looking at:
|
So I think we want an I'm unclear on is where to land this. The But I guess if I think of it as something like |
Yes, I think placing it along with |
OK - I have been able to ~manually reproduce this issue, and confirm that #2133 is a fix. I don't think the test is quite production-quality though. This test script configures sccache to (a) use my personal GCS bucket for testing, and (b) When I ran the tests without my changes patched in, I saw this error:
This appears to be from the server's stderr, which I have configured to stream to the same output. This message disappeared with my patch, and with the The test itself didn't fail, though, which means this isn't a regression test. I want to:
|
cc @satyajeet104, would you like to give this PR #2133 a try and give us some feedbacks? |
Thanks a lot guys, look good to me! |
As far as I can tell from Otherwise, the test strategy will have to be based on "some other storage" which can force the error. "force the error" would be.... error if Or, I guess, check that it assumes "write" mode on a read-only filesystem storage- and check that it fails when it "needs" to do a write for something. My next test: if I point I'm admittedly getting a little lost in working out how to reliably test this >.< |
We can test against s3 storage services. They should work like the same.
|
We're using sccache v0.7.6, we have a lot of builds running in parallel and each run invokes sccache which in turn tries to do a sccache RW check by reading and writing .sccache_check dummy file. While this is fine for reading but for writing we violate the quota on GCS which allows write on the same object once per second.
Is there a way to bypass this check? We can perhaps create an env var to support this use case?
The text was updated successfully, but these errors were encountered: