Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Investigate/add debug info for KeyError: attribution_code error/test failure #187

Closed
stephendonner opened this issue Aug 7, 2018 · 2 comments
Labels
ARCHIVED CLOSED at time of archiving

Comments

@stephendonner
Copy link
Contributor

From time to time, we see the following KeyError: attribution_code failure/error:

From https://qa-preprod-master.fxtest.jenkins.stage.mozaws.net/job/stub-attribution/job/master/1084/console

15:34:41 
15:34:41 =================================== FAILURES ===================================
15:34:41 _ test_campaign_flow_param_values[google-paidsearch-Fake%20campaign-test term] _
15:34:41 [gw0] linux2 -- Python 2.7.13 /usr/local/bin/python
15:34:41 tests/test_campaign_flow.py:61: in test_campaign_flow_param_values
15:34:41     new_dict = breakout_utm_param_values(derived_url)
15:34:41 tests/test_campaign_flow.py:23: in breakout_utm_param_values
15:34:41     attribution_code = key_value_dict['attribution_code'][0].encode('utf-8')
15:34:41 E   KeyError: 'attribution_code'
15:34:41 ------------------------------- pytest-selenium --------------------------------
15:34:41 URL: https://www.allizom.org/en-US/firefox/download/thanks/
15:34:41 Sauce Labs Job: https://saucelabs.com/jobs/b1bedb528e5543a5b4e65e3976013899
15:34:41  generated xml file: /home/jenkins/workspace/stub-attribution_master-HSZMGT5RUDURFLDGHEIDP6CDEDC6SV7YGHL2LWY6PRFZ5CSAMPWA@2/results/junit.xml 
15:34:41  generated html file: /home/jenkins/workspace/stub-attribution_master-HSZMGT5RUDURFLDGHEIDP6CDEDC6SV7YGHL2LWY6PRFZ5CSAMPWA@2/results/index.html 
15:34:41 =========================== short test summary info============================
15:34:41 FAIL tests/test_campaign_flow.py::test_campaign_flow_param_values[google-paidsearch-Fake%20campaign-test term]
15:34:41 ===================== 1 failed, 2 passed in 17.19 seconds ======================
@stephendonner
Copy link
Contributor Author

Even with --showlocals added in c2024a8#diff-58231b16fdee45a03a4ee3cf94a9f2c3R46, I can't seem to find the local-variable output in the Jenkins console.

@davehunt
Copy link
Member

It could be that --tb=short is preventing the local variables from being shown?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ARCHIVED CLOSED at time of archiving
Projects
None yet
Development

No branches or pull requests

3 participants