You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1096e2e
Browse filesBrowse the repository at this point in the historyBrowse files
The runtime moves to the src-layout src/agentflow_runtime/ and
installs/imports as agentflow_runtime (version 2.1.0). Wheels ship exactly
two top-level members: the package and the deprecated src shim
(packaging/src_shim) that aliases every src.X import onto the same module
object as agentflow_runtime.X with a DeprecationWarning
(AGENTFLOW_SRC_SHIM_SILENT=1 mutes it; removal lands in the next major).
Full first-party cutover: source, tests, scripts, CI workflows, Makefile,
Docker/compose files, helm templates, the Flink image layout
(PYTHONPATH=/opt/agentflow/src), devcontainer, HF-Space image, demo
notebook and living docs. New gates: tests/unit/test_namespace_policy.py
(container layout + no first-party src.* imports + packaging maps) and
scripts/wheel_smoke.py (wheel top-level policy + install smoke outside the
checkout), wired into the python-compat CI job and pinned by the
quickstart install contract. The byte-pinned golden-soak pack keeps its
historical src.* imports (recorded exception).
Verified on this host: ruff check+format clean; mypy src/ clean (152
files); sharded unit/property/sdk suite 2472/2472 (two path-pinned tests
fixed and re-run green); integration outbox/alert-dedup/exceptions-inbox
34/34; generate_contracts --check clean; wheel smoke incl. shim
warning/identity/silence PASS.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
# Run outside the checkout so `src.*` must come from the installed
99
-
# runtime wheel rather than the repository working tree on sys.path.
102
+
- name: Smoke quickstart, materializer and deprecated-shim imports
103
+
# Run outside the checkout so the runtime must come from the installed
104
+
# wheel rather than the repository working tree on sys.path. The src.*
105
+
# surface must keep working through the wheel's deprecated shim for
106
+
# one deprecation window (removed in the next major release).
100
107
working-directory: /tmp
101
108
run: |
102
-
/tmp/agentflow-clean/bin/python -c "from agentflow.client import AgentFlowClient; from src.serving.api.main import app; from src.processing.local_pipeline import main; from src.processing.lake_consumer import ValidatedLakeConsumer; assert AgentFlowClient and app and main and ValidatedLakeConsumer"
109
+
/tmp/agentflow-clean/bin/python - <<'PY'
110
+
import warnings
111
+
112
+
from agentflow.client import AgentFlowClient
113
+
from agentflow_runtime.processing.lake_consumer import ValidatedLakeConsumer
114
+
from agentflow_runtime.processing.local_pipeline import main
115
+
from agentflow_runtime.serving.api.main import app
116
+
117
+
assert AgentFlowClient and app and main and ValidatedLakeConsumer
118
+
119
+
with warnings.catch_warnings(record=True) as caught:
120
+
warnings.simplefilter("always")
121
+
import src.serving.api.main as shim_main
122
+
123
+
assert any(
124
+
issubclass(w.category, DeprecationWarning) for w in caught
125
+
), "src shim import did not raise DeprecationWarning"
126
+
assert shim_main.app is app, "src shim aliased a different module object"
127
+
PY
103
128
104
129
local-duckdb-smoke:
105
130
runs-on: ubuntu-latest
@@ -231,25 +256,25 @@ jobs:
231
256
# --cov-branch turns the floor into a combined line+branch metric — local baseline
232
257
# 2026-05-25 is 62% (7716 lines / 2010 branches measured on HEAD `22b1be9`), so the
233
258
# 60% gate stays passing with a 2pp cushion. Raise the gate once that cushion grows.
0 commit comments