-
Notifications
You must be signed in to change notification settings - Fork 0
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
[PF-2979] Upgrade Janitor to Spring Boot 3 #171
Conversation
implementation group: 'com.google.cloud', name: 'google-cloud-billing', version: '2.3.0' | ||
implementation group: 'com.google.cloud', name: 'google-cloud-core-http', version: '2.8.0' | ||
implementation group: 'com.google.cloud', name: 'google-cloud-pubsub', version: '1.120.0' | ||
implementation group: 'com.google.cloud', name: 'google-cloud-storage', version: '2.9.2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed some Google dependencies that get included through CRL.
private MetricsHelper() {} | ||
|
||
@Component | ||
public class MetricsHelper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored MetricsHelper
to use OpenTelemetry API. Really used RBS as a model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but I'm less savvy with the OTEL stuff!
@@ -131,27 +149,6 @@ dependencies { | |||
implementation('org.bouncycastle:bcpkix-jdk15on:1.70') | |||
implementation('org.bouncycastle:bcprov-jdk15on:1.70') | |||
spotbugs('org.apache.bcel:bcel:6.6.1') | |||
// TODO(PF-2299): Remove these once all dependencies are using >3.0.0. This |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
src/test/java/bio/terra/janitor/app/controller/JanitorApiControllerTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the other reviewers are on top of it
|
https://broadworkbench.atlassian.net/browse/PF-2979
Used DataBiosphere/terra-resource-buffer#285 as a model, which is similar to Janitor.
Upgrades Janitor to Spring Boot 3, along with:
Tested via unit and integration tests. Also ran Janitor locally and manually submitted pubsub messages, and verified resources were deleted.