Log job identifiers in an attempt to find the queue name bug.
We have a bug where log file paths sometimes have the wrong queue name in them. I am hoping that adding some more debugging here will help me find where this bug is occuring. Change-Id: Id75f2e824a1a6c18695ec541752813d9708fd7cf
This commit is contained in:
parent
89e4c6dd0d
commit
9abb2a4d3b
@ -23,6 +23,9 @@ import swiftclient
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
log = logging.getLogger('lib.utils')
|
||||||
|
|
||||||
|
|
||||||
class GitRepository(object):
|
class GitRepository(object):
|
||||||
|
|
||||||
""" Manage a git repository for our uses """
|
""" Manage a git repository for our uses """
|
||||||
@ -239,9 +242,13 @@ def scp_push_file(job_log_dir, file_path, local_config):
|
|||||||
def determine_job_identifier(zuul_arguments, job, unique):
|
def determine_job_identifier(zuul_arguments, job, unique):
|
||||||
if 'build:' in job:
|
if 'build:' in job:
|
||||||
job = job.split('build:')[1]
|
job = job.split('build:')[1]
|
||||||
return os.path.join(zuul_arguments['ZUUL_CHANGE'][:2],
|
|
||||||
|
path = os.path.join(zuul_arguments['ZUUL_CHANGE'][:2],
|
||||||
zuul_arguments['ZUUL_CHANGE'],
|
zuul_arguments['ZUUL_CHANGE'],
|
||||||
zuul_arguments['ZUUL_PATCHSET'],
|
zuul_arguments['ZUUL_PATCHSET'],
|
||||||
zuul_arguments['ZUUL_PIPELINE'],
|
zuul_arguments['ZUUL_PIPELINE'],
|
||||||
job,
|
job,
|
||||||
unique[:7])
|
unique[:7])
|
||||||
|
log.info('Converted args: %s, job: %s and unique: %s to %s'
|
||||||
|
% (zuul_arguments, job, unique, path))
|
||||||
|
return path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user