Skip to content

Conversation

@AntoineLimouzinRTE
Copy link
Contributor

@AntoineLimouzinRTE AntoineLimouzinRTE commented Feb 3, 2026

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem ? If so, link to this issue using '#XXX' and skip the rest

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:

(if any of the questions/checkboxes don't apply, please delete them entirely)

Summary by CodeRabbit

Release Notes

  • Documentation

    • Updated deployment examples to reference CSE IMPORT EC instead of CSE IMPORT D2CC.
    • Refined Kubernetes secret creation documentation.
  • Bug Fixes

    • Simplified routing configurations for improved stability.
  • Chores

    • Removed CSE IMPORT D2CC and CSE IMPORT IDCC functionality and all associated deployment configurations.
    • Updated gateway routes to exclude removed import processes.
    • Cleaned up database initialization and environment configurations.

@coderabbitai
Copy link

coderabbitai bot commented Feb 3, 2026

Walkthrough

This pull request systematically removes all CSE IMPORT D2CC and CSE IMPORT IDCC service configurations, including Docker Compose definitions, Kubernetes manifests across multiple bases and overlays, Nginx routing rules, gateway route definitions, database initialization scripts, and associated KEDA autoscaling definitions.

Changes

Cohort / File(s) Summary
Docker Compose Common Configuration
docker-compose/common/config/apps-metadata.json, docker-compose/common/config/init.sql
Removed two CSE IMPORT app entries (D2CC and IDCC) and deleted database/user initialization blocks for cse-import-d2cc-tasks and cse-import-idcc-tasks.
Docker Compose CSE IMPORT D2CC
docker-compose/cse-import-d2cc/docker-compose.yml, docker-compose/cse-import-d2cc/config/*.yml
Removed entire docker-compose service definitions and all application configuration files (adapter, data-bridge, exporter, job-launcher, rao-logs-dispatcher, runner, task-manager), plus process metadata.
Docker Compose CSE IMPORT IDCC
docker-compose/cse-import-idcc/docker-compose.yml, docker-compose/cse-import-idcc/config/*.yml
Removed complete docker-compose service stack and configuration files mirroring D2CC structure (adapter, data-bridge, exporter, job-launcher, rao-logs-dispatcher, runner, task-manager), plus metadata.
Nginx Configuration
docker-compose/nginx-dev/nginx-cse-import-d2cc.conf, docker-compose/nginx-dev/nginx-cse-import-idcc.conf, docker-compose/nginx-dev/nginx.conf, docker-compose/nginx/nginx.conf, docker-compose/nginx-dev/docker-compose.yml
Deleted dedicated Nginx config files for both imports; removed all upstream blocks and location directives for CSE IMPORT D2CC/IDCC routes; updated dev nginx to reference core-valid-day-ahead-conservative config.
Gateway Configuration
configuration/gridcapa-gateway-johndoe-configmap.yaml, k8s/bases/common/gridcapa-gateway-configmap.yaml
Removed all route definitions for CSE IMPORT D2CC/IDCC imports from gateway ConfigMaps, including StripPrefix and security filters.
Kubernetes Bases CSE IMPORT D2CC
k8s/bases/cse-import-d2cc/*
Deleted 17 manifest files including deployments, services, configmaps for all components (adapter, app, data-bridge, exporter, job-launcher, rao-logs-dispatcher, runner, task-manager), minio-purge cronjob, and kustomization.
Kubernetes Bases CSE IMPORT IDCC
k8s/bases/cse-import-idcc/*
Deleted 17 manifest files mirroring D2CC structure: deployments, services, configmaps, minio-purge cronjob, and kustomization for all service components.
Kubernetes Overlays Azure Dev/Test
k8s/overlays/azure/dev/*.yaml, k8s/overlays/azure/test/*.yaml, k8s/overlays/azure/dev-iso-coreso-prod/ingress-gridcapa.yaml
Removed CSE IMPORT D2CC/IDCC app IDP settings configmaps; deleted ingress path rules for import routes; removed base/overlay resource imports from kustomization; removed PostgreSQL environment variables for import credentials.
Kubernetes Overlays Azure KEDA Scaling
k8s/overlays/azure/test/keda/cse-import-d2cc-scale.yaml, k8s/overlays/azure/test/keda/cse-import-idcc-scale.yaml
Deleted 16 KEDA ScaledObject definitions (8 per import variant) for autoscaling all service components; removed references from kustomization.
Kubernetes Overlays Azure Persistent Storage
k8s/overlays/azure/azure-databridge-claims/cse-import-d2cc/*, k8s/overlays/azure/azure-databridge-claims/cse-import-idcc/*
Removed PersistentVolumeClaim manifests and kustomization files for data-bridge storage (144M for D2CC, 208M for IDCC).
Kubernetes Overlays Coreso
k8s/overlays/coreso/prod/ingress-*.yaml, k8s/overlays/coreso/coreso-databridge-claims/cse-import-*/*, k8s/overlays/coreso/prod/kustomization.yaml
Removed Coreso production ingress rules and middlewares for CSE IMPORT routes; deleted PVC manifests and kustomization for both imports; removed base/overlay imports and deployment patches.
Core Valid Day Ahead Conservative
docker-compose/core-valid-day-ahead-conservative/config/core-valid-day-ahead-conservative-data-bridge-application.yml, docker-compose/core-valid-day-ahead-conservative/config/data.sql
Modified VERTICES file-regex pattern from fixed substring to wildcard; updated PREVENTIVE IVA MARGIN parameter value from 30 to 0.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 The import duo fades away,
D2CC and IDCC had their day,
We hop through configs, routes now clear,
A simpler grid-path reappears!
No more services in the warren to roam,
Just core and export, we're heading home. 🏡

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Remove unused processes' is fully related to the main objective of the changeset, which involves systematically removing CSE IMPORT D2CC and CSE IMPORT IDCC process configurations across Docker Compose, Kubernetes, and Nginx files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch remove_unused_processes

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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 6

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
README.md (1)

57-58: ⚠️ Potential issue | 🟡 Minor

Documentation still references removed process URLs.

Line 58 still lists http://localhost/cse/import/d2cc/ and http://localhost/cse/import/idcc/ in the available environment URLs, but these processes have been removed per this PR. Consider removing these URLs from the list for consistency.

docker-compose/nginx/nginx.conf (1)

408-433: ⚠️ Potential issue | 🔴 Critical

Add missing CSE EXPORT D2CC upstream definitions.

The location blocks at lines 408–433 reference the following upstreams that are not defined in the configuration file:

  • cse-export-d2cc-gridcapa-upstream (lines 420)
  • cse-export-d2cc-task-manager-server-upstream (lines 423, 429)
  • cse-export-d2cc-job-launcher-server-upstream (line 432)

This will cause nginx to fail configuration validation and refuse to start. Either add the missing upstream definitions or remove the CSE EXPORT D2CC location blocks if this section is being deprecated.

🤖 Fix all issues with AI agents
In `@docker-compose/core-valid-day-ahead-conservative/docker-compose.yml`:
- Around line 47-48: The docker-compose service
core-valid-day-ahead-conservative-adapter is pointing to a local test image
(image: test_iva_adapter:latest); update the image entry in docker-compose.yml
to the official registry image (replace test_iva_adapter:latest with the proper
farao/gridcapa-... image name, e.g. farao/gridcapa-adapter or the specific
farao/gridcapa-<adapter>-<tag> used by other services) so the service uses the
canonical farao/gridcapa image and appropriate tag.
- Around line 73-74: The docker-compose service
core-valid-day-ahead-conservative-post-processing currently references a local
test image `test_iva_postproc:latest`; change that image back to the official
registry image (e.g. replace `test_iva_postproc:latest` with the appropriate
`farao/gridcapa-...` image such as `farao/gridcapa-postproc:latest`) so the
service uses the proper `farao/gridcapa-*` image instead of a local test tag.
- Around line 35-36: The docker-compose service
core-valid-day-ahead-conservative-runner is pointing to a local test image
test_iva_app:latest; change the image reference to the official registry naming
used in this repo (replace test_iva_app:latest with the proper farao/gridcapa-*
image for this service, e.g. the matching
farao/gridcapa-core-valid-day-ahead-conservative:latest or the project's
established tag), ensuring the service name
core-valid-day-ahead-conservative-runner uses the canonical farao/gridcapa image
instead of the local test image.
- Around line 18-19: Replace the local test image reference with the canonical
registry image: locate the Docker Compose service named
core-valid-day-ahead-conservative-task-manager and update its image value
(currently test_iva_taskmgr:latest) to the standard repository image (e.g., the
expected farao/gridcapa-* image used across the deployment) so CI/CD and other
developers can pull it; ensure the image tag matches the project's naming
convention and does not point to a local-only test image.

In `@docker-compose/swe-d2cc/docker-compose.yml`:
- Around line 47-48: The docker-compose service swe-d2cc-runner is using an
unqualified local image name "test_logs:latest"; replace it with the canonical
registry image used by other SWE services by setting the image field for
swe-d2cc-runner to "farao/gridcapa-swe-runner:latest" so CI and shared
environments can pull it (update the image value for the swe-d2cc-runner
service).

In `@k8s/overlays/azure/test/kustomization.yaml`:
- Around line 143-146: The YAML block for the swe-idcc runner has the `value`
line over-indented which will break parsing if uncommented; update the commented
block for the container/env under the `swe-idcc-runner` entry so that the `-
name: EXPORT_FAILED_NETWORK` and its `value: "true"` are aligned as sibling
entries under `env` (i.e., reduce the `value` line indentation to match the `-
name:` line), ensuring the `swe-idcc-runner`, `env`, `- name:
EXPORT_FAILED_NETWORK`, and `value` tokens are properly nested.
🧹 Nitpick comments (2)
docker-compose/core-valid-day-ahead-conservative/config/core-valid-day-ahead-conservative-data-bridge-application.yml (1)

14-15: Regex pattern relaxed for VERTICES files - verify intended behavior.

The pattern F320-(.*)-v uses a greedy (.*) that will match any characters between F320- and the last -v occurrence. If filenames could contain multiple -v substrings, this might match more than intended.

Consider using a non-greedy quantifier (.*?) or a more restrictive character class like ([A-Z_]+) if only specific characters are expected between F320- and -v.

docker-compose/nginx/nginx.conf (1)

540-540: Minor: Stray comment character and inconsistent formatting.

Line 540 has an extra # with excessive whitespace: # # CSE IMPORT EC IDCC section. This should match the formatting of other section comments.

✨ Suggested fix
-#       # CSE IMPORT EC IDCC section
+        # CSE IMPORT EC IDCC section

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