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

chore: Fix smoke tests node 20 #1745

Merged
merged 4 commits into from Aug 3, 2023
Merged

chore: Fix smoke tests node 20 #1745

merged 4 commits into from Aug 3, 2023

Conversation

bizob2828
Copy link
Member

The proxy https smoke tests were hanging. I couldn't figure out why but I decided to upgrade the https-proxy-agent library and it immediately resolved the issue. However there was a new issue with hanging but it was on teardown. It turns out up until now the https-proxy-agent didn't respect our keepAlive: true option, now it does. This requires us to destroy the proxy agent which you can see its being done in test/lib/agent_helper.js by getting the singleton instance and calling destroy. The upgrade of the https-proxy-agent also required a signature update by passing in a fully constructed URL to the constructor. We have deferred tests to another branch but it would be good to scrutinize that code the most.

Closes #1734

@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #1745 (85e32b4) into main (9d4201b) will decrease coverage by 0.01%.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1745      +/-   ##
==========================================
- Coverage   96.88%   96.88%   -0.01%     
==========================================
  Files         200      200              
  Lines       39220    39210      -10     
  Branches       22       22              
==========================================
- Hits        37999    37989      -10     
  Misses       1221     1221              
Flag Coverage Δ
esm-unit-tests-16.x 92.85% <ø> (ø)
esm-unit-tests-18.x 92.85% <ø> (ø)
integration-tests-16.x 79.22% <10.00%> (+0.09%) ⬆️
integration-tests-18.x 79.22% <10.00%> (+0.10%) ⬆️
integration-tests-20.x 79.21% <10.00%> (+0.09%) ⬆️
unit-tests-16.x 91.50% <100.00%> (+<0.01%) ⬆️
unit-tests-18.x 91.48% <100.00%> (+<0.01%) ⬆️
unit-tests-20.x 91.48% <100.00%> (+0.01%) ⬆️
versioned-tests-16.x 77.15% <10.00%> (+0.04%) ⬆️
versioned-tests-18.x 77.15% <10.00%> (+0.04%) ⬆️
versioned-tests-20.x 76.00% <10.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
lib/collector/http-agents.js 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

test/lib/agent_helper.js Outdated Show resolved Hide resolved
Co-authored-by: Maurice Rickard <maurice@mauricerickard.com>
@bizob2828 bizob2828 merged commit 8c053e0 into main Aug 3, 2023
39 of 40 checks passed
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Aug 3, 2023
@bizob2828 bizob2828 deleted the fix-smoke-tests-node-20 branch August 3, 2023 18:54
@github-actions github-actions bot mentioned this pull request Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Node.js Engineering Board
  
Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

Fix https proxy smoke tests on node 20
2 participants