Skip to content

migration test fixes - #7038

Merged
akshaydeo merged 1 commit into
devfrom
09-09-migration_test_fixes
Sep 9, 2026
Merged

akshaydeo merged 1 commit into
devfrom
09-09-migration_test_fixes

Conversation

@akshaydeo

@akshaydeo akshaydeo commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds v2.1.0 migration test fixtures to the migration test script, ensuring that schema changes introduced in v2.1.0 are validated when running migration tests against older releases.

Changes

  • Added append_v210_fixtures function that probes for and applies column-level UPDATEs for new columns introduced in v2.1.0 across tables including config_client, config_keys, config_mcp_clients, config_providers, governance_model_pricing, governance_virtual_keys, logs, and mcp_tool_logs.
  • Added fixture rows for enterprise_mcp_tool_groups and enterprise_mcp_tool_group_virtual_keys to cover the Virtual MCP table structure preserved from the enterprise tool-group era.
  • Wired append_v210_fixtures into both the PostgreSQL and SQLite branches of append_dynamic_mcp_clients_insert, following the same probing pattern used by append_v200_fixtures so the fixture set degrades gracefully against older schema versions.

Type of change

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Chore/CI

Affected areas

  • Core (Go)
  • Transports (HTTP)
  • Providers/Integrations
  • Plugins
  • UI (React)
  • Docs

How to test

Run the migration test workflow locally or via CI. The new fixtures will be applied automatically during the migration test run for both PostgreSQL and SQLite database types.

bash .github/workflows/scripts/run-migration-tests.sh

Verify that the migration tests pass against both the current release and older releases without errors related to missing columns in the v2.1.0 schema.

Screenshots/Recordings

N/A

Breaking changes

  • Yes
  • No

Related issues

N/A

Security considerations

No security implications. Fixture values use test-scoped identifiers and no real secrets or PII.

Checklist

  • I read docs/contributing/README.md and followed the guidelines
  • I added/updated tests where appropriate
  • I updated documentation where needed
  • I verified builds succeed (Go and UI)
  • I verified the CI pipeline passes locally if applicable

@coderabbitai

coderabbitai Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: b4f59149-5175-4e5d-a74a-c11ccbd75f13

📥 Commits

Reviewing files that changed from the base of the PR and between 74f1dc3 and 7ea81ed.

📒 Files selected for processing (1)
  • .github/workflows/scripts/run-migration-tests.sh

📝 Summary

Summary by CodeRabbit

  • Tests
    • Expanded migration test coverage for version 2.1.0 schema updates.
    • Added validation for schema-dependent columns and Virtual MCP table data.
    • Included coverage for both PostgreSQL and SQLite migration paths.
    • Added checks for enterprise MCP tool-group and virtual-key associations.

Walkthrough

The migration test script adds v2.1.0 fixture generation for schema-dependent columns and Virtual MCP records. PostgreSQL and SQLite paths invoke the new fixture function after v2.0.0 fixtures.

Changes

Migration fixture generation

Layer / File(s) Summary
v2.1.0 fixture construction
.github/workflows/scripts/run-migration-tests.sh
append_v210_fixtures probes available columns, updates v2.1.0 data, and inserts Virtual MCP tool-group associations.
Database-specific fixture wiring
.github/workflows/scripts/run-migration-tests.sh
PostgreSQL and SQLite fixture paths invoke the v2.1.0 fixture function after v2.0.0 fixtures.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested reviewers: tejasghatte, bearts, sammaji

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 09-09-migration_test_fixes

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

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@akshaydeo
akshaydeo marked this pull request as ready for review September 9, 2026 15:26
@akshaydeo
akshaydeo requested a review from a team as a code owner September 9, 2026 15:26

akshaydeo commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge activity

  • Sep 9, 3:27 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Sep 9, 3:27 PM UTC: @akshaydeo merged this pull request with Graphite.

@akshaydeo
akshaydeo merged commit b556eaf into dev Sep 9, 2026
14 of 16 checks passed
@akshaydeo
akshaydeo deleted the 09-09-migration_test_fixes branch September 9, 2026 15:27
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