Skip to content

Conversation

@billrich2001
Copy link
Contributor

Fixes #2735.

What changed:

  • Resolve TestWorkflowEnvironmentAdapter by type, fallback to correct bean name
  • Add regression test ensuring non-root namespaces use in-memory env even with connection.target set

Why:

  • Non-root namespaces were connecting to dev server due to a bean name/type mismatch in NonRootBeanPostProcessor.

Breaking changes:

  • None. Internal autoconfiguration fix only.

Tests:

  • New test NonRootNamespacesUseTestServerTest mirrors the minimal repro and validates health against the in-memory test server.

…\nFixes #2735.\n\n- Resolve TestWorkflowEnvironmentAdapter by type, fallback to correct bean name\n- Add regression test ensuring non-root namespaces use in-memory env even with connection.target set\n- Format code via spotlessApply
@billrich2001
Copy link
Contributor Author

Note, I used AI to write the test, I told it to base the test off of sample

@billrich2001 billrich2001 marked this pull request as ready for review November 24, 2025 19:08
@billrich2001 billrich2001 requested a review from a team as a code owner November 24, 2025 19:08
"spring.temporal.test-server.enabled=true",
"spring.temporal.connection.target=127.0.0.1:7233",
"spring.temporal.start-workers=false",
"spring.temporal.namespaces[0].namespace=pomegranate",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why "pomegranate"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol, the min reproducible sample used it and I thought it was good ¯_(ツ)_/¯ happy to change it to something else

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah other tests used more boring names like namespace0. Not something we need to be consistent with.

@billrich2001 billrich2001 merged commit 0bfa910 into master Nov 26, 2025
17 checks passed
@billrich2001 billrich2001 deleted the fix/2735-non-root-test-server branch November 26, 2025 17:39
@cursor cursor bot mentioned this pull request Dec 3, 2025
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.

Non-root namespaces should be able to use the in-memory test server

3 participants