Merge SKALE active and passive nodes pipelines #954
+31
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes to the node CLI, primarily focused on improving host preparation and passive node operations, as well as cleaning up unused configuration paths. The most important updates include adding host environment checks during passive node initialization and update, adjusting file ownership for Redis data, and refactoring how compose file paths are determined for different node types.
Passive Node Operations and Host Checks:
init_passiveandupdate_passivefunctions, ensuring that any failed checks are reported before proceeding. [1] [2]Host Preparation Improvements:
prepare_hostto change ownership of the Redis data directory usingchown, improving permission handling for Redis operations. [1] [2]Docker Compose Services and Configuration:
BASE_PASSIVE_COMPOSE_SERVICESto includeapiandwatchdogservices in addition to existing ones, ensuring these services are managed for passive nodes.get_compose_pathto remove the use ofPASSIVE_COMPOSE_PATHand instead select compose files based on node type, simplifying configuration logic.PASSIVE_COMPOSE_PATHconstant from configuration files and imports, cleaning up the codebase. [1] [2]