Skip to content

Conversation

@amychisholm03
Copy link
Contributor

@amychisholm03 amychisholm03 commented Oct 22, 2025

A customer attempted to use traditional http proxying with undici which resulted in an InvalidURL error being thrown. This is the intended behavior because undici doesn't support proxying by suppling a full url to its path argument in request/fetch. These tests verify that bad urls error correctly and that correct undici proxying works as expected.

@amychisholm03 amychisholm03 changed the title Undici proxy test test: Undici proxy tests Oct 22, 2025
@amychisholm03 amychisholm03 added the dev:tests Indicates only changes to tests label Oct 22, 2025
@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.62%. Comparing base (41d32be) to head (7186ce7).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3449      +/-   ##
==========================================
- Coverage   97.75%   97.62%   -0.13%     
==========================================
  Files         405      405              
  Lines       54698    54698              
  Branches        1        1              
==========================================
- Hits        53469    53398      -71     
- Misses       1229     1300      +71     
Flag Coverage Δ
integration-tests-cjs-20.x 73.94% <ø> (ø)
integration-tests-cjs-22.x 73.98% <ø> (+<0.01%) ⬆️
integration-tests-cjs-24.x 74.66% <ø> (ø)
integration-tests-esm-20.x 51.74% <ø> (ø)
integration-tests-esm-22.x 51.80% <ø> (ø)
integration-tests-esm-24.x 53.02% <ø> (ø)
unit-tests-20.x 88.49% <ø> (ø)
unit-tests-22.x 88.50% <ø> (ø)
unit-tests-24.x 88.54% <ø> (ø)
versioned-tests-20.x 80.91% <ø> (-0.33%) ⬇️
versioned-tests-22.x 80.92% <ø> (-0.33%) ⬇️
versioned-tests-24.x 80.86% <ø> (-0.33%) ⬇️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@amychisholm03 amychisholm03 marked this pull request as ready for review October 22, 2025 16:27
Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

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

This wasn't an issue with invalid urls. It was that they were using proxies which put the proxied
URL as path. I don't see any code changes to handle that. Let's sync up on this

@bizob2828
Copy link
Member

pausing on this until we can properly replicate a customer issue we observed

@amychisholm03 amychisholm03 marked this pull request as draft October 23, 2025 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev:tests Indicates only changes to tests

Projects

Status: Needs PR Review

Development

Successfully merging this pull request may close these issues.

3 participants