You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a mapping from revision to branches while using only one exp show call (#3980)
* Add a mapping from revision to branches
* Fix most tests
* Add flag to failing test
* Reduce number of calls to git
* Rework call to get commit messages
* Update structure of code and test fixture
* Do not duplicate commits
* Fix indicator
---------
Co-authored-by: Matt Seddon <[email protected]>
it('should add data from git to commits if git log output is provided',()=>{
67
-
const{ commits }=collectExperiments(
68
-
expShowWithTwoCommits,
69
-
false,
70
-
`61bed4ce8913eca7f73ca754d65bc5daad1520e2\nJohn Smith\n3 days ago\nrefNames:tag: v.1.1\nmessage:add new feature${COMMITS_SEPARATOR}351e42ace3cb6a3a853c65bef285e60748cc6341\nrenovate[bot]\n5 weeks ago\nrefNames:\nmessage:update various dependencies\n* update dvc\n* update dvclive`
71
-
)
72
-
const[branch1,branch2]=commits
73
-
expect(branch1.description).toStrictEqual('add new feature')
74
-
expect(branch2.description).toStrictEqual('update various dependencies ...')
75
-
expect(branch1.commit).toStrictEqual({
76
-
author: 'John Smith',
77
-
date: '3 days ago',
78
-
message: 'add new feature',
79
-
tags: ['v.1.1']
80
-
})
81
-
expect(branch2.commit).toStrictEqual({
82
-
author: 'renovate[bot]',
83
-
date: '5 weeks ago',
84
-
message: 'update various dependencies\n* update dvc\n* update dvclive',
85
-
tags: []
86
-
})
87
-
})
88
-
89
62
it('should not collect the same experiment twice',()=>{
0 commit comments