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

Use SB/SF milestone libs for M1 release #109

Merged
merged 2 commits into from
Sep 13, 2022

Conversation

onobc
Copy link
Collaborator

@onobc onobc commented Sep 13, 2022

  • Made the following TEMPORARY changes to appease downgrading to SB/SF milestones:
    • Removed AsynTaskExecutor.submitCompletable (only in SF snaphot)
    • Revert b188436 (auto-generated auto-config imports file only in SB snapshot)
  • Added SpringBootTest sanity test to catch when auto-config is not in place.

@alpreu @sobychacko

@@ -21,10 +21,10 @@ ext {
protobufJavaVersion = '3.21.5'
pulsarTestcontainersVersion = '1.17.3'
pulsarVersion = '2.10.1'
reactorVersion = '2020.0.17'
springBootVersion = '3.0.0-SNAPSHOT'
reactorVersion = '2022.0.0-M4'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We were really off wrt to the Reactor BOM version (2020?) but all good now. SB and SF both use reactor 3.5.0-M4 and that is contained in 2022-0.0-M4.

@@ -0,0 +1 @@
org.springframework.pulsar.autoconfigure.PulsarAutoConfiguration
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Remove manual import file once we go to SB M5.

Had to revert b188436 (auto-generated auto-config imports file only in SB snapshot)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Created #110 to go to next milestone and undo these temp changes made in this current PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Created #110 to go to next milestone and undo these temp changes made in this current PR.

* @author Chris Bono
*/
@SpringBootTest(classes = SpringPulsarBootTestApp.class)
public class SpringPulsarBootAppSanityTests extends AbstractContainerBaseTests {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This make sure if the auto-config is off again that we catch it up front. I only caught this because I manually ran the sample apps after making the milestone downgrade.

@@ -97,7 +98,7 @@ protected void doStart() {
this.listenerConsumer = new Listener(messageListener);
setRunning(true);
this.startLatch = new CountDownLatch(1);
this.listenerConsumerFuture = consumerExecutor.submitCompletable(this.listenerConsumer);
this.listenerConsumerFuture = consumerExecutor.submit(this.listenerConsumer);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is only in SF SNAPSHOT... will add back in #110

@onobc onobc requested a review from sobychacko September 13, 2022 02:26
- Made the following TEMPORARY changes to appease downgrading to SB/SF milestones:
  - Removed `AsynTaskExecutor.submitCompletable` (only in SF snaphot)
  - Revert b188436 (auto-generated auto-config imports file only in SB snapshot)
- Added SpringBootTest sanity test to catch when auto-config is not in place.
@onobc onobc force-pushed the cbono-use-milestone-libs branch from e14dbb7 to c0078b4 Compare September 13, 2022 02:27
@sobychacko
Copy link
Collaborator

LGTM. Merging.

@sobychacko sobychacko merged commit c59db85 into spring-projects:main Sep 13, 2022
@onobc onobc deleted the cbono-use-milestone-libs branch September 17, 2022 17:15
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