Skip to content

Commit aff170e

Browse files
marc-hbpdgendt
authored andcommitted
.github: use bad proxies to block network when testing with poe
Break `poe` connectivity to make sure network dependencies are not accidentally introduced, see for instance 9b6a6d2. Note `uv` is still free to download anything it wants. Proxies increasing productivity for once in their life! Signed-off-by: Marc Herbert <[email protected]>
1 parent bfaf5fa commit aff170e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/http_env_block.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# The purpose is to break connectivity to make sure
2+
# network dependencies are not accidentally introduced, see for
3+
# instance 9b6a6d2d05a0.
4+
#
5+
# Connections attempts to localhost are much less likely to be
6+
# firewalled with a very long time-out and much more likely to "fail
7+
# fast" instead. Even if something is listening on these ports, the
8+
# chances of it being a functional HTTP proxy are close do zero.
9+
#
10+
# Tweak capitals and numbers to make these easy to "git grep"
11+
http_proxy=http://LocalHosT:6666
12+
https_proxy=http://LocalHosT:6667

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: echo "import sys; print(sys.version); print(sys.platform)" | uv run -
5656

5757
- name: Run ${{ matrix.task }} on ${{ matrix.os }} - ${{ matrix.python-version }}
58-
run: uv run --frozen --directory "./check out/" poe ${{ matrix.task }}
58+
run: uv run --frozen --directory "./check out/" --env-file=.github/http_env_block.conf poe ${{ matrix.task }}
5959

6060
- name: Upload coverage reports
6161
if: ${{ matrix.task == 'test' }}

0 commit comments

Comments
 (0)