Repository navigation
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Pushed 6255e7c to add successful restoration coverage for both snapshot branches, asserting setup -> hydrate -> close ordering and ready/running state. Production code is unchanged. The four failure-path regressions passed on both CI platforms. Locally, I reproduced the coverage gap: JaCoCo marked the two setup invocation lines as The Windows job failed on three 10-second blocking timeouts in SubagentPendingToolRecoveryTest and SubagentRunIdChainTest, not on the cleanup regressions. Both affected classes passed locally twice; the latest focused run totals 31 passed, 0 failures/errors/skips. This does not establish the remote timeout's root cause. The new push triggers fresh CI; I have not changed those tests or increased timeouts. |
juruoO-o
left a comment
There was a problem hiding this comment.
Reviewed both snapshot restoration branches. Moving setup inside the existing resource scope preserves ordering and closes the archive on setup failure.
No blocking findings in the reviewed diff. This was a static review of source and tests; local Java/Maven tests were not run.
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
juruoO-o
left a comment
There was a problem hiding this comment.
Resolved the current-main conflict while retaining the PR setup-inside-resource-scope fix and main snapshot-projection bookkeeping. Integration CI also exposed an existing core test that still expected permissive JSON decoding after the separately approved #3697 merge; updated that assertion to the strict single-root contract without removing malformed-input or whitespace coverage.
Conflict resolutions pass git diff --check. Local Java/Maven is unavailable; the updated head is being validated by the repository CI.
Preserve the PR resource scope while retaining main snapshot projection bookkeeping.
9386c84 to
f7590ae
Compare
juruoO-o
left a comment
There was a problem hiding this comment.
Re-approving the latest conflict-resolution head after correcting the author/committer identity to the authenticated GitHub account. The source tree is identical to the previously reviewed resolution. CI is validating this head; local Java/Maven tests were not run.
juruoO-o
left a comment
There was a problem hiding this comment.
Reviewed the latest integration follow-ups: strict JSON decoding assertions, heartbeat test synchronization after the recovered request body is available, and deterministic exact comparison of skill upload paths. Existing content/containment and generation assertions remain intact.
Diff whitespace checks pass. Full repository CI is running on this head; local Java/Maven was unavailable.
Close an opened restore archive on setup failure while preserving the maintenance branch snapshot-source selection and workspace resume behavior. (cherry picked from commit 7411e29) Backport-review-patch: f488976d1ff40bca38b9cdee1da988dadd825217 Constraint: No AgentScope Service or SDK migration Confidence: high Not-tested: Whole-repository verification pending after lane integration
AgentScope-Java Version
2.1.0-SNAPSHOT, based on main
c416c378e0b4c1f4849bf75d66084c00bff62cef.Description
Fixes #3595.
When snapshot restoration opens an archive and
doSetupWorkspace()subsequently throws,AbstractBaseSandbox.start()currently never closes that stream: setup runs before the try-with-resources block. This affects both lost-workspace recovery and initial snapshot restoration.Move setup inside the existing resource scope in both branches, retaining setup-before-hydration ordering. Add parameterized regressions through the public
start()method for both branches, verifying stream closure, unchanged failure state, no hydration after failed setup, and preservation of the setup exception when closing also throws. Update the matching English and Chinese sandbox docs.Validation
Latest test-only update: 31 focused tests pass (6 snapshot cleanup + 23 pending-tool recovery + 2 run-id chain). Local JaCoCo 0.8.14 records both changed production lines 90 and 108 as covered (
mi=0, ci=2each). The original exception-only cases reached setup but left these invocation lines unmarked; the successful restoration cases close that coverage gap.Initial CI: Ubuntu, license, docs and module sync passed. Windows failed on three 10-second blocking timeouts in
SubagentPendingToolRecoveryTestandSubagentRunIdChainTest; the four cleanup regressions passed there. The affected 25 subagent tests passed in both local follow-up runs. The remote timeout root cause is not established; the new commit starts fresh CI.close()never called), 0 errors.*Test.javaclasses selected explicitly: 1,249 tests, 0 failures/errors, 18 skipped (1,231 passed). The skips remain reported; this is not a full-repository test run.E2bSandboxRecoveryTest: 8 passed.git diff --check: pass.npm run validatepasses, including 430 pages / 584 redirects and Mint build validation.Commands (PowerShell; Java 17, Maven 3.9.12):
AI assistance (Codex) was used for source review, implementation, and tests. Reproductions were executed locally and the final diff was checked against the surrounding code and stream-ownership contract.
Checklist
mvn spotless:applymvn test) — relevant module checks are above; full repository and live-provider tests were not run