Skip to content

auto-triage: ensure /username/modelseed workspace folder exists before reconstruct#2

Draft
jplfaria wants to merge 2 commits into
mainfrom
fix/ensure-modelseed-folder-before-create
Draft

auto-triage: ensure /username/modelseed workspace folder exists before reconstruct#2
jplfaria wants to merge 2 commits into
mainfrom
fix/ensure-modelseed-folder-before-create

Conversation

@jplfaria

Copy link
Copy Markdown
Contributor

Root cause (modelseed-api-ops#11): PATRIC workspace returns Insufficient permissions (not Not Found) when create() targets a path whose parent directory has never been initialised. First-time users have no /username/modelseed folder, so reconstruct() fails at the final save step with a misleading error.\n\nFix: added _ensure_ws_folder(ws, path) helper that calls ws.create with overwrite=1 on the folder path before the model write in both reconstruct and _run_bulk_reconstruct. Idempotent for existing folders.\n\nTests: tests/unit/test_ensure_ws_folder.py with 4 unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant