[CRE-739] clnode volume relative paths store #2076
Merged
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 improvements to how the Chainlink node's configuration and state are managed in the test framework. The main enhancements include using Docker volumes for persistent storage of the user's home directory and configuration folder, and improving the reliability of config file caching by falling back to an absolute path if writing to the default relative path fails.
Persistent storage for Chainlink node containers:
configfolder in the Chainlink node container, ensuring persistent storage of configuration and state files (clnode.go, constants and container mounts). [1] [2]Config file caching improvements:
framework/config.go).Documentation:
framework/.changeset/v0.10.16.md).Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.
Why
The changes address enhancements in configuration handling and storage for the CL node component within a framework. Specifically, they introduce volume mounts for better data management and an improvement in how cached configs are stored when relative paths fail.
What
configfolder, and storing cached config on an absolute path if the relative path fails.ConfigVolumeNameandHomeVolumeNameto define volume names for configuration and home directories.newNodefunction to mount theconfigand user's home directory inside the container. This ensures persistent storage of configuration and state files across container restarts.Storefunction to attempt storing cached config on an absolute path if writing to the default relative path fails. This change improves the reliability of config caching by ensuring the config is stored even when the relative path isn't accessible.Storefunction to use an absolute path for cached config storage if necessary, enhancing the robustness of the configuration caching mechanism.