From 012622d3c9466f5dc2bd0ca47c53498fbb167e3e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 18 Jul 2017 15:00:18 +0200 Subject: syz-ci: fix dashboard settings in manager config --- syz-ci/manager.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/syz-ci/manager.go b/syz-ci/manager.go index 6d0ea871d..0d6a49ca8 100644 --- a/syz-ci/manager.go +++ b/syz-ci/manager.go @@ -310,18 +310,19 @@ func (mgr *Manager) writeConfig(info *BuildInfo) (string, error) { return "", err } current := mgr.currentDir - tag := info.Tag - if mgr.dash == nil { + if mgr.dash != nil { + mgrcfg.Tag = info.Tag + + mgrcfg.Dashboard_Client = mgr.dash.Client + mgrcfg.Dashboard_Addr = mgr.dash.Addr + mgrcfg.Dashboard_Key = mgr.dash.Key + } else { // Dashboard identifies builds by unique tags that are combined // from kernel tag, compiler tag and config tag. // This combined tag is meaningless without dashboard, // so we use kenrel tag (commit tag) because it communicates // at least some useful information. - tag = info.KernelCommit - - mgrcfg.Dashboard_Client = mgr.dash.Client - mgrcfg.Dashboard_Addr = mgr.dash.Addr - mgrcfg.Dashboard_Key = mgr.dash.Key + mgrcfg.Tag = info.KernelCommit } mgrcfg.Name = mgr.cfg.Name + "-" + mgr.name if mgr.cfg.Hub_Addr != "" { @@ -335,7 +336,6 @@ func (mgr *Manager) writeConfig(info *BuildInfo) (string, error) { // update the source, or even delete and re-clone. If this causes // problems, we need to make a copy of sources after build. mgrcfg.Kernel_Src = mgr.kernelDir - mgrcfg.Tag = tag mgrcfg.Syzkaller = filepath.FromSlash("syzkaller/current") mgrcfg.Image = filepath.Join(current, "image") mgrcfg.Sshkey = filepath.Join(current, "key") -- cgit mrf-deployment