Skip to content

fix(be): Clear base image tag digests after upgrade - #23833

Draft
clickboo wants to merge 1 commit into
boo-history-index-enrichmentfrom
boo-history-index-migration
Draft

clickboo wants to merge 1 commit into
boo-history-index-enrichmentfrom
boo-history-index-migration

Conversation

@clickboo

@clickboo clickboo commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Third branch in the max history index stack. Upgrade from sequence 227 to 228 clears manifest_digest inside each base_image_tags.serialized blob. That digest is not its own SQL column. An empty digest makes the next base-image scan treat the tag as unseen, refetch metadata, and store history.

History is a new field. Tags written before this stack have none, so upgraded rows stay empty until that refetch. The rewrite only clears the digest and leaves the fields those blobs already had, such as the tag name and layer digests.

base_images.manifestdigest is unchanged. The rollback test now uses a minimum sequence above the current sequence, so the new sequence number does not make the guard look bypassable.

Depends on the enrichment branch.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

  • The migration reads id and serialized, clears a non-empty ManifestDigest, and writes the blob back.
  • The sql integration test uses the real base_image_tags columns (id, baseimagerepositoryid, tag, serialized). It seeds a history entry in the blob to check that the rewrite clears only the digest.
  • quickstyle passed on this migration code. The sql integration test was not run here because local Postgres was not up. The previous operator e2e failed on UPDATE ... SET manifestdigest, which this rewrite removes.

@openshift-ci

openshift-ci Bot commented Nov 3, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@clickboo

clickboo commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit 2c86cb4. To use with deploy scripts:

export MAIN_IMAGE_TAG=5.1.x-464-g2c86cb48ed

@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.58%. Comparing base (063c029) to head (2c86cb4).

Files with missing lines Patch % Lines
...o_m_228_clear_base_image_digests/migration_impl.go 64.70% 6 Missing and 6 partials ⚠️
Additional details and impacted files
@@                       Coverage Diff                        @@
##           boo-history-index-enrichment   #23833      +/-   ##
================================================================
- Coverage                         52.58%   52.58%   -0.01%     
================================================================
  Files                              2836     2838       +2     
  Lines                            178002   178038      +36     
================================================================
+ Hits                              93606    93613       +7     
- Misses                            76183    76206      +23     
- Partials                           8213     8219       +6     
Flag Coverage Δ
go-unit-tests 52.58% <66.66%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@clickboo
clickboo force-pushed the boo-history-index-enrichment branch from 93d97ac to 920c1a5 Compare November 3, 2026 18:02
@clickboo
clickboo force-pushed the boo-history-index-migration branch 2 times, most recently from caf49d7 to 4f08859 Compare November 3, 2026 18:32
@clickboo
clickboo force-pushed the boo-history-index-enrichment branch from 920c1a5 to 4b8b68e Compare November 3, 2026 18:32
Co-authored-by: Cursor <cursoragent@cursor.com>
@clickboo
clickboo force-pushed the boo-history-index-migration branch from 4f08859 to 2c86cb4 Compare November 3, 2026 20:25
@clickboo
clickboo force-pushed the boo-history-index-enrichment branch from 4b8b68e to 063c029 Compare November 3, 2026 20:25

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant