Skip to content

Addressed bugs/improvements in huggingface bughunts - #3395

Merged
naveenku-jfrog merged 7 commits into
jfrog:masterfrom
naveenku-jfrog:fix/RTECO-957-Hugging-Face-Bughunt-Improvments-bugs
Mar 25, 2026
Merged

naveenku-jfrog merged 7 commits into
jfrog:masterfrom
naveenku-jfrog:fix/RTECO-957-Hugging-Face-Bughunt-Improvments-bugs

Conversation

@naveenku-jfrog

@naveenku-jfrog naveenku-jfrog commented Mar 18, 2026 •

Copy link
Copy Markdown
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: Addressed the bugs and improvements found out in buhunt session.
Testing: Done, artifactory instance.

@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 18, 2026
@naveenku-jfrog
naveenku-jfrog force-pushed the fix/RTECO-957-Hugging-Face-Bughunt-Improvments-bugs branch from deac5dd to 1ee6043 Compare March 25, 2026 06:13
@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 25, 2026
@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 25, 2026
Comment thread utils/cliutils/commandsflags.go Outdated
Comment on lines +1766 to +1767
HfHubEtagTimeout: cli.StringFlag{
Name: HfHubEtagTimeout,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

HfHubEtagTimeout defined as StringFlag but should be IntFlag?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addressed it.

Comment thread buildtools/cli.go
}

func updateHuggingFaceEnv(c *cli.Context, serverDetails *coreConfig.ServerDetails) error {
if os.Getenv(HF_ENDPOINT) == "" {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removed checks for existing HF_ENDPOINT and HF_TOKEN env vars - now always overwrites. Is this intentional behavior change?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

If user has provided --repo-key flag, then its mandatory to set HF_ENDPOINT env value.

@agrasth

agrasth commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

--repo-key marked as [Mandatory] in docs but appears optional in code implementation.

Comment thread buildtools/cli.go
@@ -1183,28 +1199,30 @@ func huggingFaceUploadCmd(c *cli.Context, cmdName string, hfArgs []string) error
if repoType == "" {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Repo type validation only in upload command, not download. Should both validate?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addressed it.

@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Mar 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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


@naveenku-jfrog
naveenku-jfrog merged commit 5d1f0ab into jfrog:master Mar 25, 2026
78 checks passed
@naveenku-jfrog
naveenku-jfrog deleted the fix/RTECO-957-Hugging-Face-Bughunt-Improvments-bugs branch March 25, 2026 12:19
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