GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — fix: remove custom proxy handling by parkerbxyz · Pull Request #143 · actions/create-github-app-token Conversation
|
|
👋 @dmitrijrub @mikakesan Since you helped us test proxy functionality (#99) when we added support for it in #102, would you be willing to help us test this branch ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
hi @parkerbxyz, what are the changes? should I just use |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Yes, exactly! 🙂 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
hmmm, looks like its failing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Noting this in case it is helpful later: nodejs/undici#1650 (comment) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
`EnvHttpProxyAgent` automatically reads the proxy configuration from the environment variables.
bbbe985 to
1f00388
Compare
Proxy support should be automatic
Thank you so much for testing that, @dmitrijrub! I've made some changes in hopes of fixing the failure you encountered. Would you mind testing again and letting us know how it goes, please? 🙏 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Tests are currently failing due to our current use of the global dispatcher in our tests and local dispatcher in the fetch method. The problem can be reproduced with the following example: import { EnvHttpProxyAgent, MockAgent, setGlobalDispatcher } from "undici"; const mockAgent = new MockAgent(); mockAgent.disableNetConnect(); setGlobalDispatcher(mockAgent); const mockPool = mockAgent.get("https://example.test"); mockPool .intercept({ path: `/`, method: "GET", }) .reply(200); await fetch("https://example.test", { // Comment out the following line to see the test succeed dispatcher: new EnvHttpProxyAgent(), }); console.log("OK"); The global dispatcher is not being used when a local dispatcher is set. We need to verify if this is a feature or a bug. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Deno appears to have native proxy support: https://docs.deno.com/runtime/reference/env_variables/#special-environment-variables |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I'm down for using Deno instead of Node.js, as long as we still generate the built files with all dependencies and execute that code instead of loading dependencies dynamically at run time. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I just received a really helpful PR here: peter-evans/create-pull-request#3475 And that lead me to realise that proxy support can be simplified to this: peter-evans/create-pull-request#3483 It passes the proxy support tests I have, so looks good. Just thought I would mention this in case it helps here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you @peter-evans! It looks like you use We are interested in your test setup though and couldn't quite figure it out. Can you give us some pointers how you test the env-based proxy handling? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I see. Well I'm interested to see what solution you end up with here then.
I created a small docker image to launch a forward proxy based on glider. In the test, I start the forward proxy and then configure the firewall on the actions runner. The firewall settings deny outgoing, except through the proxy. So it makes sure that the action is definitely using the proxy when it's configured. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It looks like Node.js v24 is going to include proxy support: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The undici package has been removed from the dependencies in package.json and package-lock.json, likely because it is no longer needed in the project.
|
🎉 This PR is included in version 3.0.0-beta.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Unfortunately, even with Node 24, it's not working out of the box. Now We see two ways to support the proxy behavior
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
# [3.0.0](v2.2.2...v3.0.0) (2026-03-14) * feat!: node 24 support ([#275](#275)) ([2e564a0](2e564a0)) * fix!: require `NODE_USE_ENV_PROXY` for proxy support ([#342](#342)) ([4451bcb](4451bcb)) ### Bug Fixes * remove custom proxy handling ([#143](#143)) ([dce0ab0](dce0ab0)) ### BREAKING CHANGES * Custom proxy handling has been removed. If you use HTTP_PROXY or HTTPS_PROXY, you must now also set NODE_USE_ENV_PROXY=1 on the action step. * Requires [Actions Runner v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) or later if you are using a self-hosted runner.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Remove custom proxy functionality
There was an error while loading. Please reload this page.