Skip to content

fix(migration): align PG v200 migration with MySQL#27757

Merged
pmbrull merged 1 commit intomainfrom
pmbrull/fix-pg-v200-migration
Apr 27, 2026
Merged

fix(migration): align PG v200 migration with MySQL#27757
pmbrull merged 1 commit intomainfrom
pmbrull/fix-pg-v200-migration

Conversation

@pmbrull
Copy link
Copy Markdown
Collaborator

@pmbrull pmbrull commented Apr 27, 2026

Summary

  • Comments out migrateThreadTasksToTaskEntity(handle) in the PostgreSQL v200 migration to match the MySQL fix from Chore(UI): fix migration issue #27687.
  • The original fix was only applied to MySQL (openmetadata-service/.../migration/mysql/v200/Migration.java), so PostgreSQL deployments would still hit the same Collate CI failure.
  • Also removes the now-unused static import to keep the file in sync with its MySQL counterpart and pass checkstyle.

After this change, postgres/v200/Migration.java is byte-for-byte identical to mysql/v200/Migration.java aside from the package declaration.

Test plan

  • git diff matches the shape of commit 184eb35 (3 insertions, 2 deletions)
  • diff between postgres and mysql Migration.java (excluding package line) reports no differences
  • mvn spotless:apply left the file unchanged

🤖 Generated with Claude Code

Comment out migrateThreadTasksToTaskEntity in the PostgreSQL v200
migration to match the MySQL fix from PR #27687. The original fix was
only applied to MySQL, leaving PostgreSQL deployments exposed to the
same Collate CI failure.
Copilot AI review requested due to automatic review settings April 27, 2026 10:36
@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Apr 27, 2026
@gitar-bot
Copy link
Copy Markdown

gitar-bot Bot commented Apr 27, 2026

Code Review ✅ Approved

Aligns the PostgreSQL v200 migration schema with existing MySQL configurations. No issues found.

Options

Display: compact → Showing less information.

Comment with these commands to change:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Aligns PostgreSQL v200 data migration behavior with the existing MySQL v200 workaround by disabling the migrateThreadTasksToTaskEntity step that is currently causing CI failures.

Changes:

  • Removed the now-unused static import for migrateThreadTasksToTaskEntity.
  • Commented out the migrateThreadTasksToTaskEntity(handle) invocation in Postgres v200 migration (matching MySQL v200).

Comment on lines +23 to +24
// Causing issues with collate CI, needs to be fixed before enabling this migration
// @harshach
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

The new inline comment disables a migration step but doesn’t provide a durable tracking reference for when/how to re-enable it. Consider replacing the free-form text and the personal handle mention with a TODO/FIXME that links to the relevant issue/PR (e.g., #27687 or a follow-up ticket), and apply the same wording in both MySQL/Postgres v200 migrations to keep them in sync.

Suggested change
// Causing issues with collate CI, needs to be fixed before enabling this migration
// @harshach
// TODO: Re-enable after resolving the collation-related migration issue tracked in #27687.

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor

🟡 Playwright Results — all passed (20 flaky)

✅ 3953 passed · ❌ 0 failed · 🟡 20 flaky · ⏭️ 86 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 298 0 1 4
🟡 Shard 2 752 0 7 8
🟡 Shard 3 728 0 4 7
🟡 Shard 4 755 0 4 18
✅ Shard 5 687 0 0 41
🟡 Shard 6 733 0 4 8
🟡 20 flaky test(s) (passed on retry)
  • Pages/UserCreationWithPersona.spec.ts › Create user with persona and verify on profile (shard 1, 1 retry)
  • Features/ActivityAPI.spec.ts › Activity event is created when description is updated (shard 2, 1 retry)
  • Features/ActivityAPI.spec.ts › Activity event is created when owner is added (shard 2, 1 retry)
  • Features/DataQuality/TestCaseImportExportE2eFlow.spec.ts › Admin: Complete export-import-validate flow (shard 2, 1 retry)
  • Features/DataQuality/TestCaseResultPermissions.spec.ts › User with only VIEW cannot PATCH results (shard 2, 1 retry)
  • Features/DomainFilterQueryFilter.spec.ts › Domain filter should work with different asset types (shard 2, 1 retry)
  • Features/DomainFilterQueryFilter.spec.ts › Quick filters should persist when domain filter is applied and cleared (shard 2, 1 retry)
  • Features/Glossary/GlossaryWorkflow.spec.ts › should display correct status badge color and icon (shard 2, 1 retry)
  • Features/RTL.spec.ts › Verify Following widget functionality (shard 3, 1 retry)
  • Features/TestSuitePipelineRedeploy.spec.ts › Re-deploy all test-suite ingestion pipelines (shard 3, 1 retry)
  • Flow/PersonaDeletionUserProfile.spec.ts › User profile loads correctly before and after persona deletion (shard 3, 1 retry)
  • Flow/PersonaFlow.spec.ts › Set default persona for team should work properly (shard 3, 1 retry)
  • Pages/CustomProperties.spec.ts › Timestamp (shard 4, 1 retry)
  • Pages/CustomProperties.spec.ts › Timestamp (shard 4, 1 retry)
  • Pages/DataContracts.spec.ts › Create Data Contract and validate for Container (shard 4, 1 retry)
  • Pages/DataContracts.spec.ts › Create Data Contract and validate for Store Procedure (shard 4, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage schema filter selection (shard 6, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab IS visible for supported type: searchIndex (shard 6, 1 retry)
  • Pages/Teams.spec.ts › Export team (shard 6, 1 retry)
  • Pages/UserDetails.spec.ts › Create team with domain and verify visibility of inherited domain in user profile after team removal (shard 6, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@pmbrull pmbrull merged commit d7e191c into main Apr 27, 2026
58 of 61 checks passed
@pmbrull pmbrull deleted the pmbrull/fix-pg-v200-migration branch April 27, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants