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

Issue 499103002: Make test_results deployable again. (Closed)

Created:
6 years, 4 months ago by ojan
Modified:
6 years, 3 months ago
CC:
chromium-reviews, pdr.
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Project:
infra
Visibility:
Public.

Description

Make test_results deployable again. This uses a slightly better version of what chromium_cq_status does to work around the import problems with appengine apps and test.py. test.py wants absolute module paths and appengine want's app-root-relative paths. Add the app-root to sys.path where needed and then pop it off. This is not awesome because python modules don't unload. So, once you load "model" from chromium_cq_status, it will keep pointing to the wrong thing for test_results. "Fix" this by calling reload on the modules that have conflicting names betwen the two apps. Again, this is not the right long-term solution, but it gets test_results deployable while still having it work with test.py. Also, rename jsonresults_unittest to jsonresults_test so test.py picks it up. BUG=401856, 405672 Committed: https://chromium.googlesource.com/infra/infra/+/1bce782ccc4165adef0f14a1dda566f6784a7014

Patch Set 1 #

Patch Set 2 : include z file #

Patch Set 3 : Fix __exit__ arguments #

Total comments: 2

Patch Set 4 : fix goofs #

Patch Set 5 : merge to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -1292 lines) Patch
M appengine/chromium_cq_status/tests/post_test.py View 1 chunk +6 lines, -6 lines 0 comments Download
M appengine/chromium_cq_status/tests/query_test.py View 1 chunk +5 lines, -6 lines 0 comments Download
M appengine/chromium_cq_status/tests/utils_test.py View 1 chunk +4 lines, -6 lines 0 comments Download
A appengine/path_mangler_hack.py View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A + appengine/test_results/__init__.py View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M appengine/test_results/handlers/buildershandler.py View 1 chunk +1 line, -1 line 0 comments Download
M appengine/test_results/handlers/testfilehandler.py View 1 chunk +3 lines, -3 lines 0 comments Download
M appengine/test_results/model/jsonresults.py View 1 chunk +1 line, -1 line 0 comments Download
M appengine/test_results/model/testfile.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M appengine/test_results/test/buildershandler_test.py View 1 chunk +2 lines, -1 line 0 comments Download
A + appengine/test_results/test/jsonresults_test.py View 1 chunk +19 lines, -16 lines 0 comments Download
D appengine/test_results/test/jsonresults_unittest.py View 1 chunk +0 lines, -1244 lines 0 comments Download
M appengine/test_results/test/testfile_test.py View 1 chunk +5 lines, -2 lines 0 comments Download
M appengine/test_results/test/testfilehandler_test.py View 1 chunk +10 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
ojan
I know this isn't awesome, but it's the best my python-fu could come up with ...
6 years, 4 months ago (2014-08-24 06:07:31 UTC) #1
eseidel
Did you mean to add a file for PathMangler or is it already there?
6 years, 4 months ago (2014-08-24 06:10:58 UTC) #2
ojan
Whoops. It's there now.
6 years, 4 months ago (2014-08-24 06:22:58 UTC) #3
eseidel
Seems fine to me. We can always change it later. rslgtm https://codereview.chromium.org/499103002/diff/40001/appengine/test_results/model/testfile.py File appengine/test_results/model/testfile.py (right): ...
6 years, 4 months ago (2014-08-25 20:23:37 UTC) #4
ojan
https://codereview.chromium.org/499103002/diff/40001/appengine/test_results/model/testfile.py File appengine/test_results/model/testfile.py (right): https://codereview.chromium.org/499103002/diff/40001/appengine/test_results/model/testfile.py#newcode35 appengine/test_results/model/testfile.py:35: reload(model) On 2014/08/25 20:23:36, eseidel wrote: > Is this ...
6 years, 4 months ago (2014-08-25 20:24:25 UTC) #5
ojan
Will need an lgtm from an infra OWNER as well. agable, iannucci, stip?
6 years, 4 months ago (2014-08-25 22:03:11 UTC) #6
agable
On 2014/08/25 22:03:11, ojan-only-code-yellow-reviews wrote: > Will need an lgtm from an infra OWNER as ...
6 years, 4 months ago (2014-08-26 01:24:16 UTC) #7
ojan
On 2014/08/26 at 01:24:16, agable wrote: > On 2014/08/25 22:03:11, ojan-only-code-yellow-reviews wrote: > > Will ...
6 years, 4 months ago (2014-08-26 01:59:55 UTC) #8
ojan
The CQ bit was checked by ojan@chromium.org
6 years, 4 months ago (2014-08-26 02:00:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ojan@chromium.org/499103002/60001
6 years, 4 months ago (2014-08-26 02:00:19 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: infra_tester on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-26 02:01:39 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 02:03:01 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: infra_tester on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_tester/builds/64)
6 years, 4 months ago (2014-08-26 02:03:02 UTC) #13
eseidel
Sorry. infra_tester presubmit is busted atm. agable is looking at the error as we speak.
6 years, 4 months ago (2014-08-26 02:05:04 UTC) #14
ojan
The CQ bit was checked by ojan@chromium.org
6 years, 4 months ago (2014-08-26 03:18:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ojan@chromium.org/499103002/60001
6 years, 4 months ago (2014-08-26 03:19:29 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: infra_tester on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-26 03:21:52 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 03:26:00 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: infra_tester on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_tester/builds/72)
6 years, 4 months ago (2014-08-26 03:26:01 UTC) #19
ojan
The CQ bit was checked by ojan@chromium.org
6 years, 4 months ago (2014-08-26 06:01:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ojan@chromium.org/499103002/60001
6 years, 4 months ago (2014-08-26 06:02:11 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: infra_tester on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-26 06:04:51 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 06:07:01 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: infra_tester on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_tester/builds/75)
6 years, 4 months ago (2014-08-26 06:07:03 UTC) #24
eseidel
The CQ bit was checked by eseidel@chromium.org
6 years, 3 months ago (2014-08-27 17:50:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ojan@chromium.org/499103002/60001
6 years, 3 months ago (2014-08-27 17:50:42 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: infra_tester on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-27 17:51:47 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 17:52:57 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: infra_tester on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_tester/builds/96)
6 years, 3 months ago (2014-08-27 17:52:59 UTC) #29
ojan
The CQ bit was checked by ojan@chromium.org
6 years, 3 months ago (2014-08-28 03:40:05 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ojan@chromium.org/499103002/80001
6 years, 3 months ago (2014-08-28 03:40:45 UTC) #31
commit-bot: I haz the power
6 years, 3 months ago (2014-08-28 03:43:10 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 1bce782ccc4165adef0f14a1dda566f6784a7014

Powered by Google App Engine
This is Rietveld 408576698