fix(litlogger): omit version suffix on model upload when not provided - #69
Open
adityaanikam wants to merge 2 commits into
Open
fix(litlogger): omit version suffix on model upload when not provided#69adityaanikam wants to merge 2 commits into
adityaanikam wants to merge 2 commits into
Conversation
Model._registry_name checked self.version, which always defaults to "latest" in __init__ regardless of whether a version was actually specified. This appended a literal :latest suffix to the registry name on every upload where the caller did not set a version, and the backend rejects that suffix with a 400. The class already tracks whether a version was explicitly provided via self._version_provided, matching the check already used by the series upload path in experiment_support.py. This switches _registry_name to check that flag instead, so an omitted version sends no suffix and lets the server auto-assign one. Verified locally by reverting the one-line fix and confirming the exact failure reproduces: the upload name becomes owner/teamspace/exp-name:latest instead of owner/teamspace/exp-name. Closes Lightning-AI#68
adityaanikam
requested review from
ethanwharris,
justusschock,
owbone and
tchaton
as code owners
August 21, 2026 20:12
justusschock
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #68
Model._registry_name checked self.version, which always defaults to latest in init regardless of whether a version was actually specified. This appended a literal :latest suffix to the registry name on every upload where the caller did not set a version, and the backend rejects that suffix with a 400.
The class already tracks whether a version was explicitly provided via self._version_provided, matching the check already used by the series upload path in experiment_support.py. This switches _registry_name to check that flag instead, so an omitted version sends no suffix and lets the server auto-assign one.
Verified locally with pytest: added a test asserting the upload name has no version suffix when omitted, then reverted the one-line fix to confirm it reproduces the exact failure (owner/teamspace/exp-name:latest instead of owner/teamspace/exp-name).