Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

fix: add timeout to firebase db connection attempt #1132

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

mctavish
Copy link
Contributor

Firebase database reads/writes can hang indefinitely if there is an issue with the credentials or with the database url.

Fixing firebase/firebase-admin-node#2004 will address this issue, but until then this PR adds a timeout to ensure that errors are emitted.

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: clouddebugger Issues related to the googleapis/cloud-debug-nodejs API. labels Jan 16, 2023
@mctavish mctavish marked this pull request as ready for review January 16, 2023 21:55
@mctavish mctavish requested review from a team as code owners January 16, 2023 21:55
@codecov
Copy link

codecov bot commented Jan 16, 2023

Codecov Report

Base: 65.88% // Head: 65.68% // Decreases project coverage by -0.20% ⚠️

Coverage data is based on head (664ecc9) compared to base (afe9f53).
Patch coverage: 4.54% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1132      +/-   ##
==========================================
- Coverage   65.88%   65.68%   -0.21%     
==========================================
  Files          21       21              
  Lines        1791     1798       +7     
  Branches      355      355              
==========================================
+ Hits         1180     1181       +1     
- Misses        524      530       +6     
  Partials       87       87              
Impacted Files Coverage Δ
src/agent/firebase-controller.ts 65.83% <4.54%> (-3.20%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mctavish mctavish added automerge Merge the pull request once unit tests and other checks pass. owlbot:run Add this label to trigger the Owlbot post processor. labels Jan 16, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 16, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit 8cd89c8 into googleapis:main Jan 16, 2023
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jan 16, 2023
@mctavish mctavish deleted the firebase-timeouts branch January 17, 2023 20:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: clouddebugger Issues related to the googleapis/cloud-debug-nodejs API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants