Skip to content

Resolve Hibernate test DTDs from classpath.#11292

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomasterfrom
alexeyk/hibernate-fix-revisited
May 7, 2026
Merged

Resolve Hibernate test DTDs from classpath.#11292
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomasterfrom
alexeyk/hibernate-fix-revisited

Conversation

@AlexeyKuznetsov-DD
Copy link
Copy Markdown
Contributor

What Does This Do

Updates Hibernate instrumentation test hibernate.cfg.xml files to reference the Hibernate configuration DTD via classpath://org/hibernate/hibernate-configuration-3.0.dtd instead of an HTTP URL.

Motivation

Hibernate 3.3 only resolves some DTD system IDs locally. When the resolver does not recognize the HTTP URL, SAX parsing falls back to opening the external DTD over the network, which can hang tests in CI.
Using classpath:// makes DTD resolution explicit and avoids network access during test setup.

Additional Notes

Previous attempt in #11177 failed because older versions of Hibernate require a different URL to fall back to local resolution. Therefore, it’s better to explicitly specify where the DTD should be resolved from.

Verified locally with: ./gradlew :dd-java-agent:instrumentation:hibernate:hibernate-core-3.3:test

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD self-assigned this May 6, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added type: bug Bug report and fix tag: no release notes Changes to exclude from release notes inst: jdbc JDBC instrumentation labels May 6, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD marked this pull request as ready for review May 6, 2026 17:16
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD requested a review from a team as a code owner May 6, 2026 17:16
@AlexeyKuznetsov-DD
Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented May 6, 2026

View all feedbacks in Devflow UI.

2026-05-06 18:01:59 UTC ℹ️ Start processing command /merge


2026-05-06 18:02:02 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-05-06 20:02:26 UTCMergeQueue: The build pipeline has timeout

The merge request has been interrupted because the build 0 took longer than expected. The current limit for the base branch 'master' is 120 minutes.

Possible reasons:

  • some mandatory checkruns are failing:
    • Check pull request labels
    • Check pull requests
    • Enforce Groovy migration

@AlexeyKuznetsov-DD
Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented May 6, 2026

View all feedbacks in Devflow UI.

2026-05-06 20:03:28 UTC ℹ️ Start processing command /merge


2026-05-06 20:03:33 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-05-06 22:04:06 UTCMergeQueue: The build pipeline has timeout

The merge request has been interrupted because the build 0 took longer than expected. The current limit for the base branch 'master' is 120 minutes.

Possible reasons:

  • some mandatory checkruns are failing:
    • Check pull request labels
    • Check pull requests
    • Enforce Groovy migration

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added this pull request to the merge queue May 6, 2026
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented May 6, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented May 6, 2026

View all feedbacks in Devflow UI.

2026-05-06 22:58:50 UTC ℹ️ Start processing command /merge


2026-05-06 22:58:55 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-05-07 00:05:14 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 6, 2026
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit 4ee2247 into master May 7, 2026
576 of 581 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the alexeyk/hibernate-fix-revisited branch May 7, 2026 00:05
@github-actions github-actions Bot added this to the 1.63.0 milestone May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: jdbc JDBC instrumentation tag: no release notes Changes to exclude from release notes type: bug Bug report and fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants