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

Issue 139343011: Add swarming_run_shim.py to run swarming tasks as annotated tasks. (Closed)

Created:
6 years, 11 months ago by M-A Ruel
Modified:
6 years, 10 months ago
CC:
chromium-reviews, stip+watch_chromium.org, cmp-cc_chromium.org, ilevy-cc_chromium.org, kjellander+cc_chromium.org, csharp
Visibility:
Public.

Description

Add swarming_run_shim.py to run swarming tasks as annotated tasks. This removes relience on the server to preconfigure the steps to be run. Now the slave decide what test to run. get_swarm_results_shim.py and trigger_swarm_shim.py are not removed yet to not break currently running masters. They will be removed in a later CL once masters have been restarted. Improve priority selection by using the master url as a signal. Downgrade priority of unknown masters severely, so that the downgrade in priority is user visible, so the maintainer can be a signal about misconfiguration quickly. Remove tons of now dead code. Add unit test. Drop support for pre-2013-11-27 checkouts. R=vadimsh@chromium.org,stip@chromium.org BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=247232

Patch Set 1 #

Patch Set 2 : tested #

Total comments: 31

Patch Set 3 : Address comments #

Total comments: 9

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+745 lines, -179 lines) Patch
M scripts/master/factory/swarm_commands.py View 5 chunks +22 lines, -120 lines 0 comments Download
M scripts/master/factory/swarm_factory.py View 1 2 4 chunks +8 lines, -35 lines 0 comments Download
A scripts/slave/swarming/swarming_run_shim.py View 1 2 3 1 chunk +329 lines, -0 lines 0 comments Download
M scripts/slave/swarming/swarming_utils.py View 2 chunks +56 lines, -0 lines 0 comments Download
M scripts/slave/swarming/trigger_swarm_shim.py View 7 chunks +9 lines, -24 lines 0 comments Download
A scripts/slave/unittests/swarming_run_shim_test.py View 1 1 chunk +321 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
M-A Ruel
I took a few screenshots if you want to take a look. It's quite awesome. ...
6 years, 11 months ago (2014-01-24 03:19:00 UTC) #1
M-A Ruel
Ping. I would have liked to enable this this weekend.
6 years, 11 months ago (2014-01-24 19:58:00 UTC) #2
Vadim Sh.
General idea and implementation looks good. My main concern is that script always returns 0 ...
6 years, 11 months ago (2014-01-24 20:22:11 UTC) #3
M-A Ruel
I took a few screenshots, I'll mail it to you. https://codereview.chromium.org/139343011/diff/50001/scripts/master/factory/swarm_factory.py File scripts/master/factory/swarm_factory.py (right): https://codereview.chromium.org/139343011/diff/50001/scripts/master/factory/swarm_factory.py#newcode53 ...
6 years, 11 months ago (2014-01-24 20:41:41 UTC) #4
ghost stip (do not use)
annotator comments: there are two things: one is to emit step_warnings() within the main step. ...
6 years, 11 months ago (2014-01-24 22:47:25 UTC) #5
M-A Ruel
On 2014/01/24 22:47:25, stip wrote: > there are two things: one is to emit step_warnings() ...
6 years, 11 months ago (2014-01-25 02:12:19 UTC) #6
ghost stip (do not use)
On 2014/01/25 02:12:19, M-A Ruel wrote: > On 2014/01/24 22:47:25, stip wrote: > > there ...
6 years, 11 months ago (2014-01-25 02:24:22 UTC) #7
M-A Ruel
On 2014/01/25 02:24:22, stip wrote: > > scripts/slave/swarming/swarming_run_shim.py:197: stream.step_cursor(step_name) > > On 2014/01/24 22:47:26, stip ...
6 years, 11 months ago (2014-01-25 02:43:50 UTC) #8
Vadim Sh.
lgtm
6 years, 11 months ago (2014-01-25 02:59:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/139343011/220001
6 years, 11 months ago (2014-01-27 13:42:26 UTC) #10
commit-bot: I haz the power
Change committed as 247232
6 years, 11 months ago (2014-01-27 13:43:29 UTC) #11
M-A Ruel
On 2014/01/27 13:43:29, I haz the power (commit-bot) wrote: > Change committed as 247232 Humm, ...
6 years, 11 months ago (2014-01-27 14:20:16 UTC) #12
Nico
This test fails for me: ====================================================================== FAIL: test_default (__main__.SwarmingRunTest) ---------------------------------------------------------------------- Traceback (most recent call last): ...
6 years, 10 months ago (2014-01-29 17:04:17 UTC) #13
Nico
6 years, 10 months ago (2014-01-29 17:30:59 UTC) #14
…whoa, there's even a comment that says

        # This test only passes on linux.

Please don't check in tests that don't pass :-( Can you fix this soon
please?


On Wed, Jan 29, 2014 at 9:04 AM, <thakis@chromium.org> wrote:

> This test fails for me:
>
> ======================================================================
> FAIL: test_default (__main__.SwarmingRunTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "scripts/slave/unittests/swarming_run_shim_test.py", line 167, in
> test_default
>     self.assertEqual(expected, sys.stdout.getvalue())
> AssertionError: 'Selected tests:\n base_test\nSelected OS: Linux\n\n@
> @@SEED_STEP
> base_test@@@\n\n@@@STEP_CURSOR
> base_test@@@\n\n@@@STEP_STARTED@@@\n\n@@@STEP_TEXT@Linux@@@\n\n@
> @@STEP_TEXT@1234@@@\na\n\n@@@STEP_CLOSED@@@\n\n'
> != u'Selected tests:\n base_test\nSelected OS: Mac\n\n@@@SEED_STEP
> base_test@@@\n\n@@@STEP_CURSOR
> base_test@@@\n\n@@@STEP_STARTED@@@\n\n@@@STEP_TEXT@Mac@@@\n\n@
> @@STEP_TEXT@1234@@@\na\n\n@@@STEP_CLOSED@@@\n\n'
>
>
> (Note expected "Linux" got "Mac".)
>
> https://codereview.chromium.org/139343011/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698