Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

fix(deps): remove dependency on through2#1023

Merged
freelerobot merged 4 commits intomasterfrom
nothru
Apr 13, 2021
Merged

fix(deps): remove dependency on through2#1023
freelerobot merged 4 commits intomasterfrom
nothru

Conversation

@JustinBeckwith
Copy link
Copy Markdown
Contributor

@JustinBeckwith JustinBeckwith commented Apr 1, 2021

This drops the top level dependency on through2, though it's still technically brought in via @google-cloud/common and possibly pumpify. It moves us towards standard Transform and PassThrough streams instead of the wrapper on top. This is party of my "reduce all the dependencies" work.

Note: this change is not without risk. We've tried this before, and run into issues. This library has solid system and sample tests - it would be super helpful if someone could run those system tests on node 10, 12, and 14, just to do a confidence check.

@JustinBeckwith JustinBeckwith requested review from a team April 1, 2021 18:58
@product-auto-label product-auto-label Bot added the api: logging Issues related to the googleapis/nodejs-logging API. label Apr 1, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 1, 2021
@JustinBeckwith JustinBeckwith changed the title fix(deps): remove dependency on through2 WIP: fix(deps): remove dependency on through2 Apr 1, 2021
@JustinBeckwith JustinBeckwith added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 1, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2021

Codecov Report

Merging #1023 (4bd61c1) into master (3808656) will decrease coverage by 0.02%.
The diff coverage is 61.70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1023      +/-   ##
==========================================
- Coverage   97.91%   97.89%   -0.03%     
==========================================
  Files          18       18              
  Lines       13207    13224      +17     
  Branches      426      410      -16     
==========================================
+ Hits        12932    12946      +14     
- Misses        272      275       +3     
  Partials        3        3              
Impacted Files Coverage Δ
src/index.ts 95.52% <61.70%> (-0.16%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3808656...4bd61c1. Read the comment docs.

@JustinBeckwith JustinBeckwith changed the title WIP: fix(deps): remove dependency on through2 fix(deps): remove dependency on through2 Apr 1, 2021
@JustinBeckwith JustinBeckwith removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 1, 2021
Copy link
Copy Markdown
Contributor

@freelerobot freelerobot left a comment

Choose a reason for hiding this comment

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

I tested on node10 and 14. Automation already defaults to testing on 12.
Results

  • Node10 system test works
  • Node10 sample test works
  • Node14 system test works
  • Node14 sample test works

@JustinBeckwith FYI the following 1 test failed in Node14

1) Logging
       logs
         log-specific entries
           should list log entries as a stream:
     Error: Timeout of 600000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/nicolezhu/Desktop/nodejs-logging/build/system-test/logging.js)
      at listOnTimeout (internal/timers.js:554:17)
      at processTimers (internal/timers.js:497:7)

@freelerobot
Copy link
Copy Markdown
Contributor

freelerobot commented Apr 13, 2021

FYI: I will resolve this as a part of my Q2 OKR to reduce dependencies on node libraries

Update: ran test on node 14 again, it's passing locally. might be a 1 time flake?

@freelerobot freelerobot added priority: p2 Moderately-important priority. Fix may not be included in next release. type: enhancement labels Apr 13, 2021
@freelerobot freelerobot merged commit 485347f into master Apr 13, 2021
@freelerobot freelerobot deleted the nothru branch April 13, 2021 06:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: logging Issues related to the googleapis/nodejs-logging API. cla: yes This human has signed the Contributor License Agreement. priority: p2 Moderately-important priority. Fix may not be included in next release. type: enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants