Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix test isolation issues. #414
Conversation
snappy-m-o
commented
Mar 30, 2016
|
Can one of the admins verify this patch? |
snappy-m-o
commented
Mar 30, 2016
|
Can one of the admins verify this patch? |
snappy-m-o
commented
Mar 30, 2016
|
Can one of the admins verify this patch? |
|
OK to test |
|
thanks for this @vilagithub. |
|
retest this please |
|
retest this please |
kyrofa
reviewed
Mar 31, 2016
| + self.addCleanup(ph.stop) | ||
| + pt = patch('snapcraft.common.target_machine', new=common.host_machine) | ||
| + pt.start() | ||
| + self.addCleanup(pt.stop) |
kyrofa
Mar 31, 2016
Member
Should we actually protect these with get/set functions in common and then take care of this issue similar to how we've done the other stuff in common?
sergiusens
Mar 31, 2016
Collaborator
My searching on common patterns for these singletons (antipatterns really) showed that this is the most accepted way of doing it.
Ideally I want it to be just one class though and not many disparate attributes
sergiusens
reviewed
Mar 31, 2016
| - common.host_machine = platform.machine() | ||
| - common.target_machine = common.host_machine | ||
| + # tests will override host_machine, protect it first | ||
| + ph = patch('snapcraft.common.host_machine', new=common.host_machine) |
sergiusens
Mar 31, 2016
Collaborator
thanks to @elopio ph patcher everywhere, mind changing it to keep consistency and for readability?
|
From http://162.213.35.179:8080/job/github-snapcraft-autopkgtest-cloud/334/console DEBUG (shell:1082) Quota exceeded for instances: Requested 1, but already used 10 of 10 instances (HTTP 413) (Request-ID: req-d76e009d-a077-401b-aa0f-fd38f085dbe4) Someone needs to fix that and re-run the tests ? |
|
retest this please |
|
retest this please |
|
@vilagithub mind rebasing please? |
|
rebased |
|
From http://162.213.35.179:8080/job/github-snapcraft-autopkgtest-cloud/344/console adt-run [14:36:57]: ERROR: testbed failure: unexpected eof from the testbed Sounds like a spurious infra failure. |
|
retest this please |
sergiusens
merged commit 85d1394
into
snapcore:master
Apr 1, 2016
|
\o/ Thanks ;) |
vilagithub commentedMar 30, 2016
LP: 1563965
Two root causes: