Index job map by uuid
This is part of the circular dependency refactor. It changes the job map (a dictionary shared by the BuildSet and JobGraph classes (BuildSet.jobs is JobGraph._job_map -- this is because JobGraph is really just a class to encapsulate some logic for BuildSet)) to be indexed by FrozenJob.uuid instead of job name. This helps prepare for supporting multiple jobs with the same name in a buildset. Change-Id: Ie17dcf2dd0d086bd18bb3471592e32dcbb8b8bda
This commit is contained in:
@@ -1936,7 +1936,7 @@ class PipelineManager(metaclass=ABCMeta):
|
||||
# job) is within the current buildset (if it has been
|
||||
# deduplicated).
|
||||
try:
|
||||
this_uuid = item.current_build_set.job_graph.getUuidForJob(
|
||||
this_uuid = item.current_build_set.job_graph.getUuidForJobName(
|
||||
job.name)
|
||||
except ValueError:
|
||||
# This doesn't currently raise a ValueError, it just
|
||||
|
||||
Reference in New Issue
Block a user