New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 727789 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 0
Type: Bug

Blocking:
issue 725132



Sign in to add a comment

When assigning a slave to a tryjob, interpret tryjob.dimensions as a list of colon separated pairs of strings, instead of a dict.

Project Member Reported by robert...@chromium.org, May 30 2017

Issue description

TypeError: list indices must be integers, not str
at AssignWarmCacheHost (/base/data/home/apps/s~findit-for-me/waterfall-backend:29a9b988a7.401442530312179027/waterfall/swarming_util.py:706)
at _TriggerTryJob (/base/data/home/apps/s~findit-for-me/waterfall-backend:29a9b988a7.401442530312179027/waterfall/schedule_try_job_pipeline.py:64)

 
Setting pri-0 as linux tryjobs are not being triggered until this is fixed and deployed.

Comment 2 Deleted

Project Member

Comment 3 by bugdroid1@chromium.org, May 30 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/infra/+/1e5d8794321fbf27bb12875ecfe5c6154fba2ef8

commit 1e5d8794321fbf27bb12875ecfe5c6154fba2ef8
Author: Roberto Carrillo <robertocn@google.com>
Date: Tue May 30 19:00:29 2017

[Findit] Treat dimensions as a list of colon-separated string pairs.

In AssignWarmCacheHost we were mistakenly treating a tryjob's dimensions
as a dictionary, and this is causing exceptions when triggering jobs on
bots that have already run jobs.

R=stgao,chanli,lijeffrey
BUG= 727789 

Change-Id: I3944167aa799a1410e9b585c1a0c265ad72a6c3a
Reviewed-on: https://chromium-review.googlesource.com/517971
Commit-Queue: Roberto Carrillo <robertocn@chromium.org>
Reviewed-by: Jeffrey Li <lijeffrey@chromium.org>
Reviewed-by: Chan Li <chanli@chromium.org>

[modify] https://crrev.com/1e5d8794321fbf27bb12875ecfe5c6154fba2ef8/appengine/findit/waterfall/swarming_util.py
[modify] https://crrev.com/1e5d8794321fbf27bb12875ecfe5c6154fba2ef8/appengine/findit/waterfall/test/swarming_util_test.py

Status: Fixed (was: Started)
Blocking: 725132

Sign in to add a comment