Repository navigation
fix(harness): archive daily memory after sandbox release - #4261
Conversation
There was a problem hiding this comment.
[P2] expireDailyFiles now accepts a ledger only when the listed path equals fromPath or its namespaced form, and the catch swallows everything without a log. A backend that spells paths differently (absolute, short 8.3 names, another namespace) silently stops archiving with no trace. A debug line on the drop path would make that visible.
[P2] moveMemoryFile fails when the source is gone. With several replicas archiving concurrently, the loser of the race logs a warning per file; treating "already archived" as skipped rather than failed reads cleaner in the log.
Log unexpected daily ledger paths at debug without relaxing namespace checks. Treat a failed move as already handled only when the source is gone and the authoritative archive exists; preserve warnings for other failures. Verified on macOS with Java 21: 75 focused regressions and one real Docker sandbox release test passed. Captured DEBUG for an already archived ledger and WARN for a genuinely missing ledger.
|
Thanks for the review! I addressed both points in |
|
LGTM |
AgentScope-Java Version
2.1.0-SNAPSHOT, based on main at
c1d4829003c374b202b99806099a60ec92fc0b28.Description
Fixes #4257.
Daily-memory expiration still accesses the sandbox filesystem directly after the sandbox has been released. Follow the memory I/O approach introduced in #3113: route listing and archival moves through
WorkspaceManager, using the authoritative host memory namespace for sandbox-backed paths and retaining native move behavior for persistent filesystem routes.Validation
Tested locally with Java 21.0.10, Maven 3.9.6 and Docker 29.9.2; Java release target remains 17. All fixtures use synthetic records and temporary directories.
verify; tests, integration tests and frontend installation/build were explicitly skipped for that build. Javadoc/source packaging was also skipped. Earlier parallel attempts failed on dependency TLS/cache-lock errors; the serial retry passed without deleting Maven cache/locks.git diff --checkpassed.Focused reproduction:
Not a full test-matrix pass: external database/provider tests, credential-dependent integrations, the full security test matrix, frontend builds and production model/service flows were not run. Upstream Maven CI passed on the submitted head (Ubuntu and Windows); the CLA check also passed. Full raw logs are retained locally; they are not included because they contain local environment paths.
Checklist
mvn spotless:apply(Spotless checks passed).mvn test) — selected suites passed; full matrix not run.