fix: warn only on a genuinely empty pool; trim unused ci output
This commit is contained in:
1 parent
60057640dc
commit
0e1e83dcc1
3 files changed
+2
-6
No files matched your search
@@ -70,7 +70,6 @@ jobs:
|
||||
needs: test
|
||||
runs-on: fetch-mcp-ci
|
||||
outputs:
|
||||
digest: ${{ steps.build.outputs.digest }}
|
||||
tag: ${{ steps.meta.outputs.tag }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -84,9 +83,6 @@ jobs:
|
||||
docker build --pull --label "org.opencontainers.image.revision=$(git rev-parse HEAD)" \
|
||||
-t "$IMAGE:${{ steps.meta.outputs.tag }}" .
|
||||
docker image inspect "$IMAGE:${{ steps.meta.outputs.tag }}" --format '{{.Id}}'
|
||||
- name: Record digest
|
||||
run: echo "digest=$(docker image inspect "$IMAGE:${{ steps.meta.outputs.tag }}" --format '{{.Id}}')" >> "$GITHUB_OUTPUT"
|
||||
id: digest
|
||||
|
||||
smoke:
|
||||
name: smoke
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" ?>
|
||||
<coverage version="7.17.5" timestamp="1795926405893" lines-valid="1332" lines-covered="1207" line-rate="0.9062" branches-valid="388" branches-covered="325" branch-rate="0.8376" complexity="0">
|
||||
<coverage version="7.17.5" timestamp="1795927220543" lines-valid="1332" lines-covered="1207" line-rate="0.9062" branches-valid="388" branches-covered="325" branch-rate="0.8376" complexity="0">
|
||||
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.17.5 -->
|
||||
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
|
||||
<sources>
|
||||
|
||||
+1
-1
@@ -598,6 +598,6 @@ def configure() -> Pool:
|
||||
"""Read operator settings, publish the pool and start refreshing it."""
|
||||
global POOL
|
||||
POOL = from_env()
|
||||
if POOL.route == "proxy" and not POOL.start(_refresh):
|
||||
if POOL.route == "proxy" and not POOL.start(_refresh) and not len(POOL):
|
||||
print("fetch-mcp: initial proxy list unavailable; pool empty until refresh", file=sys.stderr, flush=True)
|
||||
return POOL
|
||||
Reference in new issue
Block a user