Skip to content

chore(evt): add support for suite yaml files to setup test scenario with evt tool#5238

Open
trvll wants to merge 1 commit into
mainfrom
tdpaiva/add-event-files-support-evt-stress
Open

chore(evt): add support for suite yaml files to setup test scenario with evt tool#5238
trvll wants to merge 1 commit into
mainfrom
tdpaiva/add-event-files-support-evt-stress

Conversation

@trvll
Copy link
Copy Markdown
Contributor

@trvll trvll commented Feb 13, 2026

Suite Event Files for evt stress

Add YAML suite files to evt stress so users can define reusable test scenarios (groups of events with parameters) in a file instead of passing long lists of -e flags on every run.

What changed

  • New --events-file / -E and --scenario flags in evt stress to load events from YAML suite files.
  • Suite loader, validator, and scenario resolver in cmd/evt/cmd/stress/suite.go.
  • CLI integration in cobra.go: suite events merge with CLI -e flags.
  • Example suite, design doc, implementation plan, and docs update.
  • Integration test script (scripts/evt-tracee-test.sh) that runs evt stress + Tracee end-to-end and collects JSON events.
  • Tests for suite loading, validation, scenario resolution, and CLI flag integration.

@trvll trvll requested a review from geyslan February 13, 2026 22:00
@trvll trvll changed the title chore(evt): add suport for suite yaml files to setup test scenario with evt tool chore(evt): add support for suite yaml files to setup test scenario with evt tool Feb 13, 2026
@trvll trvll force-pushed the tdpaiva/add-event-files-support-evt-stress branch from 980d33d to 1c16d64 Compare February 13, 2026 22:03
@trvll trvll marked this pull request as ready for review February 23, 2026 12:32
@trvll trvll force-pushed the tdpaiva/add-event-files-support-evt-stress branch from 1c16d64 to aba677f Compare March 16, 2026 14:46
Copy link
Copy Markdown
Member

@geyslan geyslan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs to be fixed:

https://github.com/aquasecurity/tracee/actions/runs/23149658145/job/67247527387?pr=5238#step:6:15

cmd/evt/cmd/stress/suite.go:78:15: replace fmt.Errorf by errors.New
cmd/evt/cmd/stress/suite.go:142:15: replace fmt.Errorf by errors.New

Comment thread cmd/evt/cmd/stress/suite.go
Comment thread cmd/evt/cmd/stress/suite.go
Comment thread cmd/evt/cmd/stress/cobra_test.go Outdated
Comment thread docs/contributing/evt-tool.md Outdated
Comment thread cmd/evt/cmd/stress/cobra.go
Comment thread cmd/evt/cmd/stress/cobra.go Outdated
@trvll trvll force-pushed the tdpaiva/add-event-files-support-evt-stress branch from aba677f to 9d0f381 Compare March 17, 2026 21:22
@trvll trvll requested a review from geyslan March 17, 2026 21:35
@@ -0,0 +1,32 @@
# Example event suite for evt stress (--events-file)
# See evt-tool.md and evt-events-file-design.md for full format and options.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# See evt-tool.md and evt-events-file-design.md for full format and options.
# See evt-tool.md for full format and options.

Leftover?

Copy link
Copy Markdown
Member

@geyslan geyslan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀, take a look in the leftover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants