Skip to content
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

🌱 cron: don't write any bestpractices data for projects without repo URL #4095

Merged
merged 1 commit into from May 8, 2024

Conversation

spencerschrock
Copy link
Contributor

What kind of change does this PR introduce?

cron fix

What is the current behavior?

We still run into the 429 GCS responses due to the lower limits on writes to the same object. All of the projects without a repo_url are being mapped to the same object /result.json and leading to rate limiting.

"Maximum rate of writes to the same object name: One write per second"
https://cloud.google.com/storage/quotas#objects

What is the new behavior (if this is a feature change)?**

We don't try to write anything for projects without an associated repo_url

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Follow up of #4090 , related to #4037

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

We still run into the 429 GCS responses due to the lower limits on the same file.
All of the projects without a repo_url are being mapped to the same
object and leading to rate limiting.

"Maximum rate of writes to the same object name: One write per second"
https://cloud.google.com/storage/quotas#objects

Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock spencerschrock requested a review from a team as a code owner May 8, 2024 20:30
@spencerschrock spencerschrock requested review from naveensrinivasan and removed request for a team May 8, 2024 20:30
@spencerschrock spencerschrock merged commit c92efe9 into ossf:main May 8, 2024
39 checks passed
@spencerschrock spencerschrock deleted the fix-cii-no-repo branch May 8, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants