-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I created a job using wandb local:
wandb job create git https://xxx.git --project="TEST" \
--entity="username" --entry-point="main.py" --name="test1" \
--git-hash="b7baca74dd034cb900ea0e3f48c397ea51c4c481"the wandb local created the job in the TEST project, and the wandb-job.json:
{
"_version": "v0",
"source_type": "repo",
"runtime": "3.7",
"source": {
"git": {
"remote": "https://xxx.git",
"commit": "b7baca74dd034cb900ea0e3f48c397ea51c4c481"
},
"entrypoint": [
"python3.7",
"main.py"
],
"notebook": false
},
// ...
}After that, I had modifed my codes and synced with remote repository, and the commits are as following:
$ git log --pretty=oneline -10
8a6b803c530e800cdf3304d12c6467dcfd655bf5 (HEAD -> main, origin/main) now1001
49ae7364f743c1b699d7a00f51e9805030c38c18 now1000
b7baca74dd034cb900ea0e3f48c397ea51c4c481 now1002
# ...Then, I launched the job by pushing it to the existing queue:

After completing the run, I located the codes cloned from a remote repository by the wandb local server and reviewed the commit:
$ cd "/tmp/tmpavc8q10w"
$ git log --pretty=oneline -10
8a6b803c530e800cdf3304d12c6467dcfd655bf5 (grafted, HEAD -> main, origin/main) now1001The expected commit, as specified by --git-hash, should be b7baca74dd034cb900ea0e3f48c397ea51c4c481 rather than the HEAD commit!
The above information indicates that:
- The wandb local server clones the latest version of remote repository when launching the job
--git-hashoption inwandb job createseems to be not working.
Can anyone help solve this?
Metadata
Metadata
Assignees
Labels
No labels