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

Issue 2336293002: Updating swarming api to check for chartjson results from a finished (Closed)

Created:
4 years, 3 months ago by eyaich1
Modified:
4 years, 3 months ago
CC:
chromium-reviews, Dirk Pranke, dtu, infra-reviews+build_chromium.org, kjellander-cc_chromium.org, M-A Ruel, Vadim Sh., martiniss, iannucci
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Updating swarming api to add chartjson output. This updates the api to check for chartjson results from a finished task in output directory with a file named chart-output.json. BUG=chromium:633253 Committed: https://chromium.googlesource.com/chromium/tools/build/+/99542aa3517f274e8f444dd39290102fd75a2206

Patch Set 1 #

Total comments: 12

Patch Set 2 : WIP iteration of recipe test #

Patch Set 3 : Adding correct recipe test for chartjson #

Total comments: 15

Patch Set 4 : Review comments and bug #

Patch Set 5 : fixing test #

Patch Set 6 : Removing debug logging #

Total comments: 4

Patch Set 7 : Responding to review comments #

Patch Set 8 : Updating json merge #

Total comments: 6

Patch Set 9 : Responding to review comments #

Patch Set 10 : Adding missing expectatoins #

Patch Set 11 : Relanding CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -43 lines) Patch
M scripts/slave/recipe_modules/swarming/api.py View 1 2 3 4 5 6 7 8 5 chunks +69 lines, -11 lines 0 comments Download
M scripts/slave/recipe_modules/test_utils/test_api.py View 1 2 3 4 5 6 7 8 3 chunks +30 lines, -9 lines 0 comments Download
M scripts/slave/recipes/chromium.py View 1 2 3 4 5 6 2 chunks +73 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_failed_isolated_script_test.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_isolated_script_test_linux_gpu.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_isolated_script_test_mac_gpu.json View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_isolated_script_test_win_gpu.json View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_isolated_script_test_win_non_gpu.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_passed_isolated_script_test.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_passed_isolated_script_test_with_swarming_failure.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_passed_with_bad_retcode_isolated_script_test.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_sharded_failed_isolated_script_test.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
A + scripts/slave/recipes/chromium.expected/dynamic_swarmed_sharded_isolated_chartjson_test_harness_failure.json View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -3 lines 0 comments Download
A + scripts/slave/recipes/chromium.expected/dynamic_swarmed_sharded_isolated_chartjson_test_missing_shard.json View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -3 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_sharded_isolated_script_test_harness_failure.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_sharded_isolated_script_test_missing_shard.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium.expected/dynamic_swarmed_sharded_passed_isolated_script_test.json View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M scripts/slave/recipes/chromium_trybot.expected/dynamic_isolated_script_test_with_args_on_trybot.json View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 35 (14 generated)
eyaich1
4 years, 3 months ago (2016-09-13 16:36:36 UTC) #2
Ken Russell (switch to Gerrit)
Looks like a better direction overall. A few comments. Also, in the Chromium code review ...
4 years, 3 months ago (2016-09-13 19:34:47 UTC) #7
eyaich1
https://codereview.chromium.org/2336293002/diff/1/scripts/slave/recipe_modules/swarming/api.py File scripts/slave/recipe_modules/swarming/api.py (right): https://codereview.chromium.org/2336293002/diff/1/scripts/slave/recipe_modules/swarming/api.py#newcode443 scripts/slave/recipe_modules/swarming/api.py:443: extra_args = self._check_and_set_output_flag( \ On 2016/09/13 19:34:47, Ken Russell ...
4 years, 3 months ago (2016-09-14 18:14:28 UTC) #9
eyaich1
https://codereview.chromium.org/2336293002/diff/1/scripts/slave/recipe_modules/swarming/api.py File scripts/slave/recipe_modules/swarming/api.py (right): https://codereview.chromium.org/2336293002/diff/1/scripts/slave/recipe_modules/swarming/api.py#newcode443 scripts/slave/recipe_modules/swarming/api.py:443: extra_args = self._check_and_set_output_flag( \ On 2016/09/13 19:34:47, Ken Russell ...
4 years, 3 months ago (2016-09-14 18:14:28 UTC) #10
eyaich1
Ok PTAL Finally understanding the recipe testing framework slightly better. I got stuck not realizing ...
4 years, 3 months ago (2016-09-15 18:35:11 UTC) #11
Ken Russell (switch to Gerrit)
Agree that it's difficult and not scalable to have to handle multiple kinds of sharded ...
4 years, 3 months ago (2016-09-17 03:33:47 UTC) #12
eyaich1
Thanks for pointing me to the expectations files and the errors you saw. I hadn't ...
4 years, 3 months ago (2016-09-19 17:56:16 UTC) #13
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2336293002/diff/40001/scripts/slave/recipe_modules/swarming/api.py File scripts/slave/recipe_modules/swarming/api.py (right): https://codereview.chromium.org/2336293002/diff/40001/scripts/slave/recipe_modules/swarming/api.py#newcode422 scripts/slave/recipe_modules/swarming/api.py:422: return extra_args.append(output_arg) On 2016/09/19 17:56:16, eyaich1 wrote: > On ...
4 years, 3 months ago (2016-09-19 23:28:43 UTC) #14
Ken Russell (switch to Gerrit)
LGTM I'm not an OWNER of most of these files. Suggest dpranke@ or phajdan.jr@ to ...
4 years, 3 months ago (2016-09-19 23:41:19 UTC) #16
eyaich1
https://codereview.chromium.org/2336293002/diff/100001/scripts/slave/recipe_modules/swarming/api.py File scripts/slave/recipe_modules/swarming/api.py (right): https://codereview.chromium.org/2336293002/diff/100001/scripts/slave/recipe_modules/swarming/api.py#newcode416 scripts/slave/recipe_modules/swarming/api.py:416: if bad_args: # pragma: no cover On 2016/09/19 23:41:19, ...
4 years, 3 months ago (2016-09-20 13:56:59 UTC) #17
Paweł Hajdan Jr.
LGTM w/nits https://codereview.chromium.org/2336293002/diff/140001/scripts/slave/recipe_modules/swarming/api.py File scripts/slave/recipe_modules/swarming/api.py (right): https://codereview.chromium.org/2336293002/diff/140001/scripts/slave/recipe_modules/swarming/api.py#newcode418 scripts/slave/recipe_modules/swarming/api.py:418: raise ValueError(error) nit: Why not just combine ...
4 years, 3 months ago (2016-09-20 17:35:48 UTC) #18
eyaich1
thanks! https://codereview.chromium.org/2336293002/diff/140001/scripts/slave/recipe_modules/swarming/api.py File scripts/slave/recipe_modules/swarming/api.py (right): https://codereview.chromium.org/2336293002/diff/140001/scripts/slave/recipe_modules/swarming/api.py#newcode418 scripts/slave/recipe_modules/swarming/api.py:418: raise ValueError(error) On 2016/09/20 17:35:47, Paweł Hajdan Jr. ...
4 years, 3 months ago (2016-09-20 17:43:20 UTC) #19
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/2336293002/160001
4 years, 3 months ago (2016-09-20 17:43:42 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: Build Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/3161879305549e10)
4 years, 3 months ago (2016-09-20 17:51:57 UTC) #24
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/2336293002/180001
4 years, 3 months ago (2016-09-20 17:55:53 UTC) #27
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://chromium.googlesource.com/chromium/tools/build/+/99542aa3517f274e8f444dd39290102fd75a2206
4 years, 3 months ago (2016-09-20 18:00:17 UTC) #29
jbudorick
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/2352183002/ by jbudorick@chromium.org. ...
4 years, 3 months ago (2016-09-20 19:55:15 UTC) #30
jbudorick
On 2016/09/20 19:55:15, jbudorick wrote: > A revert of this CL (patchset #10 id:180001) has ...
4 years, 3 months ago (2016-09-20 19:57:24 UTC) #31
Ken Russell (switch to Gerrit)
On 2016/09/20 19:57:24, jbudorick wrote: > On 2016/09/20 19:55:15, jbudorick wrote: > > A revert ...
4 years, 3 months ago (2016-09-21 00:29:58 UTC) #33
eyaich1
On 2016/09/21 00:29:58, Ken Russell wrote: > On 2016/09/20 19:57:24, jbudorick wrote: > > On ...
4 years, 3 months ago (2016-09-21 12:17:48 UTC) #34
seanmccullough1
4 years, 3 months ago (2016-09-22 21:06:15 UTC) #35
Message was sent while issue was closed.
On 2016/09/21 12:17:48, eyaich1 wrote:
> On 2016/09/21 00:29:58, Ken Russell wrote:
> > On 2016/09/20 19:57:24, jbudorick wrote:
> > > On 2016/09/20 19:55:15, jbudorick wrote:
> > > > A revert of this CL (patchset #10 id:180001) has been created in
> > > > https://codereview.chromium.org/2352183002/ by
> > mailto:jbudorick@chromium.org.
> > > > 
> > > > The reason for reverting is: I think this might have broken
> > > > telemetry_perf_unittests on linux_android_rel_ng (at least)..
> > > 
> > > e.g. from
> > >
> >
>
https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...
> > > 
> > > telemetry_perf_unittests succeeds:
> > > 
> > > Command: /usr/bin/python
> ../../testing/scripts/run_telemetry_as_googletest.py
> > > ../../tools/perf/run_tests -v --browser=android-chromium --device=android
> > > --isolated-script-test-output=/b/swarm_slave/w/ioN4U0EC/output.json
> > >
> >
>
--isolated-script-test-chartjson-output=/b/swarm_slave/w/ioN4U0EC/chartjson-output.json
> > >
> >
>
+-----------------------------------------------------------------------------+
> > > | End of shard 0  Pending: 534.1s  Duration: 469.7s  Bot: build90-b4 
Exit:
> 0
> > |
> > >
> >
>
+-----------------------------------------------------------------------------+
> > > 
> > > but then we fail to decode the json:
> > > 
> > > @@@STEP_LOG_LINE@no_results_exc@error decoding JSON results from shard
#0@@@
> > > 
> > > and then fail w/ TEST RESULTS WERE INVALID
> > 
> > I dug into some of these logs but found it quite difficult to figure out
what
> > was going wrong in the processing of the JSON results.
> > 
> > I'd suggest trying to run the recipe locally, though this can be somewhat
> > painful. See here for some hints:
> > 
> >
>
https://www.chromium.org/developers/testing/chromium-build-infrastructure/rep...
> >
>
https://chromium.googlesource.com/chromium/tools/build/+/master/scripts/tools...
> > 
> > It would be awesome if it were possible to filter the test steps that
> > run_recipe.py triggered so that you could do a build and run just one of the
> > test steps.
> 
> I am glad I am not the only one!  I was looking through last night and was
> scratching my
> head asthe json seems correct:
> 
> {
>   "0/chartjson-output.json": "", 
>   "0/output.json": "{\"failures\": [], \"valid\": true}", 
> }
> 
> I will do a little more digging this morning and then maybe try and repro
> locally like you suggested.
> 
> It appears like this was failing on both the android tryserver and the main
> chromium.linux waterfall at least.

Did this get re-submitted? This issue was re-opened recently:
https://bugs.chromium.org/p/chromium/issues/detail?id=648727

Powered by Google App Engine
This is Rietveld 408576698