Repository navigation
Fix the 2026-12-01 nightly reds: SDK field removal, ontology scratch schema, stale and slow ITs - #39394
Conversation
#39164 pruned the no-snapshot baseline to the fields the caller sent, so a field nulled on an entity returned by create() or update() was never removed. Prune only hand-built partial entities, which carry no version or updatedAt.
…hema Approval rules read bot_entity since #38797. Without it the gate refused every write with "Approval rules are unavailable".
…arch #38011 lets a memory-only search return anchored memories a reader may read, but left one assertion on the old rule. The "all" assertions counted fuzzy-matched tables and queried the question, which "all" does not search; count memories only and carry the query in the display name.
…n deadlock The chunked DELETE on tag_usage commits on its own and is idempotent, so DeadlockRetry can rerun it.
Retry a SPARQL request the single worker turns away with 429, and give the approval workflow the 5 minutes MetricResourceIT already allows.
PerSourceState is owned by each source instance, so a second run starts empty and the object has no clear().
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
The bounded worker answers saturation with 429 and Retry-After by design, so the client waits as told. The approval workflow starts only when the serial WorkflowEventConsumer reaches the create event, which lags under parallel load.
…n update() Replace the sleep loop with Awaitility at the server's Retry-After interval. Add a test that a server-returned entity with one changed field emits no remove ops.
|
On the medium-risk note, that absent fields on server-returned entities now become removes:
|
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsThe shared SDK now emits removals for absent fields on versioned server entities, so callers omitting fields could unintentionally delete persisted metadata. Fixes the 2026-12-01 nightly reds by adding The new 429 retry loop in ✅ 1 closed✅ Quality: New 429 retry loop in askTogether uses Thread.sleep in a test
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes the reds of the 2026-12-01 backend nightly (run 46553147189). That was the first nightly with Java integration lanes, which #38801 added on 11-30, so some of these failures were latent on
mainrather than new.OntologyEntityDAOIT: 5 tests, global-state lane, all 3 setupsbot_entitysince #38797. The test's scratch schema had no such table, so every write got "Approval rules are unavailable".bot_entityinOntologyTestDatabase.ClassificationResourceIT,GlossaryTermResourceIT,EventSubscriptionResourceIT: a field set to null on update stays setget()snapshot,update()pruned the baseline to the submitted fields. A field nulled on an entity returned bycreate()/update()was therefore never removed.EntityServiceBase.updateprunes only hand-built partial entities, which carry noversion/updatedAt. Server-returned entities diff in full, as they did before #39164.ContextMemoryAnchorIT: 2 tests"all"assertions also counted fuzzy-matched tables, and queriedquestion, which"all"does not search.contextMemorybucket. Carry the query indisplayName, and confirm with an admin baseline search.GlossaryTermApprovedTaggingIT: MySQL deadlockDELETE FROM tag_usage.dropPendingOnthroughDeadlockRetry. Each chunk is an idempotent DELETE that commits on its own, with no enclosing transaction.OntologyGovernanceIT: 429Retry-After: 1(ADR2026-11-04-ontology-sparql-runs-in-a-bounded-worker, v3). On a loaded runner the first query can outlast that window. The test assumed both concurrent requests always get 200.Retry-After, for up to 25 s, as a client should.ConceptContextIT: timeoutWorkflowEventConsumerreaches the create event. On the nightly it was working through a backlog of concurrent tests'metric-entityCreatedsignals at about 1–3 per second. The test's metric was created at 02:11:25.4 and its signal was handled at about 02:11:55.5, 0.4 s past the 30 s limit.MetricResourceITalready does. Consumer throughput under load is worth its own issue.The Python reds (Informix test,
airflow-apisuv.lock) were fixed identically by #39396.Not in this PR: Java Sonar fails with
Not authorized. TheSONAR_TOKENrepo secret dates from 2021-12-23 and needs rotation by a SonarCloud admin.Type of change:
High-level design:
N/A. These are targeted fixes, and each commit stands alone.
Tests:
Use cases covered
create()and callsupdate()gets the field removed. A hand-built partial entity still leaves unsent fields alone.Unit tests
UpdatePruneBaselineTest.updateWithoutSnapshotRemovesAFieldClearedOnAServerReturnedEntity. It fails without the fix, and the fullopenmetadata-sdkunit suite passes (443 tests).Integration tests
OntologyEntityDAOIT: 12/12.ClassificationResourceIT#test_deleteAutoClassificationConfig,GlossaryTermResourceIT#patch_addDeleteStyle,EventSubscriptionResourceIT#test_updateSubscriptionRemoveTemplate.SpreadsheetDetachedUpdateIT: 3/3, the Fixes #39129: prune no-snapshot update baseline to stop spurious JSON Patch removes #39164 regression IT.ContextMemoryAnchorIT: 15/15.GlossaryTermApprovedTaggingIT: 33/33.OntologyGovernanceIT: 7/7.ConceptContextIT: 22/22.ci-merge-queuedispatched on this branch withworkload=java: run 46650486049.Checklist:
Fixes <issue-number>: <short explanation>(no tracking issue yet)🤖 Generated with Claude Code