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

[Functions] Several functions improvements #6796

Merged
merged 10 commits into from
Mar 24, 2025
Merged

[Functions] Several functions improvements #6796

merged 10 commits into from
Mar 24, 2025

Conversation

rlazo
Copy link
Collaborator

@rlazo rlazo commented Mar 24, 2025

These improvements are both in the SDK itself, and in the code used for the actual functions running in the cloud during integration testing:

A summary of the changes is:

  • [Backend functions] Update the dependencies and node runtime version
  • [Backend functions] Add logging in case the client does not support streaming
  • [SDK] Use a more robust handle of the media type
  • [SDK] Fix issue introduced in fix(functions): use notifyError() instead of throwing #6773 that missed a return in case of error
  • [SDK] Other minor code fixes

b/404814020

rlazo added 7 commits March 21, 2025 15:13
By relying on the `MediaType` class, we can get more normalized results.
The old code use to throw, which stop any further processing. The
change introduced later didn't, causing errors.
- Better code organization to make it easier to know which headers are
being set
- Process events from the buffer in case there's no empty line at the end
Copy link
Contributor

github-actions bot commented Mar 24, 2025

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 24, 2025

Copy link
Contributor

github-actions bot commented Mar 24, 2025

Test Results

14 files   -   562  14 suites   - 562   12s ⏱️ - 18m 54s
23 tests  - 3 841  23 ✅  - 3 823  0 💤  - 18  0 ❌ ±0 
46 runs   - 7 724  46 ✅  - 7 688  0 💤  - 36  0 ❌ ±0 

Results for commit eb44bce. ± Comparison against base commit f9d1802.

This pull request removes 3841 tests.
com.google.firebase.appdistribution.impl.AabUpdaterTest ‑ updateAppTask_emptyLocationHeader_setsDownloadFailure
com.google.firebase.appdistribution.impl.AabUpdaterTest ‑ updateAppTask_isNotRedirectResponse_setsDownloadFailure
com.google.firebase.appdistribution.impl.AabUpdaterTest ‑ updateAppTask_missingLocationHeader_setsDownloadFailure
com.google.firebase.appdistribution.impl.AabUpdaterTest ‑ updateAppTask_onAppResume_setsUpdateCancelled
com.google.firebase.appdistribution.impl.AabUpdaterTest ‑ updateAppTask_whenAabReleaseAvailable_redirectsToPlay
com.google.firebase.appdistribution.impl.AabUpdaterTest ‑ updateAppTask_whenOpenConnectionFails_setsNetworkFailure
com.google.firebase.appdistribution.impl.AabUpdaterTest ‑ updateApp_whenCalledMultipleTimesWithAAB_onlyMakesOneRequest
com.google.firebase.appdistribution.impl.ApkInstallerTests ‑ installActivityDestroyed_setsInstallError
com.google.firebase.appdistribution.impl.ApkInstallerTests ‑ installApk_currentActivityNotNull_InstallIntentOnCurrentActivity
com.google.firebase.appdistribution.impl.ApkInstallerTests ‑ whenCalledMultipleTimes_onlyEmitsOneIntent
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 24, 2025

Size Report 1

Affected Products

  • firebase-functions

    TypeBase (f9d1802)Merge (df8d4ef)Diff
    aar80.5 kB80.6 kB+175 B (+0.2%)
    apk (release)5.46 MB5.46 MB+72 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/J3SYvu5gOS.html

Copy link
Member

@daymxn daymxn left a comment

Choose a reason for hiding this comment

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

LGTM, but left a comment

@rlazo rlazo merged commit 615352d into main Mar 24, 2025
32 checks passed
@rlazo rlazo deleted the rl.functions.fixes branch March 24, 2025 14:48
tejasd pushed a commit that referenced this pull request Apr 1, 2025
These improvements are both in the SDK itself, and in the code used for
the actual functions running in the cloud during integration testing:

A summary of the changes is:
- [Backend functions] Update the dependencies and node runtime version
- [Backend functions] Add logging in case the client does not support
streaming
- [SDK] Use a more robust handle of the media type
- [SDK] Fix issue introduced in #6773 that missed a return in case of
error
- [SDK] Other minor code fixes

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

Successfully merging this pull request may close these issues.

3 participants