Skip to content

test: Add CRI benchmarks for container operations#1569

Merged
helsaawy merged 2 commits intomicrosoft:mainfrom
helsaawy:cri-bench
Jan 31, 2023
Merged

test: Add CRI benchmarks for container operations#1569
helsaawy merged 2 commits intomicrosoft:mainfrom
helsaawy:cri-bench

Conversation

@helsaawy
Copy link
Copy Markdown
Contributor

Add CRI API benchmarks to cri-containerd.test.exe, and update helper functions in cri-containerd to accept tb testing.TB instead of t *testing.T.

Switched cri-containerd to test\internal\flag so that test\internal\require can be used to check if features are present since that implementation already mirrors what cri-containerd does, but accepts a testing.TB, and deleted old
test/internal/stringsetflag.go file.

Renamed scripts/Test-Functionl.ps1 to scripts/Run-Tests.ps1, and updated it to run both functional and CRI tests and benchmarks.

Signed-off-by: Hamza El-Saawy [email protected]

Comment thread scripts/Run-Tests.ps1
Add CRI API benchmarks to `cri-containerd.test.exe`, and update helper
functions in `cri-containerd` to accept `tb testing.TB` instead of
`t *testing.T`.

Switched `cri-containerd` to `test\internal\flag` so that
`test\internal\require` can be used to check if features are present
since that implementation already mirrors what `cri-containerd` does,
but accepts a `testing.TB`, and deleted old
`test/internal/stringsetflag.go` file.

Renamed `scripts/Test-Functionl.ps1` to `scripts/Run-Tests.ps1`, and
updated it to run both functional and CRI tests and benchmarks.

Signed-off-by: Hamza El-Saawy <[email protected]>
@helsaawy
Copy link
Copy Markdown
Contributor Author

rebase to get CI fixes for failing integration testing

Comment thread test/internal/flag/flag.go
Copy link
Copy Markdown

@katiewasnothere katiewasnothere left a comment

Choose a reason for hiding this comment

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

small nits, otherwise lgtm

Signed-off-by: Hamza El-Saawy <[email protected]>
@helsaawy helsaawy merged commit db7a679 into microsoft:main Jan 31, 2023
@helsaawy helsaawy deleted the cri-bench branch January 31, 2023 22:01
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.

3 participants