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

Ignore quota project in GCF source uploads #6917

Merged
merged 4 commits into from
Mar 26, 2024
Merged

Conversation

inlined
Copy link
Member

@inlined inlined commented Mar 26, 2024

Best fix for #6896 that we can do for now. I strongly suspect that GCS just can't handle signed URL uploads with quota projects.

@inlined inlined requested a review from joehan March 26, 2024 21:41
@joehan joehan enabled auto-merge (squash) March 26, 2024 22:57
@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2024

Codecov Report

Attention: Patch coverage is 11.11111% with 8 lines in your changes missing coverage. Please review.

Project coverage is 54.50%. Comparing base (476bd33) to head (92e1402).
Report is 541 commits behind head on master.

Files with missing lines Patch % Lines
src/deploy/functions/deploy.ts 14.28% 6 Missing ⚠️
src/apiv2.ts 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6917      +/-   ##
==========================================
- Coverage   54.52%   54.50%   -0.02%     
==========================================
  Files         353      353              
  Lines       24655    24660       +5     
  Branches     5095     5098       +3     
==========================================
  Hits        13442    13442              
- Misses       9994     9998       +4     
- Partials     1219     1220       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joehan joehan merged commit a26c3d0 into master Mar 26, 2024
35 checks passed
inlined added a commit that referenced this pull request Mar 27, 2024
* Ignore quota project in GCF source uploads

* Changelog

* Remove superfluous change

* format + fix tests

---------

Co-authored-by: Joe Hanley <[email protected]>
inlined added a commit that referenced this pull request Mar 27, 2024
* Stop trying to clean up AR cache on function deletion.

Since release of this feature, GCF has started cleaning up cache
images automatically on function deletion. This has led to us getting
404 errors and printing scary messages in the console.

Fixes #6882

* Ignore quota project in GCF source uploads (#6917)

* Ignore quota project in GCF source uploads

* Changelog

* Remove superfluous change

* format + fix tests

---------

Co-authored-by: Joe Hanley <[email protected]>

* 13.6.0

* [firebase-release] Removed change log and reset repo after 13.6.0 release

* Changelog

* Remove dead code unit test

---------

Co-authored-by: Joe Hanley <[email protected]>
Co-authored-by: Google Open Source Bot <[email protected]>
if (process.env.GOOGLE_CLOUD_QUOTA_PROJECT) {
logLabeledWarning(
"functions",
"GOOGLE_CLOUD_QUTOA_PROJECT is not usable when uploading source for Cloud Functions.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo here. Should be "GOOGLE_CLOUD_QUOTA_PROJECT"

if (process.env.GOOGLE_CLOUD_QUOTA_PROJECT) {
logLabeledWarning(
"functions",
"GOOGLE_CLOUD_QUTOA_PROJECT is not usable when uploading source for Cloud Functions.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo here. Should be "GOOGLE_CLOUD_QUOTA_PROJECT"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants