Skip to content

Fix every integration-test failure on main: 14 stale/broken tests, the service-connection wipe, the parallel-lane timeout - #37725

Merged
mohityadav766 merged 5 commits into
mainfrom
fix/tests-fix
Nov 13, 2026
Merged

mohityadav766 merged 5 commits into
mainfrom
fix/tests-fix

Conversation

@yan-3005

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

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes every integration-test failure on main: the 14 tests that fail deterministically in every engine (MySQL+ES, PG+ES+Redis, PG+OS), the parallel lane that times out at its 65m budget, and the DataProductDeleteRaceIT flake. No issue: this is a test fix.

The last green IT run on main was on Nov 3. Since then PRs merged without the integration lanes running (PR CI skips ITs, and no merge-queue IT run is recorded after Nov 3). For each failure I read the breaking PR's description and decision record: 13 tests were broken by an intended, recorded behaviour change and are updated; one (DatabaseServiceResourceIT) caught a production bug that contradicts its own PR's stated intent, so the code is fixed.

Test Broken by Fix
IncidentGroupsIT ×3 (testMixedCaseAssigneeNameResolvesToItsUser, testDuplicateMaxTimestampTieBreak, testAssigneeDenseGroupIsNotTruncated) #37054: the 2.1.0 test_case_incident backfill skips incidents without a testCase → testCaseResolutionStatus parentOf row Seed the parentOf row the write path always writes
MetricMigrationIT.mergedMigrationUpgradesPopulatedPriorShapeFixture #37054 (same backfill) Seed the parentOf row in the fixture; the membership count now counts metricGroup rows only
TeamResourceIT.test_impersonatedOwner_cannotChangeDefaultRolesOrPolicies #36695, ADR:2026-10-30-only-admins-add-roles-or-policies-to-a-team Drop the "owner adds the role directly" step; owners are refused (covered by test_ownerCannotAddRolesOrPoliciesToOwnTeam)
TeamResourceIT.test_importCsv_ownerDryRunReimportsNestedHierarchy #36077, ADR:2026-11-02-a-csv-import-authorizes-each-row-as-its-own-write Teams don't inherit owners and each row needs EDIT_ALL, so the owner owns each exported team
DomainMoveApprovalAuthorizationIT.aMoveIntoAnUnheldDomainIsRefusedNotHeld #36952, ADR:2026-11-03-input-parsing-is-bounded (root JSON Patch → 400) Move with a field-level /domains patch, which still reaches the domain check before the approval hold
DomainReassignmentAuthorizationIT.test_wholeDocumentPatchCannotMoveAnAssetIntoAnUnheldDomain #36952 (same ADR) Expect the 400 refusal; domain still unchanged
mcp.AIContextMcpIT.getEntityDetails_withholdsExpressionOfAVariantTheCallerCannotView #36764, ADR:2026-10-31-metric-and-metric-group-responses-hide-relations-the-viewer-cannot-see Expect the hidden child dropped; amend ADR:2026-10-29-parent-metric-reads-carry-up-to-25-variant-expressions, which still said "keeps its bare reference"
OntologyDraftQueryIT.aViewerIsRefusedAServiceClauseHiddenInsideAnExpression #37624: the release scope refuses an ontology with no active release before reading the query Activate a release first, as the sibling tests do
TaskResourceIT.testTagTaskFieldMustBeATaggedFieldOfItsEntity #37051: field paths must end in tags/description; new error text Use columns.no_such_column.tags, assert names no field
OntologyBulkIT.listJobsIsGlossaryScoped Test bug from #36043: both glossaries got the same name → 409 Distinct base names
DataContractResourceIT.testRepairedSqlAssertionsAndDottedColumnsSurviveStoredVersionedExports #37450/#37617: a numeric-unsafe imported rule is stored as an embedded custom/odcs rule and exported whole The edit replaces it with a native SQL rule
DataContractResourceIT.testIncompatiblePreservedMetadataBlocksAllExportRoutesWithoutLosingIt → renamed testIncompatibleStoredRuleBlocksAllExportRoutesWithoutLosingIt #37450, ADR:2026-11-09-odcs-imports-validate-declared-published-profiles: import rejects unknown root keys and unknown fields travel as source metadata Block export with a native rule v3.1.0 cannot express (as ODCSExportServiceTest does) and assert the rule is kept

Production fix and lane/flake fixes:

Failure Cause Fix
DatabaseServiceResourceIT.put_updateWithoutConnection_preservesExistingConnection_200 (never passed on main) #32920 (issue #29494) guarded the NPE and states "the existing connection in the DB is preserved", but ServiceEntityRepository.updateConnection skipped a null incoming connection and the update stored the service with none — a PUT without connection silently removed it. #32920's guard and test are right; the updater was the missing half updateConnection: a PUT that omits connection keeps the stored one, as serviceAttributes already does; PATCH still clears it on purpose. getFieldsKeptByPut now lists connection and serviceAttributes, so a PUT held by an approval workflow does not stage connection: null either (approving it would otherwise clear the connection). Each generated service types its own setConnection, so the stored connection is copied onto the update in place through its JSON form (JsonUtils.overwriteFromTokenBuffer, already used by SecretMapOwnership). The stored value is ciphertext or vault references, which storage keeps unchanged (ADR:2026-10-29-service-connection-secrets-are-written-only-during-storage)
Parallel lane exit 124 (MySQL+ES 27/32 runs since Nov 10, PG+ES+Redis 15/33) — not a hang: every test was progressing when the 65m timeout fired #37489 added @Isolated NativeOntologyEveryPackInstallIT (647s MySQL / 913s PG, nothing else runs beside it) Move it to the global-state lane (pom property + every engine profile's include/exclude lists, same pattern as ContextMemoryExtractionRequestIT). That lane runs in its own job beside the parallel one (~25m today), and every pack still installs on each merge, as ADR:2026-11-06-ontology-library-packs-are-verbatim-pinned-upstream-releases requires
DataProductDeleteRaceIT.addDuringDomainCascadeWritesNoEdgeForTheDeletedDataProduct (MySQL flake) The CI log shows the domain DELETE took 60,355 ms and returned the moment the test released its row lock: it was blocked all along, but the MySQL probe matched waiting statements on the data product's id and the blocked statement did not carry it Match waiting statements by whole table name on both engines, as the Postgres probe already did, and run the class in the serial global-state lane so no other test's lock wait can stand in for its own

Why keeping an omitted connection is the secure behaviour (recorded in ADR:2026-11-13-a-put-that-omits-a-service-connection-keeps-the-stored-one):

Type of change:

  • Bug fix

High-level design:

Not applicable — test updates, one guarded production fix in ServiceEntityRepository.updateConnection, and an IT lane move; no new design.

Tests:

Use cases covered

Each fixed test now asserts the behaviour its breaking PR recorded (see the table above).

Unit tests

ServiceEntitySecretsTest (guard of the 2026-10-29 secrets ADR): Tests run: 18, Failures: 0. The connection fix's regression test is the existing IT DatabaseServiceResourceIT.put_updateWithoutConnection_preservesExistingConnection_200, which fails without it.

Backend integration tests

  • Not applicable (no backend API changes) — only existing ITs updated.

Run by hand (each class's lane and engine; mvn -B verify -pl :openmetadata-integration-tests -am -P<engine> -DintegrationTests.lane=<lane> -Dit.test=…):

Engine Lane Classes / methods Result
MySQL+ES parallel OntologyBulkIT, IncidentGroupsIT, DomainReassignmentAuthorizationIT, DomainMoveApprovalAuthorizationIT, OntologyDraftQueryIT, AIContextMcpIT (whole classes) + the TaskResourceIT, TeamResourceIT, DataContractResourceIT methods above Tests run: 113, Failures: 1 (old DataContract rewrite) → rewritten, rerun: Tests run: 2, Failures: 0
MySQL+ES global-state MetricMigrationIT Tests run: 4, Failures: 0
PG+OS parallel same set as MySQL Tests run: 113, Failures: 0, Errors: 0
PG+OS global-state MetricMigrationIT Tests run: 4, Failures: 0, Errors: 0
MySQL+ES parallel DataContractResourceIT#testIncompatibleStoredRuleBlocksAllExportRoutesWithoutLosingIt after the review fix Tests run: 1, Failures: 0, Errors: 0
MySQL+ES parallel DatabaseServiceResourceIT, PipelineServiceResourceIT, MessagingServiceResourceIT, SecretsManagerNullSecretIT (whole classes) Tests run: 701, Failures: 0, Errors: 0
MySQL+ES parallel DataProductDeleteRaceIT Tests run: 3, Failures: 0
MySQL+ES global-state NativeOntologyEveryPackInstallIT (-Dontology.packs.only=foaf, lane selection check) Tests run: 2, Failures: 0
PG+OS parallel DatabaseServiceResourceIT, SecretsManagerNullSecretIT, DataProductDeleteRaceIT Tests run: 273, Failures: 0, Errors: 0
PG+OS global-state NativeOntologyEveryPackInstallIT (-Dontology.packs.only=foaf) Tests run: 2, Failures: 0
MySQL+ES parallel SecretsManagerNullSecretIT (incl. 2 new: aPutWithoutAConnectionKeepsTheStoredConnectionAndItsSecrets, aHeldPutWithoutAConnectionStagesNoConnectionChange), DatabaseServiceResourceIT Tests run: 272, Failures: 0, Errors: 0
PG+OS parallel same Tests run: 272, Failures: 0, Errors: 0
MySQL+ES / PG+OS global-state DataProductDeleteRaceIT, NativeOntologyEveryPackInstallIT (foaf) after the lane move Tests run: 5, Failures: 0 each
MySQL+ES parallel RED: aHeldPutWithoutAConnectionStagesNoConnectionChange with the getFieldsKeptByPut override removed Fails as expected: staged [connection, description]
MySQL+ES parallel RED: put_updateWithoutConnection_preservesExistingConnection_200 + aPutWithoutAConnectionKeepsTheStoredConnectionAndItsSecrets with the updateConnection keep removed Both fail as expected: stored connection null (read as admin, who gets the masked connection, so not the visibility null); vault entries still present right after the PUT

Not run locally: PG+ES+Redis (same SQL and code paths as PG+OS for these tests); the merge queue runs all engines. The merge queue is the first full run of every lane, including all 16 packs in the global-state lane.

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable (no UI changes).

Manual testing performed

Not applicable — test-only change; evidence is the IT runs above.

UI screen recording:

Not applicable — test-only change.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — test fix, descriptive title, skip-pr-checks.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above. — test fix, no issue.
  • 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. — N/A
  • For a UI feature or feature task: … — N/A
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
    • Reviewed 35a4b2b199; fixed the 🟡s (stale Javadoc in TeamResourceIT, tighter Cannot export ODCS assertion, comment wording) in 7ee0a13.
    • Reviewed bfea80cc63 (connection fix, lane moves): 🔴 an approval-held PUT still staged connection: null → fixed in f2a0c34818 (getFieldsKeptByPut + RED/GREEN IT); 🟡 DeleteRace table matching could count other classes' lock waits → moved to the serial global-state lane with whole-name matching; 🟡 external-secrets coverage for the kept connection → SecretsManagerNullSecretIT#aPutWithoutAConnectionKeepsTheStoredConnectionAndItsSecrets.
    • 🔴 answered: "AIContextMcpIT no longer guards MetricVariants' VIEW_ALL expression filter." True — the relation-visibility filter now drops such a child first. A caller with VIEW_BASIC but not VIEW_ALL cannot be built in this suite: every user holds the Organization's default DataConsumer role, and a deny of VIEW_ALL also denies VIEW_BASIC. Changing the Organization default is global state the parallel lane shares. Recorded in the ADR amendment.
    • Flagged, not fixed (production, out of scope): a PUT that edits only mustBe on a stored custom/odcs wrapper rule may export without the edit (the wrapper is embedded whole).
  • Decision check: adds ADR:2026-11-13-a-put-that-omits-a-service-connection-keeps-the-stored-one; amends ADR:2026-10-29-parent-metric-reads-carry-up-to-25-variant-expressions to match ADR:2026-10-31-metric-and-metric-group-responses-hide-relations-the-viewer-cannot-see.

🤖 Generated with Claude Code

…ed ITs

Each test was broken by a later PR whose behaviour change is intended and
recorded, but merged without the integration lanes running:

- IncidentGroupsIT x3, MetricMigrationIT: the 2.1.0 incident backfill now
  requires a testCase parentOf row (#37054); seed it like the write path does.
- TeamResourceIT x2: only admins add team roles (ADR 2026-10-30) and every
  CSV row needs EDIT_ALL on its own team (ADR 2026-11-02).
- DomainMoveApprovalAuthorizationIT, DomainReassignmentAuthorizationIT: a
  JSON Patch on the document root is refused with 400 (ADR 2026-11-03).
- AIContextMcpIT: a metric child the caller cannot view is dropped
  (ADR 2026-10-31); amend the 2026-10-29 record that said otherwise.
- OntologyDraftQueryIT: the release scope needs an active release first.
- TaskResourceIT: field paths end in tags/description (#37051).
- OntologyBulkIT: the two glossaries of one test shared a name.
- DataContractResourceIT x2: unknown imported fields are carried as
  source metadata, and an imported numeric-unsafe rule is stored as an
  embedded custom rule (ADR 2026-11-09).
Tighten the DataContract export assertion to the exporter's message, drop
the TeamResourceIT Javadoc clause the removed step proved, and note in the
metric ADR amendment that the VIEW_ALL expression filter has no caller in
the suite that can reach it.
@yan-3005 yan-3005 added To release Will cherry-pick this PR into the release branch skip-pr-checks Bypass PR metadata validation check labels Nov 13, 2026
Copilot AI balanced review requested due to automatic review settings November 13, 2026 06:37

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

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.

…IT lanes

- ServiceEntityRepository: a PUT without `connection` now keeps the stored
  connection, as #32920 and issue #29494 intend and
  DatabaseServiceResourceIT.put_updateWithoutConnection_preservesExistingConnection_200
  asserts. Each generated service types its own setter, so the stored
  connection is copied in place through its JSON form. Stored ciphertext and
  vault references pass through storage unchanged
  (ADR 2026-10-29 service-connection-secrets-are-written-only-during-storage).
- NativeOntologyEveryPackInstallIT moves to the global-state lane. Its
  @isolated 11-15 minute install of every pack pushed the parallel lane past
  its 65 minute budget; the global-state lane runs beside it with headroom and
  every pack still installs on each merge (ADR 2026-11-06).
- DataProductDeleteRaceIT matches lock waiters by table on MySQL too: a run
  waited the full minute on a blocked statement that did not carry the data
  product's id.
The approval gate staged a PUT that omits `connection` as `connection: null`,
so approving it would still delete the credentials. Services now declare
`connection` and `serviceAttributes` as fields a PUT keeps, matching the
updater. Records the decision and its security reasoning in
ADR 2026-11-13-a-put-that-omits-a-service-connection-keeps-the-stored-one.

SecretsManagerNullSecretIT covers both paths against the in-memory vault: a
direct PUT keeps the connection and its vault secrets, and a held PUT stages
no connection op (fails without the override). DataProductDeleteRaceIT moves
to the serial global-state lane and matches whole table names, so no other
test's lock wait can stand in for its own.
@yan-3005
yan-3005 requested a review from a team as a code owner November 13, 2026 09:34
@yan-3005
yan-3005 requested review from pmbrull and a balanced review from Copilot November 13, 2026 09:34

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 Fix 13 integration tests failing on main since merges skipped ITs Fix every integration-test failure on main: 14 stale/broken tests, the service-connection wipe, the parallel-lane timeout Nov 13, 2026
…ested

A red run of the old updater shows the service row losing its connection
while the vault entries were still present right after the PUT, so the record
no longer claims the vault entries were deleted.
Copilot AI balanced review requested due to automatic review settings November 13, 2026 09:44

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 13, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk

Changing service PUTs to retain omitted connections could leave credentials active for integrations that previously relied on omission to remove them.

Fixes 14 deterministically failing integration tests on main by updating them to match recorded behaviour changes, and fixes a production bug where a PUT omitting connection wiped the stored service connection. Also moves the ontology pack install to the global-state lane to clear the parallel-lane timeout and serializes the DataProductDeleteRace flake. No open issues found.

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

@yan-3005

Copy link
Copy Markdown
Contributor Author

Full integration-test runs dispatched on this branch (2173054ce3), every lane, since PR CI skips ITs and there is no merge queue:

Results will be posted here when they finish.

@yan-3005
yan-3005 enabled auto-merge (squash) November 13, 2026 11:30
@mohityadav766
mohityadav766 merged commit a634c55 into main Nov 13, 2026
77 of 79 checks passed
@mohityadav766
mohityadav766 deleted the fix/tests-fix branch November 13, 2026 15:16
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Not backported to 2.0. Claude looked at the conflict and declined to resolve it:

Backport aborted: PR #37725 should not go to 2.0

What the source PR does

PR #37725 is a bundle of fixes for integration-test failures that main accumulated after a
series of unrelated main-only behaviour changes, plus one production fix:

  1. 14 integration-test fixes for tests broken by other, already-merged main PRs (incident
    backfill parentOf rows, team-role admin-only ADR, JSON-Patch-on-root-rejected ADR, MCP
    metric-visibility ADR, release-scope requirements, task field paths, glossary naming, data
    contract import semantics).
  2. A CI test-lane rebalance (NativeOntologyEveryPackInstallIT moved lanes, pom.xml lane
    membership changes) to keep main's parallel IT lane under its time budget.
  3. The actual production fix: ServiceEntityRepository — a PUT that omits connection now
    keeps the stored connection instead of wiping it, plus a matching guard
    (getFieldsKeptByPut) so an approval-gated PUT can't stage the wipe either.

Why it doesn't transfer to 2.0

The production fix's own ADR says so. The new ADR added by this commit
(docs/decisions/2026-11-13-a-put-that-omits-a-service-connection-keeps-the-stored-one.md,
which applied cleanly) states under Consequences:

#32920 shipped in 2.1.0-rc2, so this fix belongs in 2.1 as well.

i.e. the PR's own documentation scopes this fix to main/2.1, and calls out 2.1 as an additional
target — 2.0 is never mentioned. That's consistent with what the code shows:

  • ServiceEntityRepository.getFieldsKeptByPut() overrides a method that does not exist
    anywhere in 2.0's EntityRepository
    (confirmed by repo-wide grep) — the approval-gate
    mechanism this fix patches is a main/2.1-only feature. Porting the override would not compile.
  • The serviceAttributes field/guard this fix also touches does not exist on 2.0's
    ServiceEntityInterface/ServiceEntityRepository at all.
  • The bug being fixed is a regression introduced by Fixes #29494: NPE in ServiceEntityResource.unmask when request has no connection #32920 ("a PUT without connection
    skipped and the update stored the service with none"). 2.0's
    ServiceEntityResource.unmask() never received Fixes #29494: NPE in ServiceEntityResource.unmask when request has no connection #32920's NPE fix — it still calls
    service.getConnection().getConfig() without first checking service.getConnection() != null.
    So on 2.0, a PUT that omits connection throws an NPE (wrapped into
    InvalidServiceConnectionException) in unmask(), before the repository's update logic
    ever runs. The silent-wipe bug this PR fixes cannot occur on 2.0's current code, and applying
    only the repository-level guard would be dead code for the one path that matters (PUT),
    changing nothing observable while claiming to fix a bug that isn't present in this form.
    Making the wipe bug itself reachable on 2.0 would require separately backporting Fixes #29494: NPE in ServiceEntityResource.unmask when request has no connection #32920
    first, which is a different, unrequested change.
  • JsonUtils.toTokenBuffer / overwriteFromTokenBuffer, which the repository fix relies on to
    write a typed connection setter generically, don't exist in 2.0's JsonUtils either
    (2.0 only has a private, monolithic deepCopy).

The bundled test fixes are for main-only tests. Of the 14 integration-test files touched,
9 don't exist on 2.0 at all (IncidentGroupsIT, MergedMetricMigrationTestSupport,
OntologyBulkIT, OntologyDraftQueryIT, NativeOntologyEveryPackInstallIT,
SecretsManagerNullSecretIT, DomainMoveApprovalAuthorizationIT, and the companion ADR
2026-10-29-parent-metric-reads-carry-up-to-25-variant-expressions.md) — they test features
(testCase parentOf incident backfill, ontology packs/releases, the PUT-approval gate) that
were never backported to 2.0. The remaining "both modified" test files
(TeamResourceIT, DomainReassignmentAuthorizationIT, AIContextMcpIT, TaskResourceIT,
DataContractResourceIT, DataProductDeleteRaceIT) conflict because they fix assertions for
main-only authorization/behaviour ADRs (admin-only team roles, JSON-Patch-on-root rejection,
MCP metric-visibility filtering, DataContract import semantics) that likewise don't exist on
2.0's current code, so the "expected" values this PR updates the tests to would be wrong on
2.0.

openmetadata-integration-tests/pom.xml has 17 separate conflict hunks — the surefire/
failsafe lane membership lists have diverged so far between main and 2.0 (because most of
the tests above don't exist on 2.0) that the lane-rebalancing half of this PR has no
meaningful translation here.

Conclusion

Every piece of this PR is either inapplicable (tests/features absent from 2.0) or depends on
a prerequisite (#32920) that was never backported to 2.0, and the PR's own ADR scopes the fix
to main + 2.1 only. Forcing a resolution would mean either shipping code that won't compile
(getFieldsKeptByPut override), or shipping a repository-level guard that fixes nothing
observable on 2.0 because the triggering code path fails earlier with an unrelated NPE.

No files were changed. The cherry-pick has been left in its conflicted, in-progress state for
the workflow to clean up.

resolver run

yan-3005 added a commit that referenced this pull request Nov 16, 2026
…ipe (backport 2.1 #37725) (#37850)

* Fix every integration-test failure on main: 14 stale/broken tests, the service-connection wipe, the parallel-lane timeout (#37725)

* test(it): fix 13 integration tests main has failed since merges skipped ITs

Each test was broken by a later PR whose behaviour change is intended and
recorded, but merged without the integration lanes running:

- IncidentGroupsIT x3, MetricMigrationIT: the 2.1.0 incident backfill now
  requires a testCase parentOf row (#37054); seed it like the write path does.
- TeamResourceIT x2: only admins add team roles (ADR 2026-10-30) and every
  CSV row needs EDIT_ALL on its own team (ADR 2026-11-02).
- DomainMoveApprovalAuthorizationIT, DomainReassignmentAuthorizationIT: a
  JSON Patch on the document root is refused with 400 (ADR 2026-11-03).
- AIContextMcpIT: a metric child the caller cannot view is dropped
  (ADR 2026-10-31); amend the 2026-10-29 record that said otherwise.
- OntologyDraftQueryIT: the release scope needs an active release first.
- TaskResourceIT: field paths end in tags/description (#37051).
- OntologyBulkIT: the two glossaries of one test shared a name.
- DataContractResourceIT x2: unknown imported fields are carried as
  source metadata, and an imported numeric-unsafe rule is stored as an
  embedded custom rule (ADR 2026-11-09).

* test(it): address self-review on the main IT fixes

Tighten the DataContract export assertion to the exporter's message, drop
the TeamResourceIT Javadoc clause the removed step proved, and note in the
metric ADR amendment that the VIEW_ALL expression filter has no caller in
the suite that can reach it.

* fix: keep a service's connection on a PUT that omits it; unblock the IT lanes

- ServiceEntityRepository: a PUT without `connection` now keeps the stored
  connection, as #32920 and issue #29494 intend and
  DatabaseServiceResourceIT.put_updateWithoutConnection_preservesExistingConnection_200
  asserts. Each generated service types its own setter, so the stored
  connection is copied in place through its JSON form. Stored ciphertext and
  vault references pass through storage unchanged
  (ADR 2026-10-29 service-connection-secrets-are-written-only-during-storage).
- NativeOntologyEveryPackInstallIT moves to the global-state lane. Its
  @isolated 11-15 minute install of every pack pushed the parallel lane past
  its 65 minute budget; the global-state lane runs beside it with headroom and
  every pack still installs on each merge (ADR 2026-11-06).
- DataProductDeleteRaceIT matches lock waiters by table on MySQL too: a run
  waited the full minute on a blocked statement that did not carry the data
  product's id.

* fix: an approval-held PUT without a connection must not clear it either

The approval gate staged a PUT that omits `connection` as `connection: null`,
so approving it would still delete the credentials. Services now declare
`connection` and `serviceAttributes` as fields a PUT keeps, matching the
updater. Records the decision and its security reasoning in
ADR 2026-11-13-a-put-that-omits-a-service-connection-keeps-the-stored-one.

SecretsManagerNullSecretIT covers both paths against the in-memory vault: a
direct PUT keeps the connection and its vault secrets, and a held PUT stages
no connection op (fails without the override). DataProductDeleteRaceIT moves
to the serial global-state lane and matches whole table names, so no other
test's lock wait can stand in for its own.

* docs(adr): state what an omitted connection lost before the fix, as tested

A red run of the old updater shows the service row losing its connection
while the vault entries were still present right after the PUT, so the record
no longer claims the vault entries were deleted.

(cherry picked from commit a634c55)

* test(it): read MySQL lock waits from performance_schema in DataProductDeleteRaceIT

On CI the innodb_trx statement text never matched the blocked statements,
so each race step only ended when a request hit MySQL's 50s lock-wait
timeout, and one step outlived the 60s wait. data_lock_waits joined to
data_locks names the table each blocked transaction waits on, independent
of the statement text. Locally the three races now take 1.7-3.8s on MySQL
instead of about 50s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-pr-checks Bypass PR metadata validation check 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