Skip to content

Commit a44d284

Browse files
fix: restore CI integration contracts
1 parent de24b15 commit a44d284

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎agent/entrypoint.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -e
33

44
HAVE_CHROME=false
55
if command -v chromium >/dev/null 2>&1; then HAVE_CHROME=true; fi
6+
if [ "${AGENT_HAS_CHROME:-false}" = "true" ]; then HAVE_CHROME=true; fi
67

78
BROWSER_RUNTIME_BUNDLE_ROOT="${BROWSER_RUNTIME_BUNDLE_ROOT:-/opt/browser-runtime-bundles}"
89
BROWSER_RUNTIME_BUNDLE_MANIFEST="${BROWSER_RUNTIME_BUNDLE_MANIFEST:-$BROWSER_RUNTIME_BUNDLE_ROOT/opencli-default/2/manifest.json}"
@@ -78,7 +79,7 @@ if [ "$HAVE_CHROME" = "true" ]; then
7879
echo "[agent] WARNING: Bridge daemon not found at $DAEMON_JS"
7980
fi
8081

81-
BROWSER_ENGINE="${BROWSER_ENGINE:-chromium}"
82+
BROWSER_ENGINE="${BROWSER_ENGINE-chromium}"
8283
CHROME_BIN="$(node /usr/local/bin/resolve-browser-executable.mjs "$BROWSER_ENGINE")" || {
8384
echo "[agent] Browser engine resolution failed for $BROWSER_ENGINE" >&2
8485
exit 1

‎chrome/entrypoint.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if [ -n "${BROWSER_STARTUP_PAGES:-}" ]; then
5959
if [ -n "$STARTUP_PAGE_OUTPUT" ]; then mapfile -t STARTUP_PAGES <<< "$STARTUP_PAGE_OUTPUT"; fi
6060
fi
6161

62-
BROWSER_ENGINE="${BROWSER_ENGINE:-chromium}"
62+
BROWSER_ENGINE="${BROWSER_ENGINE-chromium}"
6363
CHROME_BIN="$(node /usr/local/bin/resolve-browser-executable.mjs "$BROWSER_ENGINE")" || {
6464
echo "[entrypoint] Browser engine resolution failed for $BROWSER_ENGINE" >&2
6565
exit 1

‎tests/unit/control/test_cycle.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ async def test_dangerous_suggestion_downgrades_and_preserves_original_in_ledger(
223223
get_settings.cache_clear()
224224
try:
225225
source = await _make_source(db_session)
226+
await _seed_measurement_row(db_session, source.id, error_kinds={"auth_failed": 1})
226227
await _seed_evidence(
227228
db_session,
228229
samples=10,

‎tests/unit/test_public_release_contract.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def source_docker_recipes(readme: str) -> list[str]:
3333
return [
3434
block
3535
for block in re.findall(r"~~~bash\n(.*?)\n~~~", readme, re.DOTALL)
36-
if "docker-compose.build.yml" in block
36+
if "# 仅首次执行以下初始化步骤" in block
3737
]
3838

3939

0 commit comments

Comments
 (0)