Hi @<1693795212020682752:profile|ClumsyChimpanzee88> ! Not sure I understand the question. If the commit ID does not exist remotely, then it can't be pulled. How would you pull the commit to another machine otherwise, is this possible using your current workflow?
Answered
Hello Everyone,
I Want To Run A Github Action On Each Repo Pull Request To Create A Task In Clearml To Basically Do Check Of Current Pr Code With Some Scenarios. Clearml Task Gets Repo And Commit Id As Follows (From Console):
Hello everyone,
I want to run a GitHub action on each repo pull request to create a task in ClearML to basically do check of current PR code with some scenarios. ClearML task gets repo and commit ID as follows (from console):
Executing task id [322c9418867b43dfb6b641b9457f1d1b]:
repository =
branch = HEAD
version_num = some_hash
tag =
docker_cmd = docker_command_with_params
entry_point = some_command
working_dir = .
::: Using Cached environment /root/.clearml/venvs-cache/... :::
error: could not write config file /root/.gitconfig: Device or resource busy
cloning:
and on the step of clone it throws an error:
fatal: reference is not a tree: some_hash
Repository cloning failed: Command '['git', 'checkout', 'some_hash', '--force']' returned non-zero exit status 128.
clearml_agent: ERROR: Failed cloning repository.
The problem is that commit ID is not belongs to any branch in the repo yet. I’ve tested this task with commit ID belonging to a repo branch and it works fine. So my question is how to checkout a PR commit or may be fetch origin refs before checkout with ClearML? Any other solutions in this case?
639 Views
1
Answer
8 months ago
8 months ago
Tags