Skip to content

Commit bd9ea39

Browse files
dheerajodhaclaude
andcommitted
fix(EC-1816): use --images flag and document stress benchmark
Replace deprecated --json-input with --images, add benchmark listing to README. Resolves: EC-1816 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ef36c36 commit bd9ea39

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

benchmark/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ other than any data that is contained within it. Benchmarks are run from within
1010
the directory they're defined in, simply by running `go run .`, additional
1111
arguments can be passed in, for example `-benchnum 10` to run the benchmark 10
1212
times.
13+
14+
## Available benchmarks
15+
16+
- **simple/** — Single-component validation against the `@redhat` policy collection.
17+
- **stress/** — Multi-component validation with configurable parallelism. Set
18+
`EC_STRESS_COMPONENTS` (default 10) and `EC_STRESS_WORKERS` (default 35) to
19+
control the workload.

benchmark/stress/stress.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ func setup() (string, suite.Closer) {
7979
}
8080

8181
type component struct {
82-
Name string `json:"name"`
83-
ContainerImage string `json:"containerImage"`
84-
Source *source `json:"source,omitempty"`
82+
Name string `json:"name"`
83+
ContainerImage string `json:"containerImage"`
84+
Source *source `json:"source,omitempty"`
8585
}
8686

8787
type source struct {
@@ -156,7 +156,7 @@ func ec(dir string, components, workers int) func() {
156156
if err := suite.Execute([]string{
157157
"validate",
158158
"image",
159-
"--json-input",
159+
"--images",
160160
snap,
161161
"--policy",
162162
policy,

0 commit comments

Comments
 (0)