Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit151c6bb

Browse files
committed
linting
1 parent94ccfa8 commit151c6bb

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTERTABLE ONLY
2+
provisioner_job_timings
3+
DROP COLUMN IF EXISTS stage_seq;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ALTERTABLE ONLY
2+
provisioner_job_timings
3+
ADD COLUMN stage_seqinteger DEFAULT0;
4+
5+
COMMENTON COLUMN
6+
provisioner_job_timings.stage_seq IS
7+
'Distinguish repeated runs of the same stage within a single build job.';

‎provisioner/terraform/executor.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,9 @@ func (e *executor) apply(
603603
}
604604

605605
// `terraform show` & `terraform graph`
606-
//endGraph := e.timings.startStage(database.ProvisionerJobTimingStageGraph)
606+
//endGraph := e.timings.startStage(database.ProvisionerJobTimingStageGraph)
607607
state,err:=e.stateResources(ctx,killCtx)
608-
//endGraph(err)
608+
//endGraph(err)
609609
iferr!=nil {
610610
returnnil,err
611611
}

‎provisioner/terraform/timings.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ func (t *timingAggregator) ingest(ts time.Time, s *timingSpan) {
109109
return
110110
}
111111

112-
ifs.stage!="" {
113-
// Explicitly set stage takes precedence.
112+
// Only set the stage if it hasn't already been set on the span.
113+
// Explicitly set stage takes precedence.
114+
ifs.stage=="" {
114115
s.stage=t.stage
115116
}
116117
ts=dbtime.Time(ts.UTC())

‎provisionersdk/proto/provisioner.proto‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,11 @@ message Timing {
457457
stringresource=5;
458458
stringstage=6;
459459
TimingStatestate=7;
460+
// stage_que distinguishes repeated runs of the same stage.
461+
// 0 is the first occurrence, 1 is the second, etc.
462+
// Repeated stages are not ideal, but they do exist and should be known
463+
// to be unique by this field.
464+
int32stage_seq=8;
460465
}
461466

462467
enumTimingState {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp