Additional git tagger variants (TreeSha, AbbrevTreeSha)#1905
Additional git tagger variants (TreeSha, AbbrevTreeSha)#1905nkubala merged 5 commits intoGoogleContainerTools:masterfrom
Conversation
|
So the problem on OSX seems to be that
So this is probably a real problem on OSX and not just a bad test setup. |
e71320c to
5c9075b
Compare
Codecov Report
@@ Coverage Diff @@
## master #1905 +/- ##
==========================================
+ Coverage 56.74% 56.81% +0.07%
==========================================
Files 183 183
Lines 7860 7883 +23
==========================================
+ Hits 4460 4479 +19
- Misses 2988 2990 +2
- Partials 412 414 +2
Continue to review full report at Codecov.
|
5c9075b to
64e5edd
Compare
64e5edd to
f6f9feb
Compare
f6f9feb to
07c4de3
Compare
354cb1b to
a1ef727
Compare
I actually don't see this when I run |
|
@nkubala So I think the root cause is that |
a1ef727 to
42caed9
Compare
42caed9 to
69520fa
Compare
- TreeSha: use the full tree hash of the artifact workingdir - AbbrevTreeSha: use the abbreviated tree hash of the artifact workingdir Signed-off-by: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com>
Signed-off-by: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com>
69520fa to
1be6790
Compare
tejal29
left a comment
There was a problem hiding this comment.
I only verified this on Linux. Please hold until i verify on mac too.
I only verified this on Linux. Please hold until i verify on mac too.
Signed-off-by: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com>
|
@corneliusweig can this be merged? |
nkubala
left a comment
There was a problem hiding this comment.
@corneliusweig I merged the config version upgrade PR, can you add an change to upgrade() in the v1beta10 config? then I'll merge this in
a625dd4 to
a977f5c
Compare
|
@nkubala Done. I merged in master after the config freeze. |
Synopsis
PR #1902 has introduced git tagger variants
Tags,CommitSha, andAbbrevCommitSha. Issue #407 also suggests tree hash variants, which are part of this PR. Originally these variants were also part of #1902, but OSX has problems to determine the relative git path, so these two variants were extracted.The tree hash variants are similar in spirit to the
sha256tagger in that it is based on the (committed) workingdir content. As the hash is pre-computed by git, this should be faster than thesha256Tagger.Config change
There are no config changes wrt. PR #1902, but
gitCommit.variantnow understands theTreeShaandAbbrevTreeShavariants:Close #407