Skip to content

Fix the nightly DataProductResourceIT forged-FQN assertion - #39589

Merged
mohityadav766 merged 1 commit into
mainfrom
fix/nightly-dataproduct-forged-fqn-it
Dec 2, 2026
Merged

mohityadav766 merged 1 commit into
mainfrom
fix/nightly-dataproduct-forged-fqn-it

Conversation

@mohityadav766

Copy link
Copy Markdown
Member

Describe your changes:

Fixes the one Java failure in the parallel IT lanes of the nightly. It fails on all three setups, in both the scheduled run 46786795034 and the manual re-run 46857713481.

DataProductResourceIT.test_forgedDomainFqnCannotBypassTheDomainRule came in with #39252, whose Java IT lanes were skipped, so the nightly was the first run of it. The server rejects the forged FQN correctly with a 400. But EntityServiceBase.update wraps every failure in OpenMetadataException, so assertThrows(InvalidRequestException.class, …) could never match.

The test now asserts the wrapped OpenMetadataException, checks that its cause is the InvalidRequestException, and keeps the message check. EventSubscriptionResourceIT asserts a rejected update the same way.

The nightly's other Java reds need no code change here. The global-state reds were fixed by #39394. Sonar's Not authorized comes from a stale SONAR_TOKEN secret.

Type of change:

  • Bug fix

Tests:

Integration tests

  • DataProductResourceIT#test_forgedDomainFqnCannotBypassTheDomainRule passes locally on MySQL + Elasticsearch. The server log shows the forged PATCH rejected with 400.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> (no tracking issue)
  • For JSON Schema changes: N/A, no schema changes.

🤖 Generated with Claude Code

EntityServiceBase.update wraps every failure in OpenMetadataException, so
the server's 400 InvalidRequestException is on the cause. The test asserted
the unwrapped type and failed on every parallel lane of the nightly; it was
added in #39252, whose Java IT lanes were skipped.
@github-actions

github-actions Bot commented Dec 2, 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.

@gitar-bot

gitar-bot Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

This changes only an integration-test assertion to verify the wrapped 400 cause; production behavior and interfaces remain unchanged.

Updates the DataProductResourceIT.test_forgedDomainFqnCannotBypassTheDomainRule assertion to expect the OpenMetadataException wrapper that EntityServiceBase.update throws, checking that its cause is the InvalidRequestException and keeping the message check. No 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

@mohityadav766
mohityadav766 merged commit 456e505 into main Dec 2, 2026
19 of 20 checks passed
@mohityadav766
mohityadav766 deleted the fix/nightly-dataproduct-forged-fqn-it branch December 2, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants