suspend/wifi_resume_time and wifi_resume_time_auto: Not being used correctly?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Won't Fix
|
High
|
Unassigned |
Bug Description
So I'm trying to track down what happens with this test. We noticed a discrepancy between checkbox and plainbox, running on the same machine with the same Ubuntu version.
The reason this was brought to our attention is that plainbox reports it as failed:
https:/
Your wifi resumed in 54.57 seconds after the last suspend FAIL: the network failed to reconnect within the allotted time
However, when we looked at checkbox's submission in more detail, it's also not doing what we expect (however, this result is returned as PASS, which is why I hadn't noticed this before):
https:/
Unable to obtain wifi connection time after a S3. Please be sure that the system has been suspended
I think the problem is we're using these tests wrong. To sort of validate what *should* happen, I first created a wifi connection with the create_connection script:
sudo /usr/share/
Connection some-open-ssid registered
Active connection state: activating
Active connection path: /org/freedeskto
state: activated
Connection activated
Connection some-open-ssid activated.
OK, now *without* deleting the connection, I sleep the system:
sudo rtcwake -m no -s 120
sudo pm-suspend
Once the system wakes up, I run the test script:
$ /usr/share/
Your wifi resumed in 4.26 seconds after the last suspend
PASS: the network connected within the allotted time
Great, so this works. THen I delete the connection file from /etc/Networkman
$ /usr/share/
ubuntu@
(huh, it didn't return anything??)
The reason I think we're using this wrong is this. I looked at all the create-connection jobs and *all* of them dutifully delete the connection file when they complete. So the sequence of events in reality is:
1- wifi connection established. We delete it afterwards.
2- suspend.
3- wake up, we do *not* try to reestablish wifi connection because we deleted it.
4- Check for wifi events in the log file. This will either lead to no events or to an event that happened during step 1, a while ago. Test fails.
I wonder if we should somehow create the connection, then without deleting it doing a suspend/resume cycle, and maybe then deleting it, so we ensure the log file contains the required information.
Related branches
tags: | added: job |
Changed in checkbox: | |
status: | Confirmed → Triaged |
affects: | checkbox → plainbox-provider-checkbox |
Yeah, this dawned on me as well :/ We either need to integrate the 'create/ suspend/ delete' process in the suspend test(s), or have two new jobs which do this.