Documentation
¶
Overview ¶
Package snapshot builds shareable mirror copies for demos and benchmarks. See specs/000-product/contracts/sync.md "Snapshot generation".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FlowStats ¶ added in v0.22.0
type FlowStats struct {
WIPCount int
WIPAgeP50, WIPAgeP85, WIPAgeMax float64
CycleCount int
CycleP50, CycleP85, CycleMax float64
Closed, ClosedThroughProgress int
}
FlowStats is the distribution `gadak snapshot` reports about the file it just wrote. Ages and cycles are days.
type Options ¶
type Options struct {
From string
Out string
Spread time.Duration // 0 = keep source timestamps
Scale int // target issue count; ≤ source count means no cloning
Seed int64 // reserved for determinism; algorithm itself is seed-stable
Force bool
Now time.Time
// DeriveSprints invents a sprint history from fix versions named
// "Sprint N" (the demo fixture's convention) when the source has no
// sprints of its own — see deriveSprints (GDK-1656).
DeriveSprints bool
}
Options controls snapshot generation. Now is injectable for deterministic tests.
type Result ¶
type Result struct {
Path string
Issues int
Comments int
Changelog int
Spread time.Duration
Scale int
Bytes int64
// Facet rotation (GDK-1558), zero when nothing was cloned: the size of the
// two value pools the clones rotate through and the length of the weighted
// sequence (one entry per source issue). Reported so "did the rotation
// happen, and over what" is answered by the command that did it.
Assignees int
Priorities int
SequenceLen int
// Flow is what the snapshot's own timestamps say about how work moves
// through it (GDK-1739). Always measured, always printed: the defect this
// answers — a fixture whose WIP was two months old and whose cycle time
// was an afternoon — took a hand-written SQL probe to see, on a file that
// is regenerated by a Makefile target nobody watches.
Flow FlowStats
}
Result is the human-readable summary of a successful Build.