Skip to content

chore(packaging): refactor dep graph — break broker/engine cycles and verticalize gorgone#3437

Draft
Tpo76 wants to merge 1 commit into
developfrom
MON-196795-separate-gorgone-engine-in-package-dependency
Draft

chore(packaging): refactor dep graph — break broker/engine cycles and verticalize gorgone#3437
Tpo76 wants to merge 1 commit into
developfrom
MON-196795-separate-gorgone-engine-in-package-dependency

Conversation

@Tpo76

@Tpo76 Tpo76 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • centreon-broker: remove circular deps on centreon-clib and centreon-broker-corebroker ships dirs/user, broker-core ships .so libs; one direction (core → broker) is sufficient
  • centreon-engine-daemon: remove circular deps on centreon-engine and centreon-engine-opentelemetryengine is a meta-wrapper above daemon; opentelemetry is an optional plugin declared upstream by centreon-poller
  • centreon-common: remove layer-inversion deps on centreon-broker and centreon-engine-daemoncommon is a real base layer (Linux user + dirs); collect stack deps are re-declared by packages that actually need them
  • centreon-gorgone: add dep on centreon-gorgone-centreon-config — the daemon pulls its own Centreon config
  • centreon-gorgone-centreon-config: remove dep on centreon-gorgone — resolves the config ↔ daemon cycle; config now only depends on centreon-common

Part of MON-196795 — 3-repo PR series (centreon-collect / centreon / centreon-modules).
Architecture: centreon-package-deps-architecture.md

Test plan

  • Build RPM and DEB packages on AlmaLinux 9 and Debian 12
  • dnf install centreon-poller → verify full collect stack is present, cbd is NOT installed
  • dnf install centreon-web → verify no collect component or broker daemon is pulled
  • dnf install centreon (umbrella) → verify non-regression vs current install, cbd present on central
  • Check .github/workflows/ for jobs depending on centreon-common pulling the collect stack

🤖 Generated with Claude Code

- centreon-broker: remove deps on centreon-clib and centreon-broker-core (cycle)
- centreon-engine-daemon: remove deps on centreon-engine and centreon-engine-opentelemetry (cycle)
- centreon-common: remove deps on centreon-broker and centreon-engine-daemon (layer inversion)
- centreon-gorgone: add dep on centreon-gorgone-centreon-config (daemon pulls its config)
- centreon-gorgone-centreon-config: remove dep on centreon-gorgone (inversion resolved)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 36ea2cde-5a54-4b32-8b95-0bb1d9bf8a7c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch MON-196795-separate-gorgone-engine-in-package-dependency

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Tpo76 Tpo76 changed the title chore(packaging): break broker/engine cycles and verticalize gorgone branch chore(packaging): refactor dep graph — break broker/engine cycles and verticalize gorgone Jun 5, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
19 1 0 20 95.00 9m22.398607s

Failed Tests

Name Message ⏱️ Duration Suite
BDBU1 Central Broker not correctly stopped (coredump generated) 73.830 s Sql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant