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

Issue 2154953002: Add infraenv, setup creds and tee for Kitchen. (Closed)

Created:
4 years, 5 months ago by dnj
Modified:
4 years, 5 months ago
Reviewers:
dnj (Google), nodir
CC:
chromium-reviews, infra-reviews+infra_chromium.org
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Add infraenv, setup creds and tee for Kitchen. Add "infra/libs/infraenv", a package that exposes Infra-specific envrionment functionality. Currently it exports the LogDog service account credential path. Leverage "infraenv" in Kitchen to load the LogDog service account credential for non-GCE instance systems; GCE systems will use their native metadata token to authenticate to LogDog. Enable STDOUT/STDERR teeing in Kitchen/LogDog integration so we can run it in a hybrid mode, compatible both with Milo/Swarming and Milo/LogDog. BUG=chromium:628321 TEST=None Committed: https://chromium.googlesource.com/infra/infra/+/51da592b407fc30601445f532855205309403910

Patch Set 1 #

Patch Set 2 : Fix year, add package doc to infraenv. #

Patch Set 3 : Fix SWARMING_SERVER parsing (is a full URL, need just host). #

Patch Set 4 : Handle both host string and host URL. #

Total comments: 6

Patch Set 5 : Add coverage file, restrict platforms to actual Infra platforms. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -14 lines) Patch
A go/src/infra/libs/infraenv/creds.go View 1 1 chunk +46 lines, -0 lines 0 comments Download
A + go/src/infra/libs/infraenv/doc.go View 1 1 chunk +3 lines, -2 lines 0 comments Download
A + go/src/infra/libs/infraenv/infraenv.infra_testing View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A go/src/infra/libs/infraenv/paths_posix.go View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A go/src/infra/libs/infraenv/paths_windows.go View 1 1 chunk +14 lines, -0 lines 0 comments Download
M go/src/infra/tools/kitchen/cook_logdog.go View 1 2 3 10 chunks +65 lines, -9 lines 0 comments Download
M go/src/infra/tools/kitchen/cook_logdog_test.go View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
dnj (Google)
PTAL
4 years, 5 months ago (2016-07-16 00:00:07 UTC) #2
nodir
lgtm https://codereview.chromium.org/2154953002/diff/60001/go/src/infra/libs/infraenv/doc.go File go/src/infra/libs/infraenv/doc.go (right): https://codereview.chromium.org/2154953002/diff/60001/go/src/infra/libs/infraenv/doc.go#newcode6 go/src/infra/libs/infraenv/doc.go:6: // Infrastructure-specific bot parameters. if this is about ...
4 years, 5 months ago (2016-07-16 00:38:55 UTC) #3
dnj (Google)
https://codereview.chromium.org/2154953002/diff/60001/go/src/infra/libs/infraenv/doc.go File go/src/infra/libs/infraenv/doc.go (right): https://codereview.chromium.org/2154953002/diff/60001/go/src/infra/libs/infraenv/doc.go#newcode6 go/src/infra/libs/infraenv/doc.go:6: // Infrastructure-specific bot parameters. On 2016/07/16 00:38:55, nodir wrote: ...
4 years, 5 months ago (2016-07-16 00:49:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2154953002/60001
4 years, 5 months ago (2016-07-16 00:49:48 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: Infra Mac Tester on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Infra%20Mac%20Tester/builds/3110)
4 years, 5 months ago (2016-07-16 00:57:18 UTC) #8
nodir
https://codereview.chromium.org/2154953002/diff/60001/go/src/infra/libs/infraenv/paths_posix.go File go/src/infra/libs/infraenv/paths_posix.go (right): https://codereview.chromium.org/2154953002/diff/60001/go/src/infra/libs/infraenv/paths_posix.go#newcode5 go/src/infra/libs/infraenv/paths_posix.go:5: // +build darwin dragonfly freebsd linux netbsd openbsd On ...
4 years, 5 months ago (2016-07-16 00:59:32 UTC) #9
dnj (Google)
https://codereview.chromium.org/2154953002/diff/60001/go/src/infra/libs/infraenv/paths_posix.go File go/src/infra/libs/infraenv/paths_posix.go (right): https://codereview.chromium.org/2154953002/diff/60001/go/src/infra/libs/infraenv/paths_posix.go#newcode5 go/src/infra/libs/infraenv/paths_posix.go:5: // +build darwin dragonfly freebsd linux netbsd openbsd On ...
4 years, 5 months ago (2016-07-16 01:06:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2154953002/80001
4 years, 5 months ago (2016-07-16 01:06:27 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/infra/infra/+/51da592b407fc30601445f532855205309403910
4 years, 5 months ago (2016-07-18 10:03:37 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 10:03:38 UTC) #16
Message was sent while issue was closed.
CQ bit was unchecked.

Powered by Google App Engine
This is Rietveld 408576698