teemtee / tmt

Test Management Tool
MIT License
83 stars 125 forks source link

Unified way to synchronize `.git` in the worktree or test directories #2444

Open lukaszachy opened 1 year ago

lukaszachy commented 1 year ago

Currently we have few options and some auto detection. Would be good to have it under same name and documented behavior to limit surprises.

Motivation to remove this directory is to save disk space and limit the amount of transferred data between host and guests. But sometimes user needs it at guest as well.

At the moment:

The expected behavior:

lsm5 commented 8 months ago

Hello @lukaszachy , just checking up on this. I ran into this issue and then got distracted with other things, now seeing this again :)

lsm5 commented 8 months ago

Working on adding centos stream tests to buildah at https://github.com/containers/buildah/pull/5289 . A lot of the makefile targets expect .git to exist and since the test env can't find the git metadata dir, I see failures like: https://artifacts.dev.testing-farm.io/fbf0329b-8a3b-4f27-8f80-706c295f6946/

fatal: not a git repository (or any of the parent directories): .git
Makefile:39: *** "git failed".  Stop.
Shared connection to 18.118.6.58 closed.
lukaszachy commented 8 months ago

As first step we can fix keep-git-metadata flag to be usable without url ...

EDIT: https://github.com/teemtee/tmt/pull/2698

lukaszachy commented 8 months ago

Decision from the hacking session:

LecrisUT commented 7 months ago

Is the plan to implement a prepare.how: keep-git-metadata step after which the fmf tree has the same .git metadata with whatever changes are added before/after this step?