New issue
Advanced search Search tips

Issue 732804 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature

Blocked on: View detail
issue 732802
issue 813412

Blocking:
issue 732808
issue 746459



Sign in to add a comment

Swarming: Attach task's processes log to the task as metadata

Project Member Reported by maruel@google.com, Jun 13 2017

Issue description

Goal:

Stops having to ssh to a bot to get the logs for a task. Instead, the process specific logs (task_runner.py, run_isolated.py) for a task are stored along the task inside TaskOutput<id=foo.log>.


AIs:

Bot:
- bot_main: after reaping a task, creates a task specific log directory "logs/<task_id>/" and instruct task_runner (and incidentally run_isolated) to use it instead of "logs/".
- bot_main: upon task_runner termination, bot_main "amends" a task with the task logs. 

Server:
- Update task/ endpoint group to retrieve named resources. This is also needed for stdout/stderr disambiguation as per issue 732802.


Alternative:

- Store on the isolate server. It has the advantage of automatic cleanup but enforce close coupling with isolate server, which I prefer not to.


Adapted from https://github.com/luci/luci-py/issues/291
 

Comment 1 by maruel@google.com, Jun 13 2017

Blockedon: 732802

Comment 2 by maruel@google.com, Jun 13 2017

Blocking: 732808

Comment 3 by estaab@chromium.org, Jun 20 2017

Status: Available (was: Untriaged)
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 12 2017

Labels: Hotlist-Google
Blocking: 746459

Comment 6 by mar...@chromium.org, Feb 26 2018

Blockedon: 813412

Comment 7 by mar...@chromium.org, Today (21 hours ago)

Summary: Swarming: Attach task's processes log to the task as metadata (was: Attach task's processes log to the task as metadata)

Comment 9 by mar...@chromium.org, Today (21 hours ago)

Cc: -aludwin@google.com

Sign in to add a comment