Skip to content

Remove quartz and joda-time dependency from maestro common #110

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

Merged
merged 2 commits into from
Jun 1, 2025

Conversation

jun-he
Copy link
Collaborator

@jun-he jun-he commented Jun 1, 2025

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew build --write-locks to refresh dependencies)
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Remove quartz and joda-time dependency from maestro common.

@jun-he jun-he requested a review from Copilot June 1, 2025 05:29
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes unused quartz and joda‑time dependencies from maestro common and updates various dependency versions while refactoring related code to use java.time.

  • Removed quartz and joda‑time dependencies in build scripts
  • Updated dependency versions in gradle.lockfile and dependencies.gradle
  • Refactored timezone and cron validation logic to use java.time and newer cron-utils APIs

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
maestro-server/gradle.lockfile Updated dependency versions and removed quartz/joda‑time references
maestro-common/* Updated tests and validations to use java.time and new cron-utils APIs
maestro-common/utils/TriggerHelper.java Refactored cron parsing and execution time calculation
maestro-common/build.gradle Removed quartz and joda‑time dependency declarations
maestro-aws/gradle.lockfile Updated AWS dependency versions
dependencies.gradle Updated cron-utils version; joda‑time dependency definition remains
Comments suppressed due to low confidence (2)

dependencies.gradle:13

  • Since the joda‑time dependency has been removed from maestro common, consider also removing its definition here to keep the dependencies file clean.
    jodaTimeDep = 'joda-time:joda-time:2.10.+'

maestro-common/src/test/java/com/netflix/maestro/validations/TimeZoneConstraintTest.java:54

  • [nitpick] Consider renaming the test method to something more descriptive (e.g., testEmptyTimezone) to clearly indicate the scenario being tested.
  public void isEmpty() {

DateTimeZone.forID(timezone);
} catch (IllegalArgumentException e) {
ZoneId.of(timezone);
} catch (Exception e) {
Copy link
Preview

Copilot AI Jun 1, 2025

Choose a reason for hiding this comment

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

Consider catching a more specific exception (e.g., DateTimeException) instead of Exception to avoid masking unrelated errors.

Suggested change
} catch (Exception e) {
} catch (DateTimeException e) {

Copilot uses AI. Check for mistakes.

@jun-he jun-he merged commit 5d653d5 into Netflix:main Jun 1, 2025
1 check passed
@jun-he jun-he deleted the jun/clean-common branch June 1, 2025 05:36
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.

1 participant