Hi,
I think I experienced some bug :
I created a launch from git, with command like
wandb job create --project "<project-name>" --entity "<your-entity>" \
--name "<name-for-job>" git https://github.com/org-name/repo-name.git \
--entry-point "<path-to-script/code.py>"
Then couple of runs worked fine, agent received and processed. Then I commited some changes to the git repo and then I got this error:
^^^^^^^^^^^^^^^^^^^
File "/home/andruum/.local/lib/python3.11/site-packages/git/db.py", line 44, in info
hexsha, typename, size = self._git.get_object_header(bin_to_hex(binsha))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andruum/.local/lib/python3.11/site-packages/git/cmd.py", line 1461, in get_object_header
return self.__get_object_header(cmd, ref)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andruum/.local/lib/python3.11/site-packages/git/cmd.py", line 1447, in __get_object_header
return self._parse_object_header(cmd.stdout.readline())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andruum/.local/lib/python3.11/site-packages/git/cmd.py", line 1408, in _parse_object_header
raise ValueError("SHA %s could not be resolved, git returned: %r" % (tokens[0], header_line.strip()))
ValueError: SHA b'4269b5fefe22789cde69a2be295429f71536d3af' could not be resolved, git returned: b'4269b5fefe22789cde69a2be295429f71536d3af missing'
So, it seems like if commit for which launch was created is not the last one in the remote repo, then the agent is failing to launch it for some reason.