Skip to content

Conversation

matbmoser
Copy link
Contributor

@matbmoser matbmoser commented Sep 29, 2025

WHAT

Added new rc2 release with hotfixes

This pull request introduces several important updates to the ichub-backend project, focusing on improved configuration, enhanced error handling and startup diagnostics, database connection robustness, and reliability improvements for connector and DTR (Digital Twin Registry) modules. The configuration now uses production endpoints and credentials, and the codebase includes more robust error handling for startup failures, especially related to database and IAM connectivity. Additionally, the DTR consumer submodel discovery logic now supports connection retries, and the project dependencies have been updated.

Configuration and Security Updates:

  • Added a timeout parameter for database connections in configuration.yml for improved reliability.

Startup and Error Handling Improvements:

  • Added comprehensive startup error detection and logging for connector and DTR modules in connector.py, dtr.py, and surfaced these errors in the FastAPI runtime. The application now logs critical errors if modules fail to initialize due to configuration or connectivity issues, and warns the user at startup if the system is not fully operational. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Database Connection Robustness:

  • Improved database connection logic in database.py by adding connection timeouts, better logging, and error state tracking to ensure the application is aware of database availability issues.

DTR Consumer Reliability:

  • Enhanced the DTR consumer's discover_submodel method to support connection retries, improving resilience against temporary connector failures. The method now takes a max_retries parameter and attempts to re-establish connections before failing. [1] [2] [3] [4]

Dependency and Version Updates:

  • Upgraded tractusx_sdk dependency from 0.4.1 to 0.5.0 in requirements.txt, and updated the application version to v0.2.0 in the startup banner. [1] [2]

WHY

Briefly state why the change was necessary.

FURTHER NOTES

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Closes # <-- insert Issue number if one exists

Copy link
Contributor

@CDiezRodriguez CDiezRodriguez left a comment

Choose a reason for hiding this comment

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

Amazing work, @matbmoser!

@matbmoser matbmoser changed the title feat: prepared new pre release rc2 feat: prepared release v0.2.0 + fixed important errors Sep 29, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
11.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@matbmoser matbmoser merged commit 96c039c into main Sep 29, 2025
9 of 10 checks passed
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.

2 participants