Prevent extra snapshot with --use-new-run (#2943)

* Prevent extra snapshot when using new run

* Add unit tests for initializing snapshotter

There should be no snapshot for RunV2.  Added a test for SingleSnapshot
as well to prove that the test actually works (rather than `initialized`
just not being read or set properly).
This commit is contained in:
Asher
2024-01-16 21:14:03 -08:00
committed by GitHub
parent 16ed6b2428
commit 398ebfb6da
3 changed files with 27 additions and 8 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ func (s *stageBuilder) build() error {
}
initSnapshotTaken := false
if s.opts.SingleSnapshot || s.opts.RunV2 {
if s.opts.SingleSnapshot {
if err := s.initSnapshotWithTimings(); err != nil {
return err
}