Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(run-integration-test): Add interu tool #26

Merged
merged 25 commits into from
Jan 10, 2025

Conversation

Techassi
Copy link
Member

This tool reads and validates the operator specific integration test config file tests/interu.yaml (can be overridden) and the instances.yaml file containing size-to-type mappings. It then produces the correct output which can be passed to GITHUB_ENV or GITHUB_OUTPUT.

It is now possible to define runners and test profiles. Runners specify the exact cluster specification. Test profiles allow tailored scenarios, eg. if the test is run as part of a scheduled run or triggered manually.

Each profile specifies a test strategy. Currently two are supported: weighted and use-runner.

@Techassi Techassi self-assigned this Dec 17, 2024
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

Nice one!
Just a few suggestions.

run-integration-test/README.md Outdated Show resolved Hide resolved
run-integration-test/config.example.yml Outdated Show resolved Hide resolved
run-integration-test/config.example.yml Outdated Show resolved Hide resolved
run-integration-test/config.example.yml Outdated Show resolved Hide resolved
run-integration-test/config.example.yml Outdated Show resolved Hide resolved
tools/interu/src/config/profile.rs Outdated Show resolved Hide resolved
tools/interu/src/main.rs Show resolved Hide resolved
tools/interu/src/main.rs Show resolved Hide resolved
tools/interu/src/config/runner.rs Outdated Show resolved Hide resolved
tools/interu/src/config/runner.rs Outdated Show resolved Hide resolved
@Techassi Techassi requested a review from NickLarsenNZ January 5, 2025 13:23
@Techassi Techassi marked this pull request as ready for review January 5, 2025 13:23
NickLarsenNZ
NickLarsenNZ previously approved these changes Jan 9, 2025
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

LGTM, left some non-blocking comments

run-integration-test/README.md Outdated Show resolved Hide resolved
run-integration-test/README.md Show resolved Hide resolved
run-integration-test/README.md Outdated Show resolved Hide resolved
run-integration-test/README.md Outdated Show resolved Hide resolved
run-integration-test/README.md Outdated Show resolved Hide resolved
run-integration-test/README.md Outdated Show resolved Hide resolved
tools/interu/src/cli.rs Outdated Show resolved Hide resolved
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
@Techassi Techassi requested a review from NickLarsenNZ January 10, 2025 12:52
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

LGTM

@Techassi Techassi merged commit a177bbb into main Jan 10, 2025
3 checks passed
@Techassi Techassi deleted the feat/run-integration-test-rust-tool branch January 10, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants