Skip to content

Conversation

MarceloRobert
Copy link
Collaborator

Changes

  • Refactored notification conditions so that it only runs on production or dev environments instead of only on staging;
  • Removed now unecessary is_production_instance function;
  • Refactored getting email env vars in settings and added them to the example env;
  • Slightly increased the default timeout for both databases.

How to test

The changes are mostly code-only, but you can test them by running the notifications command.

- Refactored notification conditions so that it only runs on production or dev environments instead of only on staging;
- Removed now unecessary is_production_instance function;
- Refactored getting email env vars in settings and added them to the example env;
- Slightly increased the default timeout for both databases.
Copy link
Collaborator

@LucasSantos27 LucasSantos27 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -202,7 +202,7 @@ def get_json_env_var(name, default):
"PASSWORD": "kernelci-db-password",
"HOST": "127.0.0.1",
"OPTIONS": {
"connect_timeout": 5,
"connect_timeout": 16,
Copy link
Collaborator

Choose a reason for hiding this comment

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

why 16?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

its the DB_DEFAULT_TIMEOUT on entrypoint.sh

Copy link
Member

@nuclearcat nuclearcat left a comment

Choose a reason for hiding this comment

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

Looks good, thank you

@MarceloRobert MarceloRobert merged commit 21b4b75 into main Sep 16, 2025
7 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.

3 participants