Cascade partition_id to Ci::Resource
What does this MR do and why?
Related to #383073 (closed)
It updates Ci::Resource
with the partition_id
value when a Ci::Processable
record is assigned to it.
Ci::Resource
s are not directly assigned to a build when they are created and they don't stay assigned to the same build forever. Users specify resource_group
in the job's YAML which is processed by Chain::EnsureResourceGroups
step in the pipeline creation to create a Ci::ResourceGroup
record and alongside it a Ci::Resource
. The Ci::Resource
is passed from build to build from the state machine transitions:
assigning it to a processable when the build is scheduled and removing it on completion.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.