8000 kvm: Enable functional tests for kvm by squall0gd · Pull Request #2007 · rkt/rkt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

kvm: Enable functional tests for kvm #2007

Merged
merged 1 commit into from
Apr 28, 2016

Conversation

squall0gd
Copy link
Contributor

This is first part of enabling functional tests for kvm flavor.
This pr requires modification in Semaphore configuration

Right now we are skipping:

  • Few network tests
  • TestAceValidator
  • TestAPIServiceListInspectPods
  • TestAPIServiceCgroup
  • TestPrepareAppEnsureEtcHosts
  • TestMountSymlink
  • TestNetCustomMacvlan
  • TestPodManifest
  • TestVolumes

Also checking error code is turned off

Build Status

@iaguis iaguis added this to the v1.0.0 milestone Jan 20, 2016
@squall0gd squall0gd changed the title [WIP] Mstachow/rkt functional tests kvm: Enable functional tests for kvm [WIP] kvm: Enable functional tests for kvm Jan 20, 2016
@ppalucki
Copy link
Contrib 8000 utor

Please provide better PR description, about all changes/intentions eg. (pass flavor to func tests, fix empty volume preparation etc... both in PR description as well as in each commit) - that will help rather big change.

"TODO list" would be usefull too (eg. list of tests that are still falling).

@squall0gd squall0gd force-pushed the mstachow/rkt_functional_tests_kvm branch from ffda3cb to 500867d Compare January 21, 2016 12:43
// If pod won't stop after sending escape sequence, than test will wait
// till go test timeout.
escapeSequence = "\001\170"
processFail = false
Copy link
Contributor

Choose a reason for hiding this comment

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

s/processFail/shouldSucceed and explicit information in docs that this behaviors is different from original nspawn (code returned)

ps. exit code returned from lkvm is defined lkvm include/kvm/kvm.h as SIGVMEXIT (origniating from code that intercepts the escape sequence) - can be hard to handle "abort situation" in uniform way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@squall0gd squall0gd force-pushed the mstachow/rkt_functional_tests_kvm branch from 5f6df75 to 17353f4 Compare January 28, 2016 15:19
@@ -64,7 +64,9 @@ func (d *dirDesc) cleanup() {
return
}
if err := os.RemoveAll(d.dir); err != nil && !os.IsNotExist(err) {
panic(fmt.Sprintf("Failed to remove temporary %s directory %q: %s", d.desc, d.dir, err))
//TODO: Fix race condition
Copy link
Contributor Author

Choose a reason for hiding this comment

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

WIP: Sometimes Cleanup cannot remove workdir on kvm flavor. It appears when run-build is running.

@iaguis
Copy link
Member
iaguis commented Jan 29, 2016

This won't make it to 1.0. Let's move it.

@iaguis iaguis modified the milestones: v1.1.0, v1.0.0 Jan 29, 2016
@squall0gd squall0gd force-pushed the mstachow/rkt_functional_tests_kvm branch 7 times, most recently from 433d3b3 to 4728a0f Compare February 8, 2016 16:23
@squall0gd squall0gd force-pushed the mstachow/rkt_functional_tests_kvm branch 4 times, most recently from 1000567 to 7fbe349 Compare February 16, 2016 23:57
Subnet: "11.11.1.0/24",
Routes: []map[string]string{
{"dst": "0.0.0.0/0"},
func CommonTestNetCustomPtp(runCustomDual bool) testutils.Test {
Copy link
Contributor

Choose a reason for hiding this comment

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

NewNetCustomPtpTest

@s-urbaniak
Copy link
Contributor

@mstachowski just many nitpicks really, thanks for the effort! 👍 We'll need this very soon for testing the fly flavor.

/cc @steveej as per OOB let's introduce the Test/TestFunc/functional.mk changes in a separate PR so we can reuse it now.


cases = append(cases, CommonPortFwdCases{"172.16.28.1", "--net=default", true})
cases = append(cases, CommonPortFwdCases{"127.0.0.1", "--net=default", true})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Line 30 CommonPortFwdCases -> PortFwdTest
Lines 32, 33 CommonPortFwdCases -> PortFwdCase

@squall0gd squall0gd force-pushed the mstachow/rkt_functional_tests_kvm branch from 9c3872f to 6532dbc Compare April 28, 2016 08:54
8000 * Container launches http server on all its interfaces
* Host must be able to connect to container's http server on it's own interfaces
*/
func NewNetDefaultPortFwdConnectivityTest(cases PortFwdTest) testutils.Test {
Copy link
Contributor

Choose a reason for hiding this comment

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

func NewPortFwdTest(cases ...PortFwdCase) PortFwdTest {
    return PortFwdTest(cases)
}

@squall0gd squall0gd force-pushed the mstachow/rkt_functional_tests_kvm branch 2 times, most recently from 3ed00ff to 4654952 Compare April 28, 2016 10:34
@squall0gd squall0gd changed the title [RFC] kvm: Enable functional tests for kvm kvm: Enable functional tests for kvm Apr 28, 2016
@squall0gd squall0gd force-pushed the mstachow/rkt_functional_tests_kvm branch 2 times, most recently from d6c777a to 2323c2b Compare April 28, 2016 11:28
Prepare functional tests for support kvm.

Co-authored: @s-urbaniak <sergiusz.urbaniak@gmail.com>
@s-urbaniak
Copy link
Contributor

LGTM, if we see further potential for refactorings and reuse for other flavors, we'll address this in subsequent PRs.

@s-urbaniak
Copy link
Contributor

Edited the semaphore CI config to reflect the necessary changes documented here.

@s-urbaniak s-urbaniak merged commit ad63d8e into rkt:master Apr 28, 2016
alban added a commit to kinvolk/rkt that referenced this pull request Apr 28, 2016
The kvm flavor needs 'bc' to build and 'bc' is not installed by default
on Semaphore. This was introduced by rkt#2007
@squall0gd squall0gd deleted the mstachow/rkt_functional_tests_kvm branch April 29, 2016 13:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0