feat: add log deployments and changes pattern (#2696) by arnabnandy7 · Pull Request #3606 · iluwatar/java-design-patterns · GitHub
Skip to content

feat: add log deployments and changes pattern (#2696) - #3606

Open
arnabnandy7 wants to merge 2 commits into
iluwatar:masterfrom
arnabnandy7:feature/logDeploymentsAndChanges
Open

arnabnandy7 wants to merge 2 commits into
iluwatar:masterfrom
arnabnandy7:feature/logDeploymentsAndChanges

Conversation

@arnabnandy7

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds the Microservices Log Deployments and Changes pattern with centralized event history, automatic deployment and change outcome logging, a console timeline, and configurable alert filtering.

Includes documentation, a class diagram, and a manual CI workflow demonstrating simulated deployments and changes. Follows the existing log-aggregation module structure.

Validated with Java 21: all 5 tests pass, and Spotless formatting checks pass.

Fixes #2696

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚨 Pull request needs attention.

Review Summary

Commits Considered (1)
  • 9b61c6a: feat: add log deployments and changes pattern (#2696)

Signed-off-by: Arnab Nandy arnab_nandy7@yahoo.com

Files Processed (13)
  • .github/workflows/log-deployments-and-changes.yml (1 hunk)
  • microservices-log-deployments-and-changes/README.md (1 hunk)
  • microservices-log-deployments-and-changes/pom.xml (1 hunk)
  • microservices-log-deployments-and-changes/src/main/java/com/iluwatar/logdeploymentsandchanges/App.java (1 hunk)
  • microservices-log-deployments-and-changes/src/main/java/com/iluwatar/logdeploymentsandchanges/CentralLogStore.java (1 hunk)
  • microservices-log-deployments-and-changes/src/main/java/com/iluwatar/logdeploymentsandchanges/ChangeEvent.java (1 hunk)
  • microservices-log-deployments-and-changes/src/main/java/com/iluwatar/logdeploymentsandchanges/ChangeType.java (1 hunk)
  • microservices-log-deployments-and-changes/src/main/java/com/iluwatar/logdeploymentsandchanges/DeploymentPipeline.java (1 hunk)
  • microservices-log-deployments-and-changes/src/main/java/com/iluwatar/logdeploymentsandchanges/LogMonitor.java (1 hunk)
  • microservices-log-deployments-and-changes/src/test/java/com/iluwatar/logdeploymentsandchanges/CentralLogStoreTest.java (1 hunk)
  • microservices-log-deployments-and-changes/src/test/java/com/iluwatar/logdeploymentsandchanges/DeploymentPipelineTest.java (1 hunk)
  • microservices-log-deployments-and-changes/src/test/java/com/iluwatar/logdeploymentsandchanges/LogMonitorTest.java (1 hunk)
  • pom.xml (1 hunk)
Actionable Comments (3)
  • microservices-log-deployments-and-changes/src/test/java/com/iluwatar/logdeploymentsandchanges/DeploymentPipelineTest.java [98-98]

    possible bug: "Invalid List API usage in test"

  • microservices-log-deployments-and-changes/src/test/java/com/iluwatar/logdeploymentsandchanges/LogMonitorTest.java [78-78]

    possible bug: "Invalid List API usage in test"

  • microservices-log-deployments-and-changes/pom.xml [50-50]

    best_practice: "Missing JUnit API dependency"

Skipped Comments (0)

Comment thread microservices-log-deployments-and-changes/pom.xml
@codecov

codecov Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.82%. Comparing base (41625d8) to head (e7d5738).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
...ava/com/iluwatar/logdeploymentsandchanges/App.java 81.81% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3606      +/-   ##
============================================
+ Coverage     83.79%   83.82%   +0.02%     
- Complexity     4277     4297      +20     
============================================
  Files          1121     1127       +6     
  Lines         15144    15204      +60     
  Branches        723      724       +1     
============================================
+ Hits          12690    12744      +54     
- Misses         2159     2164       +5     
- Partials        295      296       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ LGTM!

Review Summary

Commits Considered (1)
  • e7d5738: test: cover deployment demo timeline and failure alerts (#2696)

Signed-off-by: Arnab Nandy arnab_nandy7@yahoo.com

Files Processed (1)
  • microservices-log-deployments-and-changes/src/test/java/com/iluwatar/logdeploymentsandchanges/AppTest.java (1 hunk)
Actionable Comments (0)
Skipped Comments (3)
  • microservices-log-deployments-and-changes/src/test/java/com/iluwatar/logdeploymentsandchanges/AppTest.java [61-61]

    maintainability: "Deterministic actor for timeline expectations"

  • microservices-log-deployments-and-changes/src/test/java/com/iluwatar/logdeploymentsandchanges/AppTest.java [56-56]

    best_practice: "Robustness of timeline detection"

  • microservices-log-deployments-and-changes/src/test/java/com/iluwatar/logdeploymentsandchanges/AppTest.java [89-93]

    maintainability: "Fragile assertion of warning messages"

This branch has not been deployed

No deployments
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.

Microservice pattern: Log deployments and changes

1 participant