mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-30 00:47:36 +00:00
Some checks failed
CI and Release / Docker / Build and test / amd64 (push) Has been cancelled
CI and Release / Docker / Build and test / arm64 (push) Has been cancelled
Security / CodeQL / Analyze python (push) Has been cancelled
CI / Python quality / Pre-commit (push) Has been cancelled
CI / Python tests / Unit Tests - py3.12 (push) Has been cancelled
CI / Python tests / Unit Tests - py3.13 (push) Has been cancelled
CI / Python tests / Unit Tests - py3.14 (push) Has been cancelled
CI / Python packages / Build and verify distributions (push) Has been cancelled
CI / Python quality / GitHub Actions (push) Has been cancelled
CI / Python tests / Hermes embedded - ubuntu-latest (push) Has been cancelled
CI / Python tests / Hermes embedded - windows-latest (push) Has been cancelled
CI / Python tests / Unit Tests - py3.11 (push) Has been cancelled
CI / ReMe Studio / Studio checks (push) Has been cancelled
Deploy / Documentation / Build documentation (push) Has been cancelled
CI / Windows / CLI smoke - py3.11 (push) Has been cancelled
Security / CodeQL / Analyze javascript-typescript (push) Has been cancelled
CI and Release / Docker / Publish multi-platform tags (push) Has been cancelled
Deploy / Documentation / deploy (push) Has been cancelled
* refactor(core): reorganize the ReMe runtime and shared helpers * test(status): import the base component from its canonical module * test: remove redundant unit checks * refactor(core): use canonical runtime imports and shared CLI discovery Restore evolve behavior to the base branch and update its imports. Use Application as the runtime entry point and encode SSE in the HTTP service. * fix(cli): honor caller config when service replay is incomplete Use partial startup overrides for port probes and resolve named configs before requesting the service process working directory.
43 lines
1.4 KiB
Python
43 lines
1.4 KiB
Python
"""Run the ReMe e2e loop against the real ./.reme workspace (no temp dir).
|
|
|
|
Same 5 stages as tests/integration/test_reme_e2e.py, but the workspace is
|
|
pinned to <repo>/.reme so the produced files survive for inspection.
|
|
|
|
python tests/integration/run_reme_e2e_local.py
|
|
"""
|
|
|
|
import asyncio
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
INTEGRATION_DIR = Path(__file__).resolve().parent
|
|
REPO_ROOT = INTEGRATION_DIR.parents[1]
|
|
sys.path.insert(0, str(INTEGRATION_DIR))
|
|
|
|
# pylint: disable=wrong-import-position
|
|
from _workspace_fixture import WorkspaceEnv, temp_chdir # noqa: E402
|
|
import test_reme_e2e as e2e # noqa: E402
|
|
|
|
from reme.utils.env_utils import load_env # noqa: E402
|
|
|
|
|
|
async def main() -> None:
|
|
"""Run the e2e loop against a local .reme workspace for manual inspection."""
|
|
load_env()
|
|
workspace = REPO_ROOT / ".reme"
|
|
workspace.mkdir(parents=True, exist_ok=True)
|
|
env = WorkspaceEnv(workspace=workspace, workspace_dir=workspace)
|
|
env.clean() # wipe daily/digest/resource/metadata from any prior run
|
|
|
|
print(f"[local] workspace = {workspace}")
|
|
with temp_chdir(REPO_ROOT):
|
|
reme = await env.make_reme()
|
|
try:
|
|
await e2e._run_loop(env, reme) # noqa: SLF001 # pylint: disable=protected-access
|
|
finally:
|
|
await env.close_all()
|
|
print(f"\n[local] done — inspect files under: {workspace}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|