Skip to content

Feature/rteco 814 implement build info collection for hugging face#3352

Open
naveenku-jfrog wants to merge 5 commits intojfrog:masterfrom
naveenku-jfrog:feature/RTECO-814-Implement-Build-Info-collection-for-Hugging-Face
Open

Feature/rteco 814 implement build info collection for hugging face#3352
naveenku-jfrog wants to merge 5 commits intojfrog:masterfrom
naveenku-jfrog:feature/RTECO-814-Implement-Build-Info-collection-for-Hugging-Face

Conversation

@naveenku-jfrog
Copy link
Collaborator

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the master branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

What: Added build info collection logic for hugging face download and upload command
Depend on other PR: Yes, jfrog/jfrog-cli-artifactory#368
Testing: Done, On artifactory instance

@naveenku-jfrog naveenku-jfrog added the safe to test Approve running integration tests on a pull request label Feb 15, 2026
@github-actions
Copy link
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


case "d", "download":
return huggingFaceDownloadCmd(c, hfArgs, serverDetails, buildConfiguration)
default:
return errors.New("Wrong command: " + cmdName)
Copy link
Contributor

Choose a reason for hiding this comment

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

As much as I understood, artifactory does not support commands other than upload or download, then for default case:

  1. either we should let it be passthrough and let artifactory through error. In this way we will not miss out much incase server any fine day releases other commands support for hugging face.
  2. or, we should improve error message.

Comment on lines +1160 to +1170
if len(hfArgs) < 2 {
return cliutils.PrintHelpAndReturnError("Folder path and repository ID are required.", c)
}
folderPath := hfArgs[0]
if folderPath == "" {
return cliutils.PrintHelpAndReturnError("Folder path cannot be empty.", c)
}
repoID := hfArgs[1]
if repoID == "" {
return cliutils.PrintHelpAndReturnError("Repository ID cannot be empty.", c)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess last two cases are redundant

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

Labels

safe to test Approve running integration tests on a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants