New issue
Advanced search Search tips

Issue 692217 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Feb 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Feature

Blocking:
issue 692245



Sign in to add a comment

kitchen: add flags for logdog prefix and annotation stream

Project Member Reported by no...@chromium.org, Feb 14 2017

Issue description

in kitchen add flags:
- "logdog-prefix". It may contain "${swarming_run_id}" substring that must be replaced with the value of $SWARMING_TASK_ID env var
- "logdog-annotation-stream" which is a name of the stream to send annotation datagrams to

in swarming_task_template.json pass them as a constants:
  -logdog-prefix swarm/chromium-swarm.appspot.com/${swarming_run_id}
  -logdog-annotation-stream annotations

 

Comment 1 by no...@chromium.org, Feb 14 2017

Blocking: 692245

Comment 2 by no...@chromium.org, Feb 14 2017

Labels: -Type-Bug Type-Feature

Comment 3 by d...@chromium.org, Feb 18 2017

We should also add "${swarming_host}".

This would make the LogDog URL:

logdog://luci-logdog.appspot.com/${project}/swarm/${swarming_host}/${swarming_run_id}/+/annotations

WDYT?

Comment 4 by no...@chromium.org, Feb 18 2017

SG. Currently swarming_task_template.json uses $swarming_host instead of ${swarming_host}. Both work. Consider updating the template to use ${swarming_host}

Comment 5 by d...@chromium.org, Feb 18 2017

Actually going to back off from #3. I think we should prescribe as much as possible upstream, and since SwarmBucket already knows its host, I think it should use the command-line:

-logdog-annotation-url logdog://luci-logdog.appspot.com/$project/swarm/$swarming_host/${swarming_run_id}/+/annotations

This will have SwarmBucket fill in everything except for "${swarming_run_id}", which is great since it knows all of that in advance. Kitchen will fill that in the "${swarming_run_id}" b/c only it knows that value.

Comment 6 by no...@chromium.org, Feb 18 2017

Yeah, one URL flag should be enough 
Project Member

Comment 7 by bugdroid1@chromium.org, Feb 18 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/external/github.com/luci/luci-go.git/+/fc6bd8a8856796312b4a2e3c043a74dac66ac194

commit fc6bd8a8856796312b4a2e3c043a74dac66ac194
Author: dnj <dnj@chromium.org>
Date: Sat Feb 18 19:31:11 2017

milo: Add SwarmBucket templating.

Add SwarmBucket template resolution package. Employ this in Milo when
resolving the "log_location" URL. This will enable SwarmBucket templates
that include a Swarming run ID in their name to resolve to their actual
annotation log stream.

BUG= chromium:692217 
TEST=unit

Review-Url: https://codereview.chromium.org/2701033003

[delete] https://crrev.com/c0b973a0a2e68852c035a98b7b0a4bad5d283f6a/.gitignore
[add] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/common/data/text/stringtemplate/template.go
[add] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/common/data/text/stringtemplate/template_test.go
[modify] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/milo/appengine/frontend/expectations/bootstrap-swarming.TestableBuild-build-running-logdog.html
[modify] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-running-logdog.html
[modify] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/milo/appengine/swarming/build.go
[modify] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/milo/appengine/swarming/buildinfo.go
[modify] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/milo/appengine/swarming/expectations/build-running-logdog.json
[modify] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/milo/appengine/swarming/testdata/build-running-logdog.swarm
[add] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/swarming/tasktemplate/template.go
[add] https://crrev.com/fc6bd8a8856796312b4a2e3c043a74dac66ac194/swarming/tasktemplate/template_test.go

Comment 8 by no...@chromium.org, Feb 19 2017

Status: Started (was: Assigned)

Comment 9 by no...@chromium.org, Feb 21 2017

Status: Verified (was: Started)

Sign in to add a comment