Skip to content

Unit Tests: Disable proxy for local tests#41688

Merged
TimvdLippe merged 1 commit intoservo:mainfrom
Narfinger:unit-test-no-proxy
Jan 5, 2026
Merged

Unit Tests: Disable proxy for local tests#41688
TimvdLippe merged 1 commit intoservo:mainfrom
Narfinger:unit-test-no-proxy

Conversation

@Narfinger
Copy link
Copy Markdown
Contributor

As per #41687 we currently have a very simple proxy model without any respect to NO_PROXY. Hence, things such as localhost and 127.0.0.1 might be forwarded to the proxy which probably will not respond correctly.

This sets the preference for the ServoTest to not have any proxy (as it will be taken from the default environment variable otherwise).

Signed-off-by: Narfinger [email protected]

Testing: Run tests which previously did not work and now works.
Fixes: Unit Tests run on proxy machines produced wrong results.

Signed-off-by: Narfinger <[email protected]>
@Narfinger Narfinger marked this pull request as ready for review January 5, 2026 14:41
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 5, 2026
Copy link
Copy Markdown
Member

@yezhizhen yezhizhen left a comment

Choose a reason for hiding this comment

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

Looks reasonable. Please change the title.

I also had one #41441 for wpt.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jan 5, 2026
@Narfinger Narfinger changed the title Tests: Automatically picked up proxy can interfere with local tests Unit Tests: Disable proxy for local tests Jan 5, 2026
@janvarga
Copy link
Copy Markdown
Member

janvarga commented Jan 5, 2026

Thanks!

@TimvdLippe TimvdLippe added this pull request to the merge queue Jan 5, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 5, 2026
Merged via the queue into servo:main with commit 46611f9 Jan 5, 2026
33 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 5, 2026
@Narfinger Narfinger deleted the unit-test-no-proxy branch January 5, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants