New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 817154 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

[wifi_matfunc] network_WiFi_ChannelScanDwellTime test failing with " Failed to find SSID * in pcap." on hana and lars board

Project Member Reported by aashuto...@chromium.org, Feb 28 2018

Issue description

The board images seems to be missing pyshark module.

Find the sample failure below,
/27 16:15:35.221 DEBUG|              test:0420| after_iteration_hooks completed
02/27 16:15:35.222 WARNI|              test:0637| The test failed with the following exception
Traceback (most recent call last):
  File "/usr/local/autotest/client/common_lib/test.py", line 631, in _exec
    _call_test_function(self.execute, *p_args, **p_dargs)
  File "/usr/local/autotest/client/common_lib/test.py", line 837, in _call_test_function
    raise error.UnhandledTestFail(e)
UnhandledTestFail: Unhandled ImportError: No module named pyshark
Traceback (most recent call last):
  File "/usr/local/autotest/client/common_lib/test.py", line 831, in _call_test_function
    return func(*args, **dargs)
  File "/usr/local/autotest/client/common_lib/test.py", line 495, in execute
    dargs)
  File "/usr/local/autotest/client/common_lib/test.py", line 362, in _call_run_once_with_retry
    postprocess_profiled_run, args, dargs)
  File "/usr/local/autotest/client/common_lib/test.py", line 400, in _call_run_once
    self.run_once(*args, **dargs)
  File "/usr/local/autotest/server/site_tests/network_WiFi_ChannelScanDwellTime/network_WiFi_ChannelScanDwellTime.py", line 182, in run_once
    dwell_time = self._channel_dwell_time_test(True)
  File "/usr/local/autotest/server/site_tests/network_WiFi_ChannelScanDwellTime/network_WiFi_ChannelScanDwellTime.py", line 162, in _channel_dwell_time_test
    pcap_path, tcpdump_analyzer.WLAN_BEACON_ACCEPTOR, bad_fcs='include')
  File "/usr/local/autotest/client/common_lib/cros/network/tcpdump_analyzer.py", line 141, in get_frames
    capture_frames = _open_capture(local_pcap_path, display_filter)
  File "/usr/local/autotest/client/common_lib/cros/network/tcpdump_analyzer.py", line 114, in _open_capture
    import pyshark
ImportError: No module named pyshark

More results @ 
https://stainless.corp.google.com/search?view=matrix&row=model&col=build&first_date=2018-01-11&last_date=2018-02-27&suite=wifi_matfunc&test=%5Enetwork_WiFi_ChannelScanDwellTime%24&board=hana%7Clars&status=FAIL&status=ERROR&status=ABORT&exclude_cts=true&exclude_not_run=false&exclude_non_release=true&exclude_au=true&exclude_acts=true&exclude_retried=true&exclude_non_production=false
 
pyshark isn't required on the client, it's for the server. (i.e., autotest server, which should be running in the chroot.) And I believe the SDK should be pulling in pyshark...

What exactly report did you get the pyshark error from though? The first sample I picked up was this:

https://stainless.corp.google.com/search?exclude_retried=true&first_date=2018-01-11&master_builder_name=&builder_name_number=&shard=&exclude_acts=true&builder_name=&master_builder_name_number=&owner=&retry=&exclude_cts=true&exclude_non_production=false&hostname=&board=hana%7Clars&test=%5Enetwork_WiFi_ChannelScanDwellTime%24&exclude_not_run=false&build=%5ER66%5C-10440%5C.0%5C.0%24&status=FAIL&status=ERROR&status=ABORT&reason=&waterfall=&suite=wifi_matfunc&last_date=2018-02-27&exclude_non_release=true&exclude_au=true&model=%5Ehana%24&view=list

https://pantheon.corp.google.com/storage/browser/chromeos-autotest-results/179532083-chromeos-test


and I see a different failure:

02/26 17:43:57.469 WARNI|              test:0637| The test failed with the following exception
Traceback (most recent call last):
  File "/usr/local/autotest/client/common_lib/test.py", line 631, in _exec
    _call_test_function(self.execute, *p_args, **p_dargs)
  File "/usr/local/autotest/client/common_lib/test.py", line 831, in _call_test_function
    return func(*args, **dargs)
  File "/usr/local/autotest/client/common_lib/test.py", line 495, in execute
    dargs)
  File "/usr/local/autotest/client/common_lib/test.py", line 362, in _call_run_once_with_retry
    postprocess_profiled_run, args, dargs)
  File "/usr/local/autotest/client/common_lib/test.py", line 400, in _call_run_once
    self.run_once(*args, **dargs)
  File "/usr/local/autotest/server/site_tests/network_WiFi_ChannelScanDwellTime/network_WiFi_ChannelScanDwellTime.py", line 182, in run_once
    dwell_time = self._channel_dwell_time_test(True)
  File "/usr/local/autotest/server/site_tests/network_WiFi_ChannelScanDwellTime/network_WiFi_ChannelScanDwellTime.py", line 169, in _channel_dwell_time_test
    return self._get_dwell_time(result_list, result_beacon_frames)
  File "/usr/local/autotest/server/site_tests/network_WiFi_ChannelScanDwellTime/network_WiFi_ChannelScanDwellTime.py", line 94, in _get_dwell_time
    sent_beacon_frames, ssid_index[0])
  File "/usr/local/autotest/server/site_tests/network_WiFi_ChannelScanDwellTime/network_WiFi_ChannelScanDwellTime.py", line 67, in _get_beacon_timestamp
    raise error.TestFail('Failed to find SSID %d in pcap.' % ssid_num)
TestFail: Failed to find SSID 203 in pcap.
Summary: [wifi_matfunc] network_WiFi_ChannelScanDwellTime test failing with " Failed to find SSID * in pcap." on hana and lars boards (was: [wifi_matfunc] network_WiFi_ChannelScanDwellTime test failing on hana and lars boards)
I saw this on couple of the runs, I triggered. One of the job links below.
https://ubercautotest.corp.google.com/afe/#tab_id=view_job&object_id=179868942

The failure mentioned in comment#1 is occuring often. 
For the problem in your run from #2...I'm not sure what's up. Might follow up with infra folks, who can see what's up with chromeos-server-tester1.mtv.corp.google.com, which apparently didn't have the full SDK?

For the (now) $subject failures...I'm not quite sure yet. It's possible the captures are just incomplete. We'd have to look into the failures more closely. Maybe even re-run known patterns and see how much actually gets captured.
Summary: [wifi_matfunc] network_WiFi_ChannelScanDwellTime test failing with " Failed to find SSID * in pcap." on hana and lars board (was: [wifi_matfunc] network_WiFi_ChannelScanDwellTime test failing with " Failed to find SSID * in pcap." on hana and lars boards)
Issue is also seen on kevin. 
Labels: wifi-test-failures
Labels: Enterprise-Triaged

Sign in to add a comment