Repository navigation
Fix Gym lifecycle handling and prepare 0.1.0 release - #108
Conversation
|
Thanks for putting this together, @andreatnvidia! SummaryThis PR fixes cookie invalidation between Gym lifecycle calls, cancels active and queued Pi turns during shutdown, and registers Gym's three entry points for its first release. The implementation matches the stated intent, with one remaining correctness issue in cookie deletion validation. FindingsCritical — Let's fix these before mergeplugins/data-designer-gym/src/data_designer_gym/columns.py:380–381 — Validate cookie domains before applying deletions
What Looks Good
Residual Risk
VerdictNeeds changes — Validate cookie deletion domains and add regression coverage before merging. No additional defects were confirmed, and there were no existing PR reviews or inline comments to duplicate when checked. This review was generated by an AI assistant. |
|
Thanks for catching this, @nabinchha. Fixed in the latest commits. Deletions now use HTTPX’s cookie parser and domain checks before removing a carried cookie. Added regressions for both expiry forms during execution and intermediate initialization, including headers with extension attributes like |
nabinchha
left a comment
There was a problem hiding this comment.
Thanks for addressing the feedback, @andreatnvidia!
Summary
Reviewed the follow-up changes at d14be65. Cookie deletions now use HTTPX's acceptance policy, resolving the finding in my earlier review. The packaging, ownership, documentation, and CI updates match the stated release-preparation intent.
Findings
No remaining confirmed findings.
What Looks Good
- Domain validation is consistent with cookie replacements, with coverage for both expiry forms, extension attributes, and intermediate initialization.
- The optional Pi adapter tests now run in a separate CI job.
- Package requirements, catalog metadata, generated ownership, and installation documentation are consistent; source archive exclusions target local runtime and test artifacts.
Residual Risk
All 36 updated lifecycle cookie regression cases passed locally, and all applicable CI checks passed at d14be65, including the Pi adapter job. The full updated plugin and Pi suites were not rerun locally; those results were verified through CI.
Verdict
Ship it — The original finding is resolved, and the follow-up review found no additional blockers. This approval supersedes the Needs changes verdict in my earlier comment.
This review was generated by an AI assistant.
What
Honor session-cookie invalidation between Gym lifecycle calls and cancel active/queued Pi turns when the service stops. Prepare
data-designer-gymfor its first 0.1.0 package release with catalog registration, shared reviewer ownership, current dependency requirements, clean source archives, installation docs, and automated Pi adapter tests.Fixes #106
Fixes #107
Why
Deleted cookies could be sent again during execution or cleanup. The Pi server could also wait indefinitely for active requests before reaching its cancellation hook. Address these lifecycle issues and the remaining packaging gaps before publishing 0.1.0.
Usage
After publishing
data-designer-gym/v0.1.0, install into an active Python >=3.10 environment:The plugin requires DataDesigner >=0.9.7. Gym services and the optional Pi example keep their separate runtimes.
How
/stats.Validation
make install testpassed all 27 adapter tests.uv lock --check, strict documentation build, andgit diff --checkpassed.