TRT-2737: Remove test_analysis_by_job_by_dates table and BQ loader#3826
TRT-2737: Remove test_analysis_by_job_by_dates table and BQ loader#3826mstaeble wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@mstaeble: This pull request references TRT-2737 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. DetailsIn response to this:
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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mstaeble The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
WalkthroughThe PR removes daily test-analysis-by-job loading and its exported data contracts, drops the legacy database table and view through migration, and excludes that table from partition lifecycle management and end-to-end partition checks. ChangesLegacy test-analysis removal
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 20 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (20 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
/hold To let the changes soak in production before we destructively drop the table. |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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/000008_drop_test_analysis_by_job_by_dates.down.sql`:
- Around line 1-14: The down migration currently recreates only
test_analysis_by_job_by_dates; also restore
prow_test_analysis_by_variant_14d_view with the same definition it had before
migration 000008. Add the matching CREATE VIEW statement to the rollback, while
preserving the existing table recreation and ensuring the up migration still
removes the view when it is no longer part of the schema.
In `@test/e2e/db/partitions/partitions_test.go`:
- Line 42: Update every changed parent-table filter in the partition e2e checks,
including the WHERE clauses using parent.relname and c.relname, to include
test_daily_totals and test_cumulative_summaries alongside the existing
prow_job_run_tests and prow_job_run_test_outputs entries. Apply this
consistently to all referenced filter locations so coverage matches
PartitionedTables().
🪄 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: Pro Plus
Run ID: 3b232386-aef7-4465-9b98-9c0741615a27
📒 Files selected for processing (10)
pkg/bigquery/bqlabel/labels.gopkg/dataloader/prowloader/prow.gopkg/dataloader/prowloader/prow_test.gopkg/db/db.gopkg/db/migrate/migrate.gopkg/db/migrations/000008_drop_test_analysis_by_job_by_dates.down.sqlpkg/db/migrations/000008_drop_test_analysis_by_job_by_dates.up.sqlpkg/db/migrations/MANIFESTpkg/db/models/prow.gotest/e2e/db/partitions/partitions_test.go
💤 Files with no reviewable changes (4)
- pkg/db/models/prow.go
- pkg/bigquery/bqlabel/labels.go
- pkg/dataloader/prowloader/prow_test.go
- pkg/dataloader/prowloader/prow.go
Phase 2 of TRT-2737: now that all consumers have been rewritten to use test_daily_totals and test_cumulative_summaries (PR openshift#3747), remove the now-unused test_analysis_by_job_by_dates infrastructure: - Drop the TestAnalysisByJobByDate GORM model - Remove the BigQuery loader and its supporting types/functions - Remove the ProwLoaderTestAnalysis BigQuery label constant - Remove partition management registration for the table - Remove the table from e2e partition tests - Add migration 000008 to explicitly drop the dependent view and table - Update the plan_cache_mode comment to reflect the actual rationale - Update the baseline migration existence check to use prow_job_run_tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
aa357d7 to
d999649
Compare
|
Scheduling required tests: |
|
@mstaeble: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Summary
Phase 2 of TRT-2737: now that all consumers have been rewritten to use
test_daily_totalsandtest_cumulative_summaries(PR #3747), this PR removes the now-unusedtest_analysis_by_job_by_datesinfrastructure:TestAnalysisByJobByDateGORM modelloadDailyTestAnalysisByJob) and its supporting types/functionsProwLoaderTestAnalysisBigQuery label constantprow_test_analysis_by_variant_14d_viewview, thetest_analysis_by_job_by_datestable (including all partitions), and any detached partitionsLoadProwJobCacheandLoadTestCache(only callers were in the removed loader)plan_cache_mode=force_custom_plancomment to reflect the actual rationaleprow_job_run_testsTest plan
make lintpasses cleanmake testpasses (15055 Go tests)make e2epasses (migration 000008 runs successfully)🤖 Generated with Claude Code