Skip to content

fix(ci): flavor-safe yq in-place edits in disconnected mirror.sh [main] - #5978

Open
nickboldt wants to merge 1 commit into
mainfrom
fix/yq-inplace-mirror
Open

nickboldt wants to merge 1 commit into
mainfrom
fix/yq-inplace-mirror

Conversation

@nickboldt

Copy link
Copy Markdown
Member

Summary

  • The disconnected-pipeline IDMS patching in .ci/pipelines/lib/disconnected/mirror.sh used mikefarah-only syntax (yq eval -i), which hard-fails under the python jq-wrapper yq, while its read guard (yq eval '.spec.imageDigestMirrors[].source') silently fails there too (no eval subcommand) — which would add duplicate mirror entries before the write fails.
  • Route writes through a local disconnected::yq_inplace helper (bare -i on mikefarah, --yaml-roundtrip --in-place on python yq), matching the flavor-bridging helper already used midstream in build/ci/sync-midstream.sh.
  • Drop eval from the read guards so bare yq '<expr>' works on both flavors.
  • Verified against mikefarah v4.54.3 and python yq 3.4.3: IDMS entries written and read-grepped identically.

Related Jira: RHIDP-9953

Assisted-By: paseo (pi + GLM 5.3 (EnMaaS), thinking: high)

The IDMS patching used mikefarah-only syntax (yq eval -i), which
hard-fails under the python jq-wrapper yq, and its read guard
silently fails there too (no eval subcommand), which would add
duplicate mirror entries. Route writes through a local
disconnected::yq_inplace helper (bare -i on mikefarah,
--yaml-roundtrip --in-place on python yq) and drop eval from the
read guards so bare yq '<expr>' works on both flavors.
Verified against mikefarah v4.54.3 and python yq 3.4.3.

Related Jira: RHIDP-9953

Assisted-By: paseo (pi + GLM 5.3 (EnMaaS), thinking: high)
Signed-off-by: Nick Boldt <nboldt@redhat.com>
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification

This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

Use /test ? to list jobs and /pipeline help for commands.

@openshift-ci
openshift-ci Bot requested review from jrichter1 and psrna December 4, 2026 01:38
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.41%. Comparing base (dcfe9cb) to head (b145cde).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5978      +/-   ##
==========================================
- Coverage   82.04%   78.41%   -3.64%     
==========================================
  Files          71       64       -7     
  Lines         908      755     -153     
  Branches      139      122      -17     
==========================================
- Hits          745      592     -153     
  Misses        162      162              
  Partials        1        1              
Flag Coverage Δ *Carryforward flag
rhdh 75.57% <ø> (-4.20%) ⬇️
rhdh-e2e-frontend 69.33% <ø> (ø) Carriedforward from dcfe9cb

*This pull request uses carry forward flags. Click here to find out more.

Components Coverage Δ
Backend plugins ∅ <ø> (∅)
Backend app 88.03% <ø> (ø)
Frontend app 66.46% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dcfe9cb...b145cde. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Image was built and published successfully. It is available at:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant