ci: shift checks left (check-json, script tests, image pins) and name the meta-dependency check #527

Merged
Defame1297 merged 5 commits from ci/187-246-shift-left-checks into main 2026-12-06 20:24:43 +00:00
Showing only changes of commit b2e547edd5 - Show all commits
+8
View File
@@ -6,11 +6,13 @@ import contextlib
import http.server
import io
import json
import os
import pathlib
import sys
import tempfile
import threading
import unittest
from unittest import mock
SCRIPTS = pathlib.Path(__file__).resolve().parents[2] / "scripts"
sys.path.insert(0, str(SCRIPTS))
@@ -156,6 +158,12 @@ class QuietServer(http.server.HTTPServer):
class RegistryClient(unittest.TestCase):
def setUp(self):
# Lint exports a dead proxy with an empty no_proxy; the fake registry is on loopback.
patcher = mock.patch.dict(
os.environ, no_proxy="127.0.0.1", NO_PROXY="127.0.0.1"
)
patcher.start()
self.addCleanup(patcher.stop)
FakeRegistry.refuse = FakeRegistry.refuse_token = FakeRegistry.no_realm = False
FakeRegistry.empty_token = FakeRegistry.unknown = False
FakeRegistry.not_found = None