Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all global state from setProperty #1138

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

artursouza
Copy link
Member

Description

Remove all global state in from setProperty
Added properties to ActorClient
Fixed constructor visibility for ActorClient

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: N/A

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@artursouza artursouza force-pushed the stable_tests branch 4 times, most recently from 1d0cd03 to bb3c173 Compare October 1, 2024 07:17
Copy link
Contributor

@artur-ciocanu artur-ciocanu left a comment

Choose a reason for hiding this comment

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

@artursouza the PR looks great! I have left a few tiny comments regarding switching to use Map.of() instead of relying on Collections.unmodifiableMap().

@artursouza artursouza marked this pull request as ready for review October 1, 2024 07:46
@artursouza artursouza requested review from a team as code owners October 1, 2024 07:46
@artur-ciocanu
Copy link
Contributor

@artursouza you might want to re-trigger the build. It seems that there is race condition between Testcontainers and Spring Boot Test Context for a particular test.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
@artur-ciocanu
Copy link
Contributor

@cicoyle we need your approval again since the PR has changed. Thank you!

@artur-ciocanu
Copy link
Contributor

@artursouza it's not critical, but there a few more places in the PR where I mentioned that we could use Map.of().

@artursouza artursouza force-pushed the stable_tests branch 2 times, most recently from 20bf045 to e4a373c Compare October 2, 2024 22:05
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
@artursouza artursouza changed the title Remove all global state in from setProperty Remove all global state from setProperty Oct 2, 2024
@@ -86,6 +87,7 @@ public void beforeEach() throws InterruptedException {
}

@Test
@Disabled("Test is flaky due to global state in the spring test application.")
Copy link
Member Author

Choose a reason for hiding this comment

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

@salaboy This test is flaky, it has global state for setting properties somewhere. I disabled it until we find it. Can you help in a new PR after this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Created a tracking issue.

@artursouza
Copy link
Member Author

@artursouza it's not critical, but there a few more places in the PR where I mentioned that we could use Map.of().

Done

cicoyle
cicoyle previously approved these changes Oct 2, 2024
Copy link
Contributor

@cicoyle cicoyle left a comment

Choose a reason for hiding this comment

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

lgtm

cicoyle
cicoyle previously approved these changes Oct 2, 2024
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
@artursouza artursouza merged commit 7490434 into dapr:master Oct 2, 2024
6 of 7 checks passed
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Oct 4, 2024
* Remove all global state in from setProperty

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* use Map.of

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Remove dependency that is not needed.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Oct 4, 2024
* Remove all global state in from setProperty

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* use Map.of

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Remove dependency that is not needed.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Oct 4, 2024
* Remove all global state in from setProperty

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* use Map.of

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Remove dependency that is not needed.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Oct 4, 2024
* Remove all global state in from setProperty

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* use Map.of

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Remove dependency that is not needed.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Oct 4, 2024
* Remove all global state in from setProperty

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* use Map.of

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Remove dependency that is not needed.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Oct 4, 2024
* Remove all global state in from setProperty

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* use Map.of

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Remove dependency that is not needed.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
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.

3 participants