Merge lp:~elopio/snappy/remove_ssh_copy into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Leo Arias
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 637
Merged at revision: 639
Proposed branch: lp:~elopio/snappy/remove_ssh_copy
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 57 lines (+0/-19)
3 files modified
_integration-tests/README.md (+0/-3)
_integration-tests/testutils/autopkgtest/autopkgtest.go (+0/-3)
_integration-tests/testutils/autopkgtest/autopkgtest_test.go (+0/-13)
To merge this branch: bzr merge lp:~elopio/snappy/remove_ssh_copy
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve
Snappy Tarmac continuous-integration Pending
Federico Gimenez continuous-integration Pending
Review via email: mp+268947@code.launchpad.net

Commit message

Removed the ssh-copy-id from the integration tests execution. It's not really necessary, and it's causing time outs.

Description of the change

Some of the integration tests in jenkins are failing in this step. It may be because the machine is not yet ready and this does not wait enough.
This command is not really needed, so we can remove to see if the errors still appear.

To post a comment you must log in.
lp:~elopio/snappy/remove_ssh_copy updated
637. By Leo Arias

Removed the remaining references to ssh-copy-id.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

I just worry this moves the potential time out further (although the counter would start at another point in time and it would be a different timer).

We might need to bring this back if we revisit 'developer-mode'

review: Approve
Revision history for this message
Leo Arias (elopio) wrote :

Thanks Sergio!
I think we don't need to worry about the later timeout because adt-run takes care of the retries.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '_integration-tests/README.md'
--- _integration-tests/README.md 2015-07-22 16:48:57 +0000
+++ _integration-tests/README.md 2015-08-25 17:00:39 +0000
@@ -58,9 +58,6 @@
58 go run _integration-tests/main.go --ip {testbed-ip} --port {testbed-port} \58 go run _integration-tests/main.go --ip {testbed-ip} --port {testbed-port} \
59 --arch {testbed-arch}59 --arch {testbed-arch}
6060
61The test runner will use `ssh-copy-id` to send your identity file to the
62testbed, so it will ask for the password of the ubuntu user in the test bed.
63
64When running in a remote machine, the test runner assumes the test bed is in61When running in a remote machine, the test runner assumes the test bed is in
65the latest rolling edge version, and it will skip all the tests that62the latest rolling edge version, and it will skip all the tests that
66require a different version. See the following section for instructions for63require a different version. See the following section for instructions for
6764
=== modified file '_integration-tests/testutils/autopkgtest/autopkgtest.go'
--- _integration-tests/testutils/autopkgtest/autopkgtest.go 2015-08-10 10:24:25 +0000
+++ _integration-tests/testutils/autopkgtest/autopkgtest.go 2015-08-25 17:00:39 +0000
@@ -22,7 +22,6 @@
22import (22import (
23 "fmt"23 "fmt"
24 "path/filepath"24 "path/filepath"
25 "strconv"
26 "strings"25 "strings"
2726
28 "launchpad.net/snappy/_integration-tests/testutils"27 "launchpad.net/snappy/_integration-tests/testutils"
@@ -68,8 +67,6 @@
6867
69// AdtRunRemote runs the autopkgtests using a remote machine as the testbed.68// AdtRunRemote runs the autopkgtests using a remote machine as the testbed.
70func (a *Autopkgtest) AdtRunRemote(testbedIP string, testbedPort int) error {69func (a *Autopkgtest) AdtRunRemote(testbedIP string, testbedPort int) error {
71 execCommand("ssh-copy-id", "-p", strconv.Itoa(testbedPort),
72 "ubuntu@"+testbedIP)
73 return a.adtRun(remoteTestbedSSHOptions(testbedIP, testbedPort))70 return a.adtRun(remoteTestbedSSHOptions(testbedIP, testbedPort))
74}71}
7572
7673
=== modified file '_integration-tests/testutils/autopkgtest/autopkgtest_test.go'
--- _integration-tests/testutils/autopkgtest/autopkgtest_test.go 2015-08-10 10:24:25 +0000
+++ _integration-tests/testutils/autopkgtest/autopkgtest_test.go 2015-08-25 17:00:39 +0000
@@ -165,19 +165,6 @@
165 check.Commentf("Expected call %s not executed 1 time", expectedMkDirCall))165 check.Commentf("Expected call %s not executed 1 time", expectedMkDirCall))
166}166}
167167
168func (s *AutopkgtestSuite) TestAdtRunRemoteCallsSSHCopyId(c *check.C) {
169 s.subject.AdtRunRemote(testbedIP, testbedPort)
170
171 expectedExecCommadCall := fmt.Sprintf("ssh-copy-id -p %s ubuntu@%s", strconv.Itoa(testbedPort), testbedIP)
172
173 outputDir := outputDir(testArtifactsPath)
174 adtrunRemoteCmd(controlFile, sourceCodePath, outputDir, testbedIP, testbedPort)
175
176 c.Assert(s.execCalls[expectedExecCommadCall],
177 check.Equals, 1,
178 check.Commentf("Expected call %s not executed 1 time", expectedExecCommadCall))
179}
180
181func (s *AutopkgtestSuite) TestAdtRunRemoteCallsExecCommand(c *check.C) {168func (s *AutopkgtestSuite) TestAdtRunRemoteCallsExecCommand(c *check.C) {
182 s.subject.AdtRunRemote(testbedIP, testbedPort)169 s.subject.AdtRunRemote(testbedIP, testbedPort)
183170

Subscribers

People subscribed via source and target branches