Skip to content

TRT-2741: Expand variant keys and decouple daily summaries from variant_combination_id#3722

Open
mstaeble wants to merge 2 commits into
openshift:mainfrom
mstaeble:worktree-expand-variant-keys
Open

TRT-2741: Expand variant keys and decouple daily summaries from variant_combination_id#3722
mstaeble wants to merge 2 commits into
openshift:mainfrom
mstaeble:worktree-expand-variant-keys

Conversation

@mstaeble

@mstaeble mstaeble commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds 8 variant keys to importantVariants (Procedure, Aggregation, NetworkAccess, Scheduler, Suite, ContainerRuntime, CGroupMode, LayeredProduct). Release-family keys remain excluded as they are redundant with prow_jobs.release and the Upgrade variant.
  • Removes variant_combination_id from test_daily_summaries. The matview pre_agg CTE now joins prow_jobs to resolve variant combinations at refresh time, decoupling daily summaries from variant changes.
  • Adds migration 000004 to drop the column. The migration is metadata-only and completes in sub-second time regardless of table size.
  • Adds a migration manifest (pkg/db/migrations/MANIFEST) and make verify-migrations target to detect conflicting migration numbers across PRs.

Benchmarking against staging-2 showed <1% matview refresh overhead from the added join (prow_jobs fits in a 1.1MB in-memory hash table). Aggregate totals are identical; per-variant grouping improves because ~49% of stored variant_combination_id values were stale.

Rollback note

The down migration truncates test_daily_summaries before re-adding the column. After rollback, a daily summary refresh + matview refresh cycle is needed before results are available.

Test plan

  • go vet ./pkg/... passes
  • make lint passes (0 issues)
  • make test passes (Go, JS, Python)
  • make verify-migrations passes; verified it catches gaps, duplicates, and unlisted files
  • Benchmarked old vs new pre_agg CTE against staging-2 (92.4s vs 93.5s)
  • Verified aggregate totals match (22,849 test/suite pairs, 0 mismatches)
  • Validated new daily summary INSERT via EXPLAIN (correct plan, partition pruning works)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added automated verification for database migrations during the standard check flow.
    • Expanded the set of stored job variant details used for job identification.
  • Bug Fixes
    • Improved migration safety by validating manifest order, missing files, and SQL coverage before continuing.
    • Updated daily summary aggregation to avoid stale or inconsistent variant-combination data.
    • Refreshed the schema/trigger update behavior so existing daily summary data is preserved more reliably during backfills.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: automatic mode

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 30, 2026
@openshift-ci-robot

openshift-ci-robot commented Jun 30, 2026

Copy link
Copy Markdown

@mstaeble: This pull request references TRT-2741 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

  • Adds 8 variant keys to importantVariants (Procedure, Aggregation, NetworkAccess, Scheduler, Suite, ContainerRuntime, CGroupMode, LayeredProduct). Release-family keys remain excluded as they are redundant with prow_jobs.release and the Upgrade variant.
  • Removes variant_combination_id from test_daily_summaries. The matview pre_agg CTE now joins prow_jobs to resolve variant combinations at refresh time, decoupling daily summaries from variant changes.
  • Adds migration 000004 to drop the column. The migration is metadata-only and completes in sub-second time regardless of table size.

Benchmarking against staging-2 showed <1% matview refresh overhead from the added join (prow_jobs fits in a 1.1MB in-memory hash table). Aggregate totals are identical; per-variant grouping improves because ~49% of stored variant_combination_id values were stale.

Rollback note

The down migration truncates test_daily_summaries before re-adding the column. After rollback, a daily summary refresh + matview refresh cycle is needed before results are available.

Test plan

  • go vet ./pkg/... passes
  • make lint passes (0 issues)
  • make test passes (Go, JS, Python)
  • Benchmarked old vs new pre_agg CTE against staging-2 (92.4s vs 93.5s)
  • Verified aggregate totals match (22,849 test/suite pairs, 0 mismatches)
  • Validated new daily summary INSERT via EXPLAIN (correct plan, partition pruning works)

@coderabbitai ignore

🤖 Generated with Claude Code

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@openshift-ci-robot: This appears to be an automated notice from the jira-lifecycle-plugin about a Jira target version mismatch on TRT-2741, rather than a request for CodeRabbit. Additionally, the PR description includes @coderabbitai ignore, so CodeRabbit will not be performing a review on this pull request. No action is needed on my end here — the Jira target version issue should be resolved by the PR author or Jira issue owner.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 30, 2026
@openshift-ci

openshift-ci Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

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

@openshift-ci

openshift-ci Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mstaeble
Once this PR has been reviewed and has the lgtm label, please assign sosiouxme for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mstaeble mstaeble force-pushed the worktree-expand-variant-keys branch 6 times, most recently from 1f14b2a to c00b661 Compare June 30, 2026 23:14
mstaeble added a commit to mstaeble/sippy that referenced this pull request Jun 30, 2026
…nt_combination_id

Cherry-pick from PR openshift#3722 with conflict resolution and fixes:
- Add 8 variant keys to importantVariants (Aggregation, NetworkAccess,
  Scheduler, Suite, ContainerRuntime, CGroupMode, LayeredProduct, plus
  SpotCheckComponent/SpotCheckCapability excluded as unused in views)
- Remove variant_combination_id from test_daily_summaries; matview
  pre_agg CTEs now join prow_jobs to resolve it at refresh time
- Fix cr_test_status_matview to join prow_jobs for variant_combination_id
- Remove duplicate Procedure entry from importantVariants
- Add migration 000004 to drop the column

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mstaeble

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@mstaeble, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 56 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 3432be66-7b0e-438a-97ff-c364e372b394

📥 Commits

Reviewing files that changed from the base of the PR and between 2357247 and fa1cbef.

📒 Files selected for processing (10)
  • Makefile
  • hack/verify-migrations.sh
  • pkg/db/dailysummary/dailysummary.go
  • pkg/db/db.go
  • pkg/db/migrations/000004_drop_daily_summary_variant_combination.down.sql
  • pkg/db/migrations/000004_drop_daily_summary_variant_combination.up.sql
  • pkg/db/migrations/MANIFEST
  • pkg/db/models/prow.go
  • pkg/db/views.go
  • pkg/testidentification/ocp_variants.go

Walkthrough

Adds migration verification tooling, removes variant_combination_id from daily summary storage and aggregation paths with matching migration changes, and expands the importantVariants filter list.

Changes

Migration Verification Tooling

Layer / File(s) Summary
Migration verification tooling
pkg/db/migrations/MANIFEST, hack/verify-migrations.sh, Makefile
Adds a manifest describing required sequential migrations, a verifier script for manifest and SQL file checks, and a Makefile target wired into make verify.

Daily Summary Storage and Aggregation

Layer / File(s) Summary
Daily summary column removal and query updates
pkg/db/models/prow.go, pkg/db/dailysummary/dailysummary.go, pkg/db/db.go, pkg/db/views.go, pkg/db/migrations/000004_drop_daily_summary_variant_combination.up.sql, pkg/db/migrations/000004_drop_daily_summary_variant_combination.down.sql
Removes variant_combination_id from the daily summary model and insert aggregation, updates trigger backfill behavior and materialized-view aggregation, and adds migration SQL to drop and restore the column.

Important Variants List Update

Layer / File(s) Summary
importantVariants update
pkg/testidentification/ocp_variants.go
Expands the filtered variant-key list and updates the surrounding comment text.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • openshift/sippy#3678: Both PRs modify daily-summary and variant_combination_id-related schema/query logic in pkg/db.
  • openshift/sippy#3708: Both PRs change the importantVariants filtering list in pkg/testidentification/ocp_variants.go.

Suggested reviewers

  • petr-muller
🚥 Pre-merge checks | ✅ 19 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Test Coverage For New Features ⚠️ Warning No tests cover the new variant filtering, SQL builders, or migration verifier; existing tests only check unrelated ordering/refresh behavior. Add targeted tests for importantVariants/IdentifyVariants, buildInsertSQL/view SQL changes, and verify-migrations success/failure cases (gaps, duplicates, missing files).
✅ Passed checks (19 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Go Error Handling ✅ Passed Changed Go code propagates errors with %w, checks nil inputs, and introduces no ignored errors, panic(), or unsafe dereferences.
Sql Injection Prevention ✅ Passed New SQL uses placeholders or static literals only; the added migration and daily-summary queries don't interpolate user input.
Excessive Css In React Should Use Styles ✅ Passed No React/CSS files were changed; the patch is backend/migrations-only, so the inline-style rule is not applicable.
Single Responsibility And Clear Naming ✅ Passed The PR adds focused, descriptive names and keeps each changed unit narrowly scoped: migration verification, manifest, and daily-summary SQL updates are all single-purpose.
Feature Documentation ✅ Passed docs/features only has job-analysis-symptoms.md, which documents symptoms/labels; no feature doc covers the variant/daily-summary changes.
Stable And Deterministic Test Names ✅ Passed PR changes only non-test files; scans found no Ginkgo titles in modified files or dynamic test names repo-wide.
Test Structure And Quality ✅ Passed PR only changes migration/db/variant code; no Ginkgo It/BeforeEach/Eventually test blocks were added or modified, so this test-structure check is not applicable.
Microshift Test Compatibility ✅ Passed No Ginkgo e2e tests were added or modified; the commit only changes Makefile, a shell verifier, and a migration manifest.
Single Node Openshift (Sno) Test Compatibility ✅ Passed No new Ginkgo e2e tests were added in the changed files, so there are no SNO-specific node-topology assumptions to flag.
Topology-Aware Scheduling Compatibility ✅ Passed The commit only touches Makefile, DB/migration, and variant-identification code; no deployment manifests, controllers, or scheduling constraints were added.
Ote Binary Stdout Contract ✅ Passed Changed files are library/support code only; no main/init/TestMain or stdout writes were added, and new logging uses logrus rather than fmt.Print/os.Stdout.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo e2e tests were added; the PR only changes DB/migration/Makefile code, with no IPv4 or external-network assumptions introduced.
No-Weak-Crypto ✅ Passed Touched files contain no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB or custom crypto; only SHA-256 schema hashing appears, not a secret comparison.
Container-Privileges ✅ Passed No container/K8s manifests were changed; the PR only touches Makefile, shell/migration, and DB/model files, so no privileged settings were introduced.
No-Sensitive-Data-In-Logs ✅ Passed No added logs expose secrets/PII; observed output is limited to operational metadata like table names, dates, counts, and hashes.
Title check ✅ Passed The title accurately summarizes the two main changes: expanding variant keys and removing daily summaries from variant_combination_id.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mstaeble

mstaeble commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (3)
hack/verify-migrations.sh (2)

30-30: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Quote $expected in printf per shellcheck.

Static analysis flags unquoted $expected; harmless here since it's always numeric, but quoting avoids relying on that invariant.

🔧 Proposed fix
-        echo "ERROR: Expected migration $(printf '%06d' $expected) but found $(printf '%06d' $num) (gap or duplicate)."
+        echo "ERROR: Expected migration $(printf '%06d' "$expected") but found $(printf '%06d' "$num") (gap or duplicate)."
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@hack/verify-migrations.sh` at line 30, The shellcheck warning comes from the
unquoted $expected used in the printf call inside verify-migrations.sh’s error
message. Update the printf invocation in that echo statement to quote $expected
consistently with the other variable expansions, keeping the same migration
gap/duplicate message formatting while removing the lint issue.

Source: Linters/SAST tools


47-47: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Prefer find over ls for the file count, per shellcheck.

ls parsing is fragile with unusual filenames (newlines, spaces); find/fd is more robust, though migration filenames are controlled here so risk is low.

🔧 Proposed fix
-actual_sql=$(ls "$MIGRATIONS_DIR"/*.sql 2>/dev/null | wc -l | tr -d ' ')
+actual_sql=$(find "$MIGRATIONS_DIR" -maxdepth 1 -name '*.sql' | wc -l | tr -d ' ')
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@hack/verify-migrations.sh` at line 47, The migration file count in
verify-migrations.sh uses ls, which shellcheck flags as fragile for parsing
filenames. Update the actual_sql count logic to use find instead of ls in the
same migration-counting step, keeping the rest of the pipeline behavior
unchanged and preserving the comparison against expected_sql.

Source: Linters/SAST tools

pkg/testidentification/ocp_variants.go (1)

47-54: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Expanded key set matches canonical variant names.

The added keys (Procedure, Aggregation, NetworkAccess, Scheduler, Suite, ContainerRuntime, CGroupMode, LayeredProduct) line up with the canonical Variant* constants defined in pkg/variantregistry/ocp.go, so filterVariants will correctly retain them. No test coverage currently exercises this filter list; consider adding/updating a unit test asserting IdentifyVariants/filterVariants returns these new keys, since this list directly changes what gets persisted in prow_jobs.variants and consumed by downstream BigQuery queries (e.g. jobrunannotator.go).

As per path instructions, **/*.{go,tsx,jsx}: "New or modified functionality should include test coverage: new Go functions and methods need unit tests, bug fixes need regression tests."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/testidentification/ocp_variants.go` around lines 47 - 54, The expanded
variant key list in filterVariants/IdentifyVariants should be covered by tests,
since it now changes which canonical Variant* names are retained and persisted.
Add or update a unit test around IdentifyVariants or filterVariants in
pkg/testidentification/ocp_variants.go that asserts the new keys (Procedure,
Aggregation, NetworkAccess, Scheduler, Suite, ContainerRuntime, CGroupMode,
LayeredProduct) are preserved, so regressions in prow_jobs.variants behavior are
caught.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/db/migrations/000004_drop_daily_summary_variant_combination.down.sql`:
- Around line 1-2: Add an explanatory SQL comment in the down migration near the
TRUNCATE statement in 000004_drop_daily_summary_variant_combination.down.sql to
document why the rollback is destructive and what follow-up is required. Mention
that `test_daily_summaries` is intentionally wiped before re-adding
`variant_combination_id`, and note that a full daily-summary and
materialized-view refresh must be performed afterward; keep the comment adjacent
to the migration logic so the rationale is visible when running `migrate down`.

---

Nitpick comments:
In `@hack/verify-migrations.sh`:
- Line 30: The shellcheck warning comes from the unquoted $expected used in the
printf call inside verify-migrations.sh’s error message. Update the printf
invocation in that echo statement to quote $expected consistently with the other
variable expansions, keeping the same migration gap/duplicate message formatting
while removing the lint issue.
- Line 47: The migration file count in verify-migrations.sh uses ls, which
shellcheck flags as fragile for parsing filenames. Update the actual_sql count
logic to use find instead of ls in the same migration-counting step, keeping the
rest of the pipeline behavior unchanged and preserving the comparison against
expected_sql.

In `@pkg/testidentification/ocp_variants.go`:
- Around line 47-54: The expanded variant key list in
filterVariants/IdentifyVariants should be covered by tests, since it now changes
which canonical Variant* names are retained and persisted. Add or update a unit
test around IdentifyVariants or filterVariants in
pkg/testidentification/ocp_variants.go that asserts the new keys (Procedure,
Aggregation, NetworkAccess, Scheduler, Suite, ContainerRuntime, CGroupMode,
LayeredProduct) are preserved, so regressions in prow_jobs.variants behavior are
caught.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 09db481d-351a-47cb-b6d0-5a891b840ca3

📥 Commits

Reviewing files that changed from the base of the PR and between 761d0d4 and c00b661.

📒 Files selected for processing (10)
  • Makefile
  • hack/verify-migrations.sh
  • pkg/db/dailysummary/dailysummary.go
  • pkg/db/db.go
  • pkg/db/migrations/000004_drop_daily_summary_variant_combination.down.sql
  • pkg/db/migrations/000004_drop_daily_summary_variant_combination.up.sql
  • pkg/db/migrations/MANIFEST
  • pkg/db/models/prow.go
  • pkg/db/views.go
  • pkg/testidentification/ocp_variants.go

@openshift-ci openshift-ci Bot added the ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review label Jul 1, 2026
@mstaeble mstaeble force-pushed the worktree-expand-variant-keys branch from c00b661 to 2357247 Compare July 1, 2026 02:07
@mstaeble mstaeble marked this pull request as ready for review July 1, 2026 05:32
@mstaeble mstaeble changed the title [WIP] TRT-2741: Expand variant keys and decouple daily summaries from variant_combination_id TRT-2741: Expand variant keys and decouple daily summaries from variant_combination_id Jul 1, 2026
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 1, 2026
@openshift-ci openshift-ci Bot requested review from smg247 and xueqzhan July 1, 2026 05:32
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e

mstaeble added a commit to mstaeble/sippy that referenced this pull request Jul 1, 2026
…nt_combination_id

Cherry-pick from PR openshift#3722 with conflict resolution and fixes:
- Add 8 variant keys to importantVariants (Aggregation, NetworkAccess,
  Scheduler, Suite, ContainerRuntime, CGroupMode, LayeredProduct, plus
  SpotCheckComponent/SpotCheckCapability excluded as unused in views)
- Remove variant_combination_id from test_daily_summaries; matview
  pre_agg CTEs now join prow_jobs to resolve it at refresh time
- Fix cr_test_status_matview to join prow_jobs for variant_combination_id
- Remove duplicate Procedure entry from importantVariants
- Add migration 000004 to drop the column

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
mstaeble added a commit to mstaeble/sippy that referenced this pull request Jul 1, 2026
…nt_combination_id

Cherry-pick from PR openshift#3722 with conflict resolution and fixes:
- Add 8 variant keys to importantVariants (Aggregation, NetworkAccess,
  Scheduler, Suite, ContainerRuntime, CGroupMode, LayeredProduct, plus
  SpotCheckComponent/SpotCheckCapability excluded as unused in views)
- Remove variant_combination_id from test_daily_summaries; matview
  pre_agg CTEs now join prow_jobs to resolve it at refresh time
- Fix cr_test_status_matview to join prow_jobs for variant_combination_id
- Remove duplicate Procedure entry from importantVariants
- Add migration 000004 to drop the column

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
mstaeble added a commit to mstaeble/sippy that referenced this pull request Jul 1, 2026
…nt_combination_id

Cherry-pick from PR openshift#3722 with conflict resolution and fixes:
- Add 8 variant keys to importantVariants (Aggregation, NetworkAccess,
  Scheduler, Suite, ContainerRuntime, CGroupMode, LayeredProduct, plus
  SpotCheckComponent/SpotCheckCapability excluded as unused in views)
- Remove variant_combination_id from test_daily_summaries; matview
  pre_agg CTEs now join prow_jobs to resolve it at refresh time
- Fix cr_test_status_matview to join prow_jobs for variant_combination_id
- Remove duplicate Procedure entry from importantVariants
- Add migration 000004 to drop the column

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mstaeble mstaeble force-pushed the worktree-expand-variant-keys branch from 5d5ca33 to ccd8ece Compare July 1, 2026 16:04
mstaeble and others added 2 commits July 1, 2026 12:06
…nt_combination_id

Add 8 variant keys to importantVariants (Procedure, Aggregation,
NetworkAccess, Scheduler, Suite, ContainerRuntime, CGroupMode,
LayeredProduct). Release-family keys remain excluded as they are
redundant with prow_jobs.release and the Upgrade variant.

Remove variant_combination_id from test_daily_summaries. The matview
pre_agg CTE now joins prow_jobs to resolve the variant_combination_id
at refresh time. This decouples daily summaries from variant changes,
eliminating the need to rebuild 69M rows when variants are updated.
Benchmarking shows <1% matview refresh overhead from the added join.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add LATEST manifest listing all migrations by version and name.
Two PRs adding the same migration number will conflict on this
file. Add hack/verify-migrations.sh and a make target to enforce
sequential numbering, no gaps, and matching up/down files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mstaeble mstaeble force-pushed the worktree-expand-variant-keys branch from ccd8ece to fa1cbef Compare July 1, 2026 16:07
@mstaeble

mstaeble commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

/test security

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e

@openshift-ci

openshift-ci Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@mstaeble: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants