New issue
Advanced search Search tips

Issue 855173 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Jul 23
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: ----

Blocked on:
issue 858850



Sign in to add a comment

Make run_suite_skylab pass job_keyvals

Project Member Reported by xixuan@chromium.org, Jun 21 2018

Issue description

It's hard to relate parent tasks to its child tasks through TKO since TKO seems doesn't have an effective parent task id.

It makes me harder to double-check whether a suite succeeds in real. Is there already a bug for it? 
 

Comment 1 by xixuan@chromium.org, Jun 21 2018

Labels: Hotlist-Skylab

Comment 2 by jkop@chromium.org, Jun 22 2018

Owner: ayatane@chromium.org
Status: Assigned (was: Untriaged)
Are parent task id and parent job id distinct?

Job ID was requested in 297652 and added for 305313. 
job id comes from job tag  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/master/tko/utils.py

parent job id comes from keyvals

These reference the AFE job id, but we don't have AFE job ids in Skylab.

Swarming task ids are strings not ints, so we can't put them into the same column  We could convert them from hex strings to ints, not sure if that's a good idea though.
Oh, a MySQL int can't fit a task id:

3dfab6d2009c1110 = 4466082993560883472

int = 32 bit = 4294967296

Owner: xixuan@chromium.org
The problem here is that run_skylab_suite doesn't drop any job keyvals.
This is why tbe tko_jobs table also doesn't have suite, build etc.
skylab_run_suite needs to do the equivalent of: http://shortn/_UuNY28FYQW

Comment 7 by xixuan@chromium.org, Jun 28 2018

Summary: Make run_suite_skylab pass job_keyvals (was: TKO doesn't have effective parent task id column for searching?)
Blockedon: 858850

Comment 9 by xixuan@chromium.org, Jun 29 2018

Issue 858898 has been merged into this issue.
Project Member

Comment 11 by bugdroid1@chromium.org, Jul 20

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/7a450c58b067b366e78c7690aaa91e578b106be2

commit 7a450c58b067b366e78c7690aaa91e578b106be2
Author: Xixuan Wu <xixuan@chromium.org>
Date: Fri Jul 20 23:27:50 2018

autotest: Pass job_keyvals to swarming_worker.

BUG= chromium:855173 
TEST=Ran "bin/run_suite_skylab --pool=cq --board=nyan_blaze
--suite_name=sanity --build=nyan_blaze-release/R69-10763.0.0 --priority
80 --timeout_mins 30 --test_retry --max_retries 5".
Verified in TKO.

Change-Id: I95fcee378223a06c96bfb3819eb98aad1abf4f3d
Reviewed-on: https://chromium-review.googlesource.com/1145645
Reviewed-by: Allen Li <ayatane@chromium.org>
Commit-Queue: Xixuan Wu <xixuan@chromium.org>
Tested-by: Xixuan Wu <xixuan@chromium.org>

[modify] https://crrev.com/7a450c58b067b366e78c7690aaa91e578b106be2/venv/skylab_suite/suite_runner.py

Status: Verified (was: Assigned)

Sign in to add a comment