Skip to content

fix: register spec.application index for ReleasePlan in snapshot controller#1555

Closed
ci-operator wants to merge 1 commit into
konflux-ci:mainfrom
ci-operator:fix-releaseplan-application-index
Closed

fix: register spec.application index for ReleasePlan in snapshot controller#1555
ci-operator wants to merge 1 commit into
konflux-ci:mainfrom
ci-operator:fix-releaseplan-application-index

Conversation

@ci-operator

Copy link
Copy Markdown
Contributor

Summary

The snapshot controller's setupCache was missing the spec.application
field index for ReleasePlan, so any tenant still on the Application
(non-ComponentGroup) model couldn't progress past Snapshot creation:

Index with name field:spec.application does not exist

The integrationpipeline controller already registers the matching
*Application variant; this brings the snapshot controller in line.

Introduced by ec4a274 (#1409).

Test plan

  • make test passes
  • Manual on CRC: build PR for an Application-model tenant, signed
    with chains.tekton.dev/signed=true, observed Snapshot -> Release ->
    release PipelineRun all reach Succeeded; Index ... does not exist
    no longer appears in the controller log.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a cache setup for the legacy application model in the snapshot controller. The reviewer suggests also including the IntegrationTestScenario cache for the old application model to ensure full compatibility for legacy tenants and consistency with other controllers.

Comment thread internal/controller/snapshot/snapshot_controller.go
@ci-operator ci-operator force-pushed the fix-releaseplan-application-index branch from 6b6a212 to fd47d05 Compare May 7, 2026 16:19
…roller

ec4a274 (konflux-ci#1409) split SetupReleasePlanCache into a componentGroup-indexed
default and a *Application variant for the legacy path. The
integrationpipeline controller's setupCache calls both; the snapshot
controller's calls only the new one, so reconciles on Application-model
tenants fail with:

  Index with name field:spec.application does not exist

Add the missing call. (IntegrationTestScenario indices are already
registered by integrationpipeline; re-registering would conflict.)

Assisted-by: Claude Code
Signed-off-by: Josiah England <jengland@redhat.com>
@ci-operator ci-operator force-pushed the fix-releaseplan-application-index branch from fd47d05 to 109414d Compare May 7, 2026 16:27
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.67%. Comparing base (ec001af) to head (109414d).
⚠️ Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
...nternal/controller/snapshot/snapshot_controller.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1555      +/-   ##
==========================================
- Coverage   65.83%   65.67%   -0.16%     
==========================================
  Files          63       63              
  Lines        8409     8411       +2     
==========================================
- Hits         5536     5524      -12     
- Misses       2235     2249      +14     
  Partials      638      638              
Flag Coverage Δ
unit-tests 65.67% <0.00%> (-0.16%) ⬇️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dirgim

dirgim commented May 18, 2026

Copy link
Copy Markdown
Member

/ok-to-test

@ci-operator

Copy link
Copy Markdown
Contributor Author

Folded into #1543

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants