Skip to content

Run the governance workflow redeploy from the 2.0.8 migration - #36979

Merged
sonika-shah merged 9 commits into
mainfrom
fix/workflow-redeploy-2-0-8
Nov 5, 2026
Merged

sonika-shah merged 9 commits into
mainfrom
fix/workflow-redeploy-2-0-8

Conversation

@yan-3005

@yan-3005 yan-3005 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

The run-once governance workflow redeploy step added to the 2.1.0 migration in #36855 moves to the 2.0.8 migration, the same step on main and 2.0, after the 2.0.8 negated-list step. The 2.1.0 migrations no longer carry it.

  • An upgrade from 2.0.7 or earlier runs it once. A database on the 2.0 line that recorded 2.0.8 before this step was added, or one already on a 2.1.0 pre-release, does not run the 2.0.8 data migration again; its workflows keep their deployment until they are saved again, and the trigger filter uses the event's version meanwhile. The decision record states this.
  • WorkflowRedeployMigration moves to migration/utils/v208. It lists workflow definitions and deploys each one; a workflow that fails to deploy is logged at error and the rest still run, as in the 2.0.8 negated-list step.
  • TaskResourceIT carries the approval filing and tag field tests the Align task resolution and workflow definition updates with direct edits #36855 decision record names; the approval filing test also files as a table owner without roles, who holds EditAll through the owner rule.

Type of change:

  • Bug fix

Tests:

  • WorkflowRedeployEntryPointTest (new, MySQL and Postgres: the v208 entry point rewrites, then redeploys), WorkflowRedeployMigrationTest, all v208 utility tests, IngestionPipelineMigrationEntryPointTest, MigrationWorkflowReprocessingTest — 127 run, 0 failures.
  • TaskResourceIT: 295 run, 0 failures, 24 skipped.

Playwright (UI) tests

  • Not applicable.

🤖 Generated with Claude Code

The 2.0 line carries the triggering-version change, so the 2.0.8 migration
redeploys every governance workflow with the same run-once step as 2.1.0, and
the 2.0.8 migration stays identical on main and 2.0. 2.1.0 keeps the step for
a database already on a 2.1.0 build, whose 2.0.8 data migration does not run
again. The step's implementation moves to utils/v208, shared by both versions.
@yan-3005 yan-3005 added the To release Will cherry-pick this PR into the release branch label Nov 3, 2026
Copilot AI balanced review requested due to automatic review settings November 3, 2026 17:21
@yan-3005
yan-3005 requested a review from a team as a code owner November 3, 2026 17:21
@yan-3005
yan-3005 requested a review from sonika-shah November 3, 2026 17:21

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Nov 3, 2026
Copilot AI balanced review requested due to automatic review settings November 3, 2026 17:33

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 3, 2026 17:41
@yan-3005 yan-3005 changed the title Run the governance workflow redeploy from the 2.0.8 migration as well Run the governance workflow redeploy from the 2.0.8 migration Nov 3, 2026

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 4, 2026 05:28

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@yan-3005 yan-3005 changed the title Run the governance workflow redeploy from the 2.0.8 migration Run the governance workflow redeploy from a 2.0.9 migration Nov 4, 2026
…-2-0-8

# Conflicts:
#	openmetadata-service/src/test/java/org/openmetadata/service/migration/v210/IngestionPipelineMigrationEntryPointTest.java
Copilot AI balanced review requested due to automatic review settings November 4, 2026 07:14

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@yan-3005 yan-3005 added the 2.1 label Nov 4, 2026
…-2-0-8

# Conflicts:
#	docs/decisions/2026-11-02-an-event-triggered-workflow-run-judges-the-change-its-event-made.md
#	openmetadata-service/src/main/java/org/openmetadata/service/migration/mysql/v209/Migration.java
#	openmetadata-service/src/test/java/org/openmetadata/service/migration/v210/IngestionPipelineMigrationEntryPointTest.java
Copilot AI balanced review requested due to automatic review settings November 4, 2026 13:29

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 5, 2026 05:25
@yan-3005 yan-3005 changed the title Run the governance workflow redeploy from a 2.0.9 migration Run the governance workflow redeploy from the 2.0.8 migration Nov 5, 2026

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

…-2-0-8

# Conflicts:
#	openmetadata-service/src/main/java/org/openmetadata/service/migration/mysql/v208/Migration.java
#	openmetadata-service/src/main/java/org/openmetadata/service/migration/postgres/v208/Migration.java
Copilot AI balanced review requested due to automatic review settings November 5, 2026 05:40

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@gitar-bot

gitar-bot Bot commented Nov 5, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🟡 Medium risk · Redeploying all governance workflows during 2.0.8 upgrades can change execution behavior; failed deployments leave affected workflows on their prior version.

Moves the governance workflow redeploy step from the 2.1.0 migration to the 2.0.8 migration, running it after the negated-list step and leaving the 2.1.0 migrations without it. No issues found.

✅ 1 closed
Closed: Edge Case: Databases already on 2.1.0 never get the governance workflow redeploy

📄 openmetadata-service/src/main/java/org/openmetadata/service/migration/mysql/v210/Migration.java 📄 openmetadata-service/src/main/java/org/openmetadata/service/migration/postgres/v210/Migration.java 📄 docs/decisions/2026-11-02-an-event-triggered-workflow-run-judges-the-change-its-event-made.md:39-41 📄 openmetadata-service/src/test/java/org/openmetadata/service/migration/v210/IngestionPipelineMigrationEntryPointTest.java:133-134
With this commit the redeploy step exists only in the 2.0.8 data migration. For a database whose highest executed migration is already 2.1.0, MigrationWorkflow.shouldRunDataMigration (MigrationWorkflow.java:510-511) treats 2.0.8 as a reprocessed version from the previous release train and skips its Java data migration. That covers any main, nightly or SaaS database that ran the 2.1.0 migration before #36855, or that ran an earlier 2.1.0 build. The earlier v2 amendment said this outright ("a database already on a 2.1.0 build does not run its 2.0.8 data migration again") and kept the step in 2.1.0 for that reason. Once this commit removes the step from the v210 migrations, those databases keep their old BPMN, so event-triggered runs keep judging the current change instead of the change their event made. The new amendment sentence "An upgrade to 2.1.0 runs any 2.0.8 migration it has not run yet" holds only for databases below 2.0.8. The fix is to keep a runOnce redeploy in the 2.1.0 migrations under its own v210 marker, or to make the v210 step skip when the 2.0.8 marker is already recorded. Either way, the ADR should state the rule for databases already on 2.1.0.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonika-shah
sonika-shah merged commit fccb9ab into main Nov 5, 2026
64 of 66 checks passed
@sonika-shah
sonika-shah deleted the fix/workflow-redeploy-2-0-8 branch November 5, 2026 06:12
sonika-shah pushed a commit that referenced this pull request Nov 5, 2026
…ct edits (#36987)

* [2.0] Align task resolution and workflow definition updates with direct edits

Port of #36855 and #36979: task resolution takes the checks of the
equivalent PATCH, including description and tag task threads resolved
through the feed API; workflow definition graph and filter edits need
EditAll; an event-triggered run judges the change its event made; the
2.0.8 migration redeploys governance workflows once.

* [2.0] Apply the assignee checks to team assignees and tag labels on feed task resolution

* [2.0] Run the governance workflow redeploy from a 2.0.9 migration

* [2.0] Run the governance workflow redeploy from the 2.0.8 migration
@yan-3005 yan-3005 self-assigned this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.1 backend safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants