cml icon indicating copy to clipboard operation
cml copied to clipboard

CML <-> DVC push

Open DavidGOrtega opened this issue 4 years ago • 5 comments

Try to push dvc ephemeral commits

DavidGOrtega avatar Jul 12 '21 17:07 DavidGOrtega

Won't work out of the box for GitHub, see https://github.com/iterative/cml/issues/560#issuecomment-852250748 and dulwich/dulwich#882

0x2b3bfa0 avatar Jul 12 '21 18:07 0x2b3bfa0

Does not have to be in DVC, its just only find out a mechanism in CML

DavidGOrtega avatar Jul 12 '21 20:07 DavidGOrtega

Here you're a quick patch from my test repository, so you can use dvc to push experiments:

# Dulwich headless authentication patch for GitHub Actions
# See https://github.com/iterative/cml/issues/560#issuecomment-852250748

credentials="$(
  git config --local http.https://github.com/.extraheader |
  awk '{print $3}' |
  base64 --decode
)"

address="$(
  git config --local remote.origin.url |
  sed 's/^https:\/\///'
)"

git config --local remote.origin.url "https://$credentials@$address"
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"

0x2b3bfa0 avatar Jul 12 '21 20:07 0x2b3bfa0

It would be easier to have it fixed in DVC/dulwich, though.

0x2b3bfa0 avatar Jul 12 '21 21:07 0x2b3bfa0

also related to https://github.com/iterative/dvc/issues/6823#issuecomment-1072991559?

casperdcl avatar Sep 05 '22 18:09 casperdcl

out of our control for the time being, https://github.com/jelmer/dulwich/issues/882

dacbd avatar Feb 17 '23 15:02 dacbd