Commit e1d3fc6
authored
Nats web - core seperation (#293)
* docs: create release notes for 4.0.0-RC4
Release notes cover:
- NATS JetStream consumer configuration improvements
- Queue name validation for NATS backend
- QueueType multi-backend architecture
- Enhanced public API documentation
- Bug fixes and maintenance updates
Assisted-By: Claude Code
* refactor: move service interfaces from rqueue-web to rqueue-core web package
Move backend-agnostic service interface definitions to rqueue-core/src/main/java/com/github/sonus21/rqueue/web/, eliminating unnecessary coupling between backend implementations (rqueue-redis, rqueue-nats) and the dashboard layer (rqueue-web).
Service interfaces moved:
- RqueueSystemManagerService
- RqueueQDetailService
- RqueueJobService
- RqueueDashboardChartService
- RqueueViewControllerService
- RqueueJobMetricsAggregatorService
The interfaces are now in rqueue-core's web package, allowing backend modules to depend only on rqueue-core instead of the full web layer. The rqueue-web module continues to depend on rqueue-core and hosts the implementations (in the .service.impl package).
This architectural refactoring aligns with the multi-backend SPI framework by ensuring backend implementations are independent of UI layers. Spring integration modules (rqueue-spring, rqueue-spring-boot-starter) continue to depend on rqueue-web for controller and template resources.
Assisted-By: Claude Code
* refactor: reorganize service interfaces and utilities in rqueue-core and rqueue-web
Move backend-agnostic service interfaces to rqueue-core, ensuring clean separation between core abstractions and the dashboard UI layer:
**Service Interfaces Relocated:**
- Dashboard services → rqueue-core/src/main/java/com/github/sonus21/rqueue/web/
- RqueueSystemManagerService
- RqueueQDetailService
- RqueueJobService
- RqueueDashboardChartService
- RqueueViewControllerService
- Metrics service → rqueue-core/src/main/java/com/github/sonus21/rqueue/metrics/
- RqueueMetricsAggregatorService (renamed from RqueueJobMetricsAggregatorService)
**Package Organization Improvements:**
- Move Pebble template functions from rqueue-web/utils/pebble/ to rqueue-web/web/pebble/
- DateTimeFunction, DeadLetterQueuesFunction, DefaultFunction, DurationFunction
- ReadableDateTimeFunction, ResourceLoader, RqueuePebbleExtension
- Aligns template utilities with web package structure
**Impact:**
- Backend modules (rqueue-redis, rqueue-nats) now depend only on rqueue-core
- rqueue-web continues to depend on rqueue-core and hosts service implementations
- Spring integration modules (rqueue-spring, rqueue-spring-boot-starter) keep rqueue-web dependency
- Improved package organization with utilities co-located with the packages they serve
Assisted-By: Claude Code
* refactor: remove duplicate metrics aggregator service from rqueue-web
Clean up duplicate RqueueJobMetricsAggregatorService from rqueue-web/src/main/java after moving the interface to rqueue-core/metrics as RqueueMetricsAggregatorService.
Move the test RqueueTaskMetricsAggregatorServiceTest from rqueue-web to rqueue-core/src/test/java/com/github/sonus21/rqueue/metrics/, updating package declarations and class references to use the renamed RqueueMetricsAggregatorService.
This ensures a single source of truth for the metrics aggregator interface in the core module.
Assisted-By: Claude Code
* refactor: remove service interface files from rqueue-web
Remove duplicate service interface definitions from rqueue-web/src/main/java/com/github/sonus21/rqueue/web/service/ since they now live in rqueue-core:
- RqueueDashboardChartService
- RqueueJobService
- RqueueQDetailService
- RqueueSystemManagerService
- RqueueViewControllerService
The implementation classes in rqueue-web/service/impl remain unchanged, now implementing interfaces from rqueue-core. This completes the architectural refactoring with a single source of truth for service interfaces in rqueue-core.
Assisted-By: Claude Code
* refactor: remove release notes file
Delete RELEASE_NOTES.md - release notes will be managed elsewhere.
Assisted-By: Claude Code
* fix: update test imports for service interfaces moved to rqueue-core
Add imports for service interfaces that were moved from rqueue-web to rqueue-core/web package:
- RqueueDashboardChartService
- RqueueJobService
- RqueueQDetailService
- RqueueSystemManagerService
- RqueueViewControllerService
Update test files in rqueue-web/src/test/java to import these interfaces from rqueue-core.web instead of local package.
Assisted-By: Claude Code
* fix: update test imports for service interfaces moved to rqueue-core
Add imports for service interfaces that were moved from rqueue-web to rqueue-core/web package in test files that reference them:
- RqueueDashboardChartService
- RqueueJobService
- RqueueQDetailService
- RqueueSystemManagerService
- RqueueViewControllerService
Update test files in rqueue-web/src/test/java to import these interfaces from rqueue-core.web instead of local package.
Assisted-By: Claude Code
* ci: add coveralls integration to push coverage reports
Add Coveralls step to CI workflow to push JaCoCo coverage reports. This was missing from the coverage_report job, causing coverage data to not be uploaded to Coveralls.
The step downloads merged coverage report and pushes it to Coveralls using the GitHub token.
Assisted-By: Claude Code
* ci: add conditional check and verbose logging for coveralls step
- Only run coverallsJacoco if COVERALLS_REPO_TOKEN is set
- Add --info flag for detailed logging to diagnose issues
Assisted-By: Claude Code
* ci: fail if COVERALLS_REPO_TOKEN is not set and add verbose logging
Ensures the build fails if the token is missing so we can diagnose
why coverage is not being sent to Coveralls.
Assisted-By: Claude Code
* ci: add debug logging for coveralls integration
Log coveralls requests and errors to diagnose why coverage is not being sent.
Assisted-By: Claude Code
* ci: add environment variables for coveralls github actions detection
Provide CI metadata (CI_NAME, CI_BUILD_NUMBER, CI_BRANCH, etc.) so the
coveralls plugin can properly identify the build context and send coverage
data with correct metadata to Coveralls API.
Assisted-By: Claude Code
* ci: enable coveralls debug output to diagnose request payload
Write coveralls request JSON to file for debugging and display it in CI
logs so we can see exactly what data is being sent to Coveralls API.
Assisted-By: Claude Code
* ci: fix coveralls integration for github actions
The nbaztec coveralls-jacoco plugin auto-detects GitHub Actions and parses
PR/branch info from GitHub's environment variables. Only need to set CI_BRANCH
since GitHub_ACTIONS and GITHUB_TOKEN are auto-provided.
Assisted-By: Claude Code
* fix: use github.head_ref for CI_BRANCH in Coveralls integration
For GitHub Actions pull requests, github.ref_name returns the PR reference
(e.g., "293/merge") instead of the actual branch name. The coveralls-jacoco
plugin uses CI_BRANCH to identify the branch in coverage reports. By using
github.head_ref (which provides the branch name for PRs) with github.ref_name
as a fallback (for push events), we ensure the correct branch is reported.
Assisted-By: Claude Code
* ci: wire GITHUB_TOKEN + BUILD_NUMBER for Coveralls (github-actions)
The nbaztec coveralls-jacoco v1.2.20 plugin has a quirky GitHub Actions
detection path. Reading its source (ServiceInfoParser.kt):
- If GITHUB_ACTIONS is set but GITHUB_TOKEN is not, it emits
service_name="github-actions" — which the Coveralls API does not
recognize as a first-class service, so PR comments and branch
correlation silently no-op.
- When BOTH GITHUB_ACTIONS and GITHUB_TOKEN are set, it switches to
service_name="github" (the canonical name).
- service_job_id is read from BUILD_NUMBER (Jenkins-style), not
GITHUB_RUN_ID — so we map github.run_id onto BUILD_NUMBER explicitly.
- Branch is read from CI_BRANCH; github.head_ref is used so PR builds
report the source branch instead of "<num>/merge".
Verified locally by running coverallsJacoco with the production token
plus a CircleCI-shaped env block (the plugin's CircleCI branch is the
best-supported one) — Coveralls returned OK and the build appeared in
the dashboard.
Also re-adds coverallsRequest = file(...) so the request payload is
written to build/coveralls-request.json. The workflow's "Push coverage
to Coveralls" step already cats this file, which makes future
regressions diagnosable from the CI log alone.
Assisted-By: Claude Code1 parent acad531 commit e1d3fc6
35 files changed
Lines changed: 75 additions & 56 deletions
File tree
- .github/workflows
- rqueue-core/src
- main/java/com/github/sonus21/rqueue
- metrics
- web
- test/java/com/github/sonus21/rqueue/metrics
- rqueue-nats
- rqueue-redis
- rqueue-web/src
- main/java/com/github/sonus21/rqueue/web
- config
- controller
- pebble
- service
- test/java/com/github/sonus21/rqueue
- utils/pebble
- web
- service
- view
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
0 commit comments