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

Integration: Add checks for the initial start of the VM with custom values (memory, cpus, disk) #3536

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

jsliacan
Copy link
Contributor

@jsliacan jsliacan commented Mar 8, 2023

Re: Issue #3496 and solution in #3511. Also, serves the same purpose as the check in basic.feature in e2e as asked for in #3518.

Replacing default values in initial start by custom values and corresponding checks. The test already exists as integration test resize_test.go, so I just tweaked that one. I used this occasion to do the same for memory and cpus parameters.

@openshift-ci
Copy link

openshift-ci bot commented Mar 8, 2023

@jsliacan: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-crc 01bb7f3 link true /test e2e-crc

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

}
})

It("check VM's memory size", func() {
out, err := SendCommandToVM("cat /proc/meminfo")
Expect(err).NotTo(HaveOccurred())
Expect(out).Should(MatchRegexp(`MemTotal:[\s]*9\d{6}`))
Expect(out).Should(MatchRegexp(`MemTotal:[\s]*11\d{6}`))
})

It("check VM's number of cpus", func() {
out, err := SendCommandToVM("cat /proc/cpuinfo")
Copy link
Member

Choose a reason for hiding this comment

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

not a blocker but just a suggestion , why are we not using lscpu and then use CPU\(s\):[\s]*5 which provide us correct cpus instead one less because /proc/cpuinfo start it from 0? May be another PR to try and fix it?

@openshift-ci
Copy link

openshift-ci bot commented Mar 10, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: praveenkumar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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