Draft: fix failing pipeline
Summary
The pipeline was failing because a new association :supply_chain_attestation was added to the Ci::Build model but was not included in the test's list of known accessors. The test Ci::CloneJobService#execute validates that all model attributes and associations are explicitly categorized, causing it to fail when encountering an unknown accessor.
Changes
-
File:
spec/services/ci/clone_job_service_spec.rb - Added
:supply_chain_attestationto thereject_accessorsarray (line 79) - This categorizes the new association as an attribute that should NOT be copied when cloning a job
- Rationale: Supply chain attestations are generated artifacts specific to each job execution and should be regenerated fresh for cloned/retried jobs, consistent with how other job artifacts are handled
Verification
-
✅ Ruby syntax validation passed:ruby -c spec/services/ci/clone_job_service_spec.rbreturned "Syntax OK" -
✅ The change is minimal and focused on the specific issue -
✅ No CI/CD configuration files were modified (as expected per the context) -
✅ The association exists in the model:app/models/ci/build.rbline 134 -
✅ The failing test should now pass because all current accessors ofCi::Buildare accounted for in the known accessors list
Fixes failing pipeline on !211092
Session 1383894
Edited by Darby Frey