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:
James E. Blair
2023-12-05 15:44:51 -08:00
parent 071c48c5ae
commit cb3c4883f2
8 changed files with 151 additions and 60 deletions

View File

@@ -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