fix: logs and build
This commit is contained in:
@@ -65,9 +65,9 @@ configures the research subagent and defaults to `high`. `AGENTCI_EXPLORE_MODEL`
|
|||||||
`openai/gpt-5.6-luna` with `low`.
|
`openai/gpt-5.6-luna` with `low`.
|
||||||
|
|
||||||
`AGENTCI_OPENCODE_VERSION` controls the npm version or range installed into the image and defaults
|
`AGENTCI_OPENCODE_VERSION` controls the npm version or range installed into the image and defaults
|
||||||
to `^1`. The build verifies that the resolved version is still OpenCode 1.x and prints it. Compose
|
to `^1`. The build verifies that the resolved version is still OpenCode 1.x and prints it. Docker
|
||||||
requests a no-cache build so the configured range is resolved again on each build. Runtime
|
may reuse the cached installation layer until the configured version or build inputs change.
|
||||||
auto-update is disabled so an image cannot cross into OpenCode 2.x after it is built.
|
Runtime auto-update is disabled so an image cannot cross into OpenCode 2.x after it is built.
|
||||||
|
|
||||||
The trusted configuration is `opencode/opencode.json`. OpenCode's default global and built-in-agent
|
The trusted configuration is `opencode/opencode.json`. OpenCode's default global and built-in-agent
|
||||||
permission policies remain in effect; Agent CI does not replace them with an allow-all policy.
|
permission policies remain in effect; Agent CI does not replace them with an allow-all policy.
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ services:
|
|||||||
image: agentci:local
|
image: agentci:local
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
no_cache: true
|
|
||||||
args:
|
args:
|
||||||
AGENTCI_OPENCODE_VERSION: ${AGENTCI_OPENCODE_VERSION:-^1}
|
AGENTCI_OPENCODE_VERSION: ${AGENTCI_OPENCODE_VERSION:-^1}
|
||||||
CODEGRAPH_VERSION: ${CODEGRAPH_VERSION:-1.3.1}
|
CODEGRAPH_VERSION: ${CODEGRAPH_VERSION:-1.3.1}
|
||||||
|
|||||||
@@ -49,3 +49,5 @@ def configure_logging() -> None:
|
|||||||
root.handlers.clear()
|
root.handlers.clear()
|
||||||
root.addHandler(handler)
|
root.addHandler(handler)
|
||||||
root.setLevel(logging.INFO)
|
root.setLevel(logging.INFO)
|
||||||
|
logging.getLogger("httpx").setLevel(logging.WARNING)
|
||||||
|
logging.getLogger("httpcore").setLevel(logging.WARNING)
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import logging
|
||||||
|
|
||||||
|
from agentci.logging import configure_logging
|
||||||
|
|
||||||
|
|
||||||
|
def test_suppresses_http_client_request_logs() -> None:
|
||||||
|
configure_logging()
|
||||||
|
|
||||||
|
assert logging.getLogger("httpx").level == logging.WARNING
|
||||||
|
assert logging.getLogger("httpcore").level == logging.WARNING
|
||||||
@@ -29,7 +29,7 @@ def test_compose_removes_codex_sandbox_exceptions() -> None:
|
|||||||
|
|
||||||
for forbidden in ("cap_add", "seccomp=unconfined", "apparmor=unconfined", "bubblewrap"):
|
for forbidden in ("cap_add", "seccomp=unconfined", "apparmor=unconfined", "bubblewrap"):
|
||||||
assert forbidden not in compose
|
assert forbidden not in compose
|
||||||
assert "no_cache: true" in compose
|
assert "no_cache" not in compose
|
||||||
assert "opencode_home:/var/lib/opencode" in compose
|
assert "opencode_home:/var/lib/opencode" in compose
|
||||||
assert "HOME: /etc/opencode/home" in compose
|
assert "HOME: /etc/opencode/home" in compose
|
||||||
assert "OPENCODE_DISABLE_EXTERNAL_SKILLS" in compose
|
assert "OPENCODE_DISABLE_EXTERNAL_SKILLS" in compose
|
||||||
|
|||||||
Reference in New Issue
Block a user