Skip to content

stores: add exists_tree/rmtree, mkdir flag, normalize_log_path, and store HTML/flush helpers#756

Open
derek-tml wants to merge 5 commits into
gh/derek-tml/7/basefrom
gh/derek-tml/7/head
Open

stores: add exists_tree/rmtree, mkdir flag, normalize_log_path, and store HTML/flush helpers#756
derek-tml wants to merge 5 commits into
gh/derek-tml/7/basefrom
gh/derek-tml/7/head

Conversation

@derek-tml

@derek-tml derek-tml commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Stack from ghstack (oldest at bottom):

Extend the Storage protocol and TrainingRunStore with the primitives the
training/eval code needs to manage run artifacts on local paths and cloud
object stores (gs://, s3://, ...) alike:

  • Storage.exists_tree()/rmtree(): prefix-aware existence and recursive
    delete that stay reliable on object stores with no directory markers.
  • storage_from_uri(mkdir=False): read-only access that never creates the
    directory as a side effect.
  • normalize_log_path(): expand ~ for local paths, leave cloud URIs intact.
  • TrainingRunStore.write_logtree_html()/write_gantt_html() and
    flush()/aflush() (cloud backends stage appends locally until flushed).

Purely additive; includes unit tests.

Co-authored-by: Cursor cursoragent@cursor.com

[ghstack-poisoned]
@derek-tml

Copy link
Copy Markdown
Collaborator Author

@codex review

@derek-tml derek-tml marked this pull request as ready for review June 2, 2026 05:48

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8c55e55e3e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tinker_cookbook/stores/storage.py Outdated
[ghstack-poisoned]
@derek-tml

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

derek-tml added 3 commits June 1, 2026 23:08
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@derek-tml derek-tml requested a review from dphuang2 June 3, 2026 00:01
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