Skip to content

Fix entity version history of dataProducts after removing inputPorts/outputPorts field - #25702

Merged
sonika-shah merged 2 commits into
mainfrom
fix-entity-version-dataProducr
Feb 5, 2026
Merged

sonika-shah merged 2 commits into
mainfrom
fix-entity-version-dataProducr

Conversation

@sonika-shah

@sonika-shah sonika-shah commented Feb 4, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Summary by Gitar

This PR completes the data cleanup initiated in PR #25634 by removing orphaned inputPorts and outputPorts fields from the entity_extension table (entity version history).

  • Extends version 1.12.0 migration scripts to clean up historical dataProduct entity snapshots stored in entity_extension table
  • Mirrors existing cleanup pattern for data_product_entity table, ensuring both current entities and version history are consistent
  • Implements database-specific logic for MySQL (using JSON_REMOVE, JSON_CONTAINS_PATH) and PostgreSQL (using jsonb operators)
  • Uses conditional updates to only modify records with jsonSchema = 'dataProduct' that actually contain the deprecated fields

@sonika-shah

Copy link
Copy Markdown
Collaborator Author

@gitar-bot pls review both the migration changes

@gitar-bot

gitar-bot Bot commented Feb 5, 2026 •

Copy link
Copy Markdown
🔍 CI failure analysis for f52041b: Two Playwright shards (3 and 4 of 6) failed with the same Airflow infrastructure issues seen in previous runs. The other 4 shards succeeded, confirming this is intermittent infrastructure flakiness, not code-related.

Summary

Two Playwright CI jobs failed with infrastructure issues unrelated to the PR's SQL migration changes.


Playwright E2E Tests - Intermittent Infrastructure Issue

2 Out of 6 Shards Failed (67% Success Rate)

Results from CI run after merge from main:

  • ✅ Shard 1: SUCCESS
  • ✅ Shard 2: SUCCESS
  • ❌ Shard 3: FAILURE (Job 62575230860) - 1 test failure ⭐ NEW
  • ❌ Shard 4: FAILURE (Job 62575230867) - 4 test failures
  • ✅ Shard 5: SUCCESS
  • ✅ Shard 6: SUCCESS

Total: 5 test failures across 2 shards

Root Cause: Same Airflow Infrastructure Issues

Both failed shards show identical infrastructure problems:

Shard 3 (NEW):

✗ Failed to get access token (7 consecutive, 05:00:31 - 05:01:01)
ModuleNotFoundError: No module named 'cachetools'
⚠ DAG validation failed
✗ Failed to unpause index_metadata (HTTP 404)

Shard 4:

✗ Failed to get access token (6 consecutive, 04:57:11 - 04:57:36)
ModuleNotFoundError: No module named 'cachetools'
⚠ DAG validation failed
✗ Failed to unpause index_metadata (HTTP 404)

This is the EXACT SAME infrastructure failure pattern seen in the previous CI run where all 6 shards failed.

Why This Confirms Infrastructure Flakiness

Key Evidence:

  1. 🔄 Intermittent failure: Only 2 of 6 shards affected
  2. 🔁 Identical error pattern: Both failed shards show same Airflow setup failures
  3. ✅ Other shards succeeded: 4 shards passed with identical code
  4. 🎯 Random distribution: Only shards 3 & 4 affected (not deterministic)
  5. 💻 Same code: No changes to SQL migration scripts
  6. ⏱️ Different timing: Failures at different timestamps (not synchronized)

If code caused this failure:

  • ❌ All 6 shards would fail consistently
  • ❌ We'd see DataProduct-related test failures
  • ❌ We'd see database migration errors

Since this is infrastructure flakiness:

  • ✅ Random shard failures (2 of 6)
  • ✅ Same Airflow issues as previous run
  • ✅ Other shards succeed with identical code

Comparison Across CI Runs

Run 1 (before merge):

  • 6/6 Playwright shards failed (100%)
  • Complete Airflow infrastructure collapse

Run 2 (after merge from main):

  • 2/6 Playwright shards failed (33%)
  • Same Airflow infrastructure issues, but intermittent
  • Proves infrastructure is unstable, not the code

Pattern:

  • Failure rates vary: 100% → 33%
  • Error patterns identical: Same Airflow issues
  • Code unchanged: SQL migration scripts
  • Conclusion: Infrastructure flakiness

Why Unrelated to PR

PR changes:

  • SQL migration scripts for DataProduct entities
  • Removes inputPorts/outputPorts from version history
  • Zero application code changes

Failure characteristics:

  • Airflow API authentication failures
  • Missing Python dependencies
  • Infrastructure setup issues before tests run

Logical impossibility:
SQL migration scripts cannot:

  • ❌ Cause Airflow authentication to fail randomly in 2 of 6 runners
  • ❌ Create missing dependencies in some containers but not others
  • ❌ Affect infrastructure setup before migrations execute

Conclusion

This is intermittent infrastructure flakiness, not a code problem.

  • Only 2 of 6 shards failed (33%)
  • Same Airflow issues as previous run
  • 4 shards succeeded with identical code
  • Failure rate improved from 100% to 33% with no code changes

The varying failure rates across CI runs (100% → 33%) with unchanged code confirms the infrastructure is the problem.

Code Review ✅ Approved

Clean, straightforward migration script extending existing cleanup pattern to entity version history. The SQL syntax is correct for both MySQL and PostgreSQL, and the logic properly filters by jsonSchema.

Tip

Comment Gitar fix CI or enable auto-apply: gitar auto-apply:on

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonika-shah
sonika-shah merged commit 30a4d32 into main Feb 5, 2026
19 of 23 checks passed
@sonika-shah
sonika-shah deleted the fix-entity-version-dataProducr branch February 5, 2026 06:29
mohityadav766 added a commit that referenced this pull request Feb 9, 2026
* use promote entity reindex in distributed

* Add Logs and finalize remaining entities

* fix nullpointer

* Fix Canonical Index Deletion

* Fix Test

* Optimize Reindexing

* Fix Default Recreate Handler

* Fix entity version history of dataProducts after removing inputPorts/ field (#25702)

* Fix: Use Downward API for pipelineRunId in standard K8s CronJobs (#25640)

When using the K8s pipeline client with useOMJobOperator=false, scheduled
pipelines (CronJobs) were failing because pipelineRunId was set to the
literal string "{{ omjob.uid }}" instead of a valid UUID.

This template syntax is designed for the OMJob operator to resolve at
runtime, but standard K8s CronJobs have no templating engine.

The fix uses the Kubernetes Downward API to inject the pod's own UID
(metadata.uid) as the pipelineRunId. Pod UIDs are valid UUIDv4 values
and unique per execution, making them suitable replacements.

Co-authored-by: Claude Opus 4.5 <[email protected]>

* Rename deny list recognizer (#25698)

* Rename deny list recognizer

* Update generated TypeScript types

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix/testsuite cross suite result consistency (#25587)

* refactor: replace testCaseResultSummary with lastResultTimestamp in ES index

* feat: add lean batch SQL queries for test suite result summaries

* fix: recompute related test suite results on pipeline completion

* test: update UI sort field and tests for lastResultTimestamp

* Revert MUITagSuggestion changes from PR #25588 (#25710)

* Initial plan

* Revert MUITagSuggestion changes from PR #25588

Co-authored-by: karanh37 <[email protected]>

* Revert test file changes from PR #25588

Co-authored-by: karanh37 <[email protected]>

* fix test

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: karanh37 <[email protected]>
Co-authored-by: karanh37 <[email protected]>

* Fix Elasticsearch/OpenSearch field explosion with custom properties (#25627)

* Flatten Custom Properties

* Fix UI Side

* Fix Reindex matching old index conflict with alias

* Hacky wacky

* Review comments

* Add tests for custom properties to check field don't exceed

* Change to nested

* Align tests

* Fix Column and DataModel and subassets customProperties

* Fix extension updates

* Fix Description Updates

* Temp fix from other PR

* Fix Test failures

* Fix Review comments

* Fix Tests for playwright

* Import export improvements (#25542)

* Batched Import

* Batched Import

* Batched Import

* Optimised Internal methods for adding relationships for import, fixed circular dependency, generated changeEvents (#25582)

* Fix tag clearing and circular dependency detection in batch CSV imports

  - **Tag clearing fix**: Add deleteTagsByTarget before applying new tags in batch imports to match single entity import behavior, ensuring empty CSV fields properly clear existing
   tags
  - **Circular dependency detection fix**: Pre-track entities in dryRunCreatedEntities before parent resolution to enable proper circular reference validation during CSV team
  imports
  - Resolves test failures in TeamResourceIT.test_importCsv_circularDependency_trueRun and tag-related import issues
  - Maintains batch import performance while restoring pre-batch-import validation contracts

* improve storeRelationshipsInternal internal methods - make them truly batched operations

* - Add storeEntities override to all repositories (57 repos)
-  Add batch lock check to HierarchicalLockManager
- Add batch cache write to EntityRepository
-  Fix createManyEntitiesForImport with batched operations
- Fix updateManyEntitiesForImport with batched operations
-  Add change event creation in flushPendingEntityOperations

---------

Co-authored-by: sonika-shah <[email protected]>

* have default implementation of storeEntities

* add batch relationship clearing while updating during import

* Fix column import failing for tables in same batch

 When importing CSV with batching, column rows failed to find their
  parent table because the table was queued but not yet persisted to DB.
  Added pendingEntityFQNs set to track entities in current batch. When
  processing columns, check if table is in this set - if so, add columns
  directly to the queued table object instead of creating a patch context.
  This ensures columns are persisted with the table in a single operation.

* fix UserResourceTest, TestCaseResourceIT

* Fix Circular Dependency Validation for GlossaryTerms

* Batch Insert ChangeEvents and Process Async

* fix: defer CSV result reporting until batch operations complete to ensure accuracy

* fix: ensure custom properties persist during batch CSV imports

* Fix rows processed count

* Fix: Moving of glossaryTerms to correctly detect update operation during import

* Increment version history

* fix TeamResourceTest

* Fix: Mutual Exclusivity Tag Validation during dry run, Deferring of failures

* Fix: Table Constraints Preservation on table import

* revert validateCsvString logic, needed for csv validation

* revert test changes

* Use dependency resolution to flush pending operations to find the parent

* fix search groping based on entityType in updateEntitiesBulk with tests

* Fetch original from db as cache takes some time to reload

* Test Cases

* Remove logs, fix TableResourceIT, Fix ChangeEvent Race Condition

---------

Co-authored-by: Ram Narayan Balaji <[email protected]>
Co-authored-by: sonika-shah <[email protected]>
Co-authored-by: Ram Narayan Balaji <[email protected]>
Co-authored-by: Karan Hotchandani <[email protected]>
Co-authored-by: karanh37 <[email protected]>

* fix: databricks view definition (#25700)

* Column Edit - Address feedback (#25669)

* Address Test feedback for columns

* Add Translations

* Fix count issue

* nit

* nit

* fix pagination control

* fix e2e test

---------

Co-authored-by: anuj-kumary <[email protected]>

* chore(ui): fix pagination tests (#25715)

* update table selectors

* modify selector

* feat(ui): Learning Resources page improvements and form updates (#25681)

* feat(ui): Learning Resources page improvements and form updates

* Improved footer component

* fix color code combination

* fix view more issue in card view

* Addressed card related feedback

* fix test

* fix playwright test

* nit

* nit

---------

Co-authored-by: Cursor <[email protected]>

* fix pagination space between layout (#25728)

* Fix #25615 - Use system tables instead of API for lineage in UC (#25697)

* WIP - chore(ci): update playwright workflow to run ingestion with dataAsset… (#24753)

* chore(ci): update playwright workflow to run ingestion with dataAssetRules

* limit setup to required steps

* rearrnage spec files

* update condition

* update workflow

* update runners

* update console

* update config

* update arrangements

* fix typo

* rearrange specs

* remove unwanted import

* fix tests

* fix tests issues

* fix comment

* fix failing tests

* fix advance search

* fix test arrangements

* fix failing tests

* feat(ui): Remove resources count badge and add icon in left panel (#25735)

* Remove resources count badge and add icon in left panel

* nit

* Remove important from CSS

* Flaky(UI): Glossary import export  (#25693)

* fixed glossary import export flakyness

* removed timeout

* Flaky(UI) : Bulk import (#25653)

* fixed flaky bulk import

* fixed flaky bulk import

* formatted code

* removed unncessary loader await

* removed timeout

* Flaky(UI): Customize Detail Page spec (#25650)

* fixed customize detail page

* fixed button not clicking issue

* removed unncessary timeout

* added test id

* MINOR: use stats tables for MySQL and PSQL profiler (#25724)

* feat(system): use stats tables for mysl and psql profiler

* fix: skip tests if fail

* fix(trino): shadowing of http_scheme argument (#25726)

* fix(trino): shadowing of http_scheme argument

* fix: import chain

* fix: remove mock trino library

* [Search] Upgrade Clients (#25719)

* Upgrade Clients

* Update clients in docker files

* Fix Tests

* Fix integration test

* Fix Review Comments

* Fix More review comments :-
  1. ElasticSearchClient.java - Added keep-alive timeout configuration
  2. OpenSearchClient.java - Added keep-alive timeout configuration
  3. OpenMetadataOperations.java - Added logging for caught exception
  4. SigV4Hc5RequestSigningInterceptor.java - Now throws exception instead of silently returning

* Fix More review comments :-
  1. ElasticSearchClient.java - Added keep-alive timeout configuration
  2. OpenSearchClient.java - Added keep-alive timeout configuration
  3. OpenMetadataOperations.java - Added logging for caught exception
  4. SigV4Hc5RequestSigningInterceptor.java - Now throws exception instead of silently returning

Co-authored-by: mohityadav766 <[email protected]>

* upgrade to 9.3.0 vs 3.4.0 server since earlier had bug

* fix version in pom

* Fix Review Comments

* FIX IAM OpenSearch FIx

---------

Co-authored-by: Gitar <[email protected]>
Co-authored-by: mohityadav766 <[email protected]>

* Fix Failing Test (#25745)

* Optimize Reindexing

* Fix Issue in Partition Worker

* Fix Entity Stats writing too much to db

---------

Co-authored-by: sonika-shah <[email protected]>
Co-authored-by: IceS2 <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Eugenio <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adrià Manero <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: karanh37 <[email protected]>
Co-authored-by: karanh37 <[email protected]>
Co-authored-by: Sriharsha Chintalapani <[email protected]>
Co-authored-by: Ram Narayan Balaji <[email protected]>
Co-authored-by: Ram Narayan Balaji <[email protected]>
Co-authored-by: Keshav Mohta <[email protected]>
Co-authored-by: anuj-kumary <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Mayur Singal <[email protected]>
Co-authored-by: Chirag Madlani <[email protected]>
Co-authored-by: Dhruv Parmar <[email protected]>
Co-authored-by: Teddy <[email protected]>
Co-authored-by: Gitar <[email protected]>
Co-authored-by: mohityadav766 <[email protected]>

This branch had an error being deployed

1 failed deployment
test — f52041b0 Deployed Feb 5, 2026 by sonika-shah via playwright-ci-postgresql (4, 6) #33050
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 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.

2 participants