Merge lp:~psivaa/ubuntu-test-cases/skip-reminders into lp:ubuntu-test-cases/touch

Proposed by Para Siva
Status: Rejected
Rejected by: Evan
Proposed branch: lp:~psivaa/ubuntu-test-cases/skip-reminders
Merge into: lp:ubuntu-test-cases/touch
Diff against target: 16 lines (+3/-3)
1 file modified
jenkins/testconfig.py (+3/-3)
To merge this branch: bzr merge lp:~psivaa/ubuntu-test-cases/skip-reminders
Reviewer Review Type Date Requested Status
Evan (community) Disapprove
Review via email: mp+238402@code.launchpad.net

Commit message

Skip reminders until lp: 1349975 is fixed.

Description of the change

Have been asked to skip reminders until lp: 1349975 is fixed.

To post a comment you must log in.
Revision history for this message
Evan (ev) wrote :

I don't think this is the correct approach. We shouldn't be hacking around buggy tests in the infrastructure. The problem should be fixed at the source, in the tests themselves.

In this instance, the developers could implement a per-test timeout within the reminders tests. In the future, they could use this feature from Autopilot itself:

https://code.launchpad.net/~thomir/autopilot/test-timeouts/+merge/233457

I'm going to reach out to the test owners on this.

review: Disapprove
Revision history for this message
Evan (ev) wrote :

As an example, you could decorate the test with a timeout function:

http://stackoverflow.com/questions/2281850/timeout-function-if-it-takes-too-long-to-finish

dpm is going to ask elopio and balloons to follow up here.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I will add a check to raise an error before going into the loop for when this condition occurs. The result will be that the test will fail immediately if a proper identity was not obtained. No timeout should be needed.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :
Revision history for this message
Evan (ev) wrote :

Thanks for this. I think adding a timeout would make this safer still, but don't let me be prescriptive :)

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

Evan, there are some things that we should fix on the tests themselfs, like when we cause an infinite loop. But when we call an external library and it hangs, the only way to prevent an infinite test would be to wrap that call in a timer that will kill the test if expired. If we wrap all the calls to external methods, the code will be an unreadable mess. For those cases, what we need is a per test timeout. Thomi started working on that here: https://code.launchpad.net/~thomir/autopilot/test-timeouts/+merge/233457

Revision history for this message
Evan (ev) wrote :

Hi Leo,

I think you missed my opening comment where I pointed at that MP.

So, using an alarm signal (as I suggested above, not a basic timer) to wrap setUp of your base test class would not make the code an unreadable mess. It's one function and one decorator.

Unmerged revisions

321. By Para Siva

Disable reminders until lp: 1349975 is fixed

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'jenkins/testconfig.py'
2--- jenkins/testconfig.py 2014-09-19 16:10:39 +0000
3+++ jenkins/testconfig.py 2014-10-15 09:17:28 +0000
4@@ -57,9 +57,9 @@
5 APTest('dialer-app-autopilot', pkgs=['dialer-app-autopilot']),
6 APTest('messaging-app-autopilot', pkgs=['messaging-app-autopilot']),
7 APTest('address-book-app-autopilot', pkgs=['address-book-app-autopilot']),
8- APTest('reminders-autopilot',
9- pkgs=['python3-dbusmock', 'python3-requests-oauthlib',
10- 'account-plugin-evernote-sandbox']),
11+ # APTest('reminders-autopilot',
12+ # pkgs=['python3-dbusmock', 'python3-requests-oauthlib',
13+ # 'account-plugin-evernote-sandbox']),
14 APTest('music-app-autopilot'),
15 APTest('dropping-letters-app-autopilot'),
16 APTest('sudoku-app-autopilot'),

Subscribers

People subscribed via source and target branches