Skip to content

[train][doc] Rename checkpoint_upload_func -> checkpoint_upload_fn in docs#60390

Merged
matthewdeng merged 1 commit intoray-project:masterfrom
TimothySeah:tseah/fix-upload-fn
Jan 23, 2026
Merged

[train][doc] Rename checkpoint_upload_func -> checkpoint_upload_fn in docs#60390
matthewdeng merged 1 commit intoray-project:masterfrom
TimothySeah:tseah/fix-upload-fn

Conversation

@TimothySeah
Copy link
Contributor

Summary

Simple text change

Testing

docbuild

… docs

Signed-off-by: Timothy Seah <tseah@anyscale.com>
@TimothySeah TimothySeah requested a review from a team as a code owner January 21, 2026 22:47
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the documentation to rename checkpoint_upload_function to checkpoint_upload_fn. The changes are consistent across the modified documentation code example and the reStructuredText file that includes it. This is a good change for consistency with the actual API. The changes look correct and I have no further comments.

metrics=metrics,
checkpoint=checkpoint,
checkpoint_upload_mode=train.CheckpointUploadMode.ASYNC,
checkpoint_upload_function=wait_async_save,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we enable tests for this so this kind of thing gets caught in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can add a release test variant that tests this.

As for doc tests - many of the current doc tests in checkpoints.py don't actually call trainer.fit, and this one in particular is hard to run because it requires saving to S3. Lmk if you have any best practices for this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah got it. I think since this is more like pseudocode we shouldn't run it. Though having separate python flies like this are meant to make it so that you can run them. For future reference you can use something like code-block instead.

@ray-gardener ray-gardener bot added docs An issue or change related to documentation train Ray Train Related Issue labels Jan 22, 2026
@matthewdeng matthewdeng enabled auto-merge (squash) January 23, 2026 01:59
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Jan 23, 2026
@matthewdeng matthewdeng merged commit 2dd931b into ray-project:master Jan 23, 2026
7 checks passed
xinyuangui2 pushed a commit to xinyuangui2/ray that referenced this pull request Jan 26, 2026
… docs (ray-project#60390)

Signed-off-by: Timothy Seah <tseah@anyscale.com>
jinbum-kim pushed a commit to jinbum-kim/ray that referenced this pull request Jan 29, 2026
… docs (ray-project#60390)

Signed-off-by: Timothy Seah <tseah@anyscale.com>
Signed-off-by: jinbum-kim <jinbum9958@gmail.com>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Feb 1, 2026
… docs (ray-project#60390)

Signed-off-by: Timothy Seah <tseah@anyscale.com>
Signed-off-by: 400Ping <jiekaichang@apache.org>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
… docs (ray-project#60390)

Signed-off-by: Timothy Seah <tseah@anyscale.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
… docs (ray-project#60390)

Signed-off-by: Timothy Seah <tseah@anyscale.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs An issue or change related to documentation go add ONLY when ready to merge, run all tests train Ray Train Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants