Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Issue 2891403002: Workaround python time.strptime flake in Android tests (Closed)

Created:
3 years, 7 months ago by pasko
Modified:
3 years, 7 months ago
Reviewers:
jbudorick
CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Workaround python time.strptime flake in Android tests In general time.strptime is not threadsafe in python: [1]. This causes flaky errors on various bots that test Android because catapult [2] talks to devices from different threads (for multiple reasons). One observation in the python bug ([1]) says that only importing parts of strptime is racy, so importing it early enough before any threading is started would remove this kind of flake. This workaround is used in other parts of chromium and catapult itself, so we can probably be more preventive by doing it in a central place. For now let's just reduce the flake. [1] time.strptime not thread safe https://bugs.python.org/issue7980 [2] Catapult is the home for several performance tools that span from gathering, displaying and analyzing performance data. https://github.com/catapult-project/catapult BUG=724524 Review-Url: https://codereview.chromium.org/2891403002 Cr-Commit-Position: refs/heads/master@{#473545} Committed: https://chromium.googlesource.com/chromium/src/+/bfb763ee9499a5f88993910c2401ac5550e9ac38

Patch Set 1 #

Total comments: 2

Patch Set 2 : revert test_runner.pydeps to where the master is #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M build/android/test_runner.py View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
pasko
3 years, 7 months ago (2017-05-19 16:59:31 UTC) #4
jbudorick
lgtm w/ pydeps changes https://codereview.chromium.org/2891403002/diff/1/build/android/test_runner.pydeps File build/android/test_runner.pydeps (left): https://codereview.chromium.org/2891403002/diff/1/build/android/test_runner.pydeps#oldcode117 build/android/test_runner.pydeps:117: ../../third_party/jinja2/__init__.py This is wrong & ...
3 years, 7 months ago (2017-05-19 18:04:50 UTC) #6
pasko
thank you for review, John landing.. https://codereview.chromium.org/2891403002/diff/1/build/android/test_runner.pydeps File build/android/test_runner.pydeps (left): https://codereview.chromium.org/2891403002/diff/1/build/android/test_runner.pydeps#oldcode117 build/android/test_runner.pydeps:117: ../../third_party/jinja2/__init__.py On 2017/05/19 ...
3 years, 7 months ago (2017-05-22 09:23:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2891403002/20001
3 years, 7 months ago (2017-05-22 09:23:58 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 10:46:11 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/bfb763ee9499a5f88993910c2401...

Powered by Google App Engine
This is Rietveld 408576698