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

test/e2e: add MC smoke test #387

Merged
merged 1 commit into from
Feb 7, 2019

Conversation

runcom
Copy link
Member

@runcom runcom commented Feb 6, 2019

Far away from being the right tests we need to test this whole workload
but it's a start. Just making sure we can see the daemon (1) actually
converge to the new config. (Next step would be to deploy a pod with
an hostPath referencing an MC file, exec into this pod and verify
the file is rightly there)

Signed-off-by: Antonio Murdaca runcom@linux.com

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 6, 2019
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 6, 2019
Far away from being the right tests we need to test this whole workload
but it's a start. Just making sure we can see the daemon (1) actually
converge to the new config. (Next step would be to deploy a pod with
an hostPath referencing an MC file, exec into this pod and verify
the file is rightly there)

Signed-off-by: Antonio Murdaca <runcom@linux.com>
@runcom
Copy link
Member Author

runcom commented Feb 7, 2019

/retest

@runcom
Copy link
Member Author

runcom commented Feb 7, 2019

so this is green but I can't check if the test actually passed (like in e2e-aws where we have the full list)

LabelSelector: labels.SelectorFromSet(labels.Set{"k8s-app": "machine-config-daemon"}).String(),
}

err = wait.Poll(3*time.Second, 5*time.Minute, func() (bool, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Minor: hmm, so this is going over every log of every pod? Could we make this smarter by only going over pods on worker nodes?

Copy link
Member Author

Choose a reason for hiding this comment

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

I could do that yeah

Copy link
Member

Choose a reason for hiding this comment

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

It's also only the MCD pods right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, should be #387 (diff)

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, true. So every log of every MCD pod, rather than just worker MCD pods. Guess if it's not hard to select for only worker nodes, it'd be a nice addition, otherwise meh!

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm checking that, but MCDs aren't referencing worker or master explicitly so it's gonna be a great dance to get worker nodes and then match on names, what do you think?

@jlebon
Copy link
Member

jlebon commented Feb 7, 2019

so this is green but I can't check if the test actually passed (like in e2e-aws where we have the full list)

It's not intuitive, but it's in there. Click on "Details", then "artifacts", then go to artifacts/e2e-aws-op/container-logs/ and check test.log.gz:

clusterversion.config.openshift.io/version condition met
go test -timeout 20m -v${WHAT:+ -run="$WHAT"} ./test/e2e/
=== RUN   TestMCDToken
--- PASS: TestMCDToken (0.43s)
=== RUN   TestMCDeployed
--- PASS: TestMCDeployed (81.21s)
=== RUN   TestOperatorLabel
--- PASS: TestOperatorLabel (0.02s)
PASS
ok  	github.com/openshift/machine-config-operator/test/e2e	81.688s

Anyway, this looks good to me overall (woohoo more tests!). Will let others have a look.
/approve

@jlebon
Copy link
Member

jlebon commented Feb 7, 2019

I'm checking that, but MCDs aren't referencing worker or master explicitly so it's gonna be a great dance to get worker nodes and then match on names, what do you think?

Yeah, totally fine as is!

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jlebon, runcom

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

@runcom
Copy link
Member Author

runcom commented Feb 7, 2019

It's not intuitive, but it's in there. Click on "Details", then "artifacts", then go to artifacts/e2e-aws-op/container-logs/ and check test.log.gz:

let's try to populate the prow interface with actual tests though so we don't need to do that everytime

@runcom
Copy link
Member Author

runcom commented Feb 7, 2019

/retest

1 similar comment
@runcom
Copy link
Member Author

runcom commented Feb 7, 2019

/retest

@openshift-merge-robot openshift-merge-robot merged commit 21f4da6 into openshift:master Feb 7, 2019
@runcom runcom deleted the add-some-e2e branch February 7, 2019 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants