-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: resolve develop to test conflicts #185
Conversation
…ssue Summary: In response to a critical issue where the SanchoNet Cardano DB Sync Docker image failed to correctly parse configuration files for the SanchoNet environment, this commit introduces a hotfix. The resolution involved modifying the entrypoint script to allow for dynamic configuration based on external files rather than hardcoded values. This was achieved by adding additional volumes to the DBSync container for configuration files and execution scripts, ensuring the DBSync component can operate with the correct settings sourced from the official documentation. Technical Details: The changes include the creation of new scripts (govtool-dbsync, govtool-entrypoint, and govtool-sanchonet) within the scripts/govtool/dbsync directory. These scripts are designed as one-to-one replacements for the original scripts but with modifications to the paths, enabling the use of target configurations from a custom volume. Furthermore, the docker-compose.sanchonet.yml file was updated to incorporate these new scripts through volume mounts, ensuring the DBSync component utilizes the correct configurations at runtime. The prepare-config.sh script was also modified to prepare a scripts directory specifically for the DBSync entrypoint, including copying the newly created scripts into the target configuration directory. This ensures that upon deployment, the DBSync service is equipped with all necessary custom scripts to correctly interpret the environment-specific configurations. This hotfix has been tested in a development environment by triggering deployment from a local machine, confirming its effectiveness in resolving the configuration parsing issue without introducing any new problems or dependencies. This approach not only addresses the immediate problem but also enhances the flexibility of the deployment process for the SanchoNet Cardano DB Sync service within a Docker environment. Note: This solution is a temporary workaround pending a permanent fix for the configuration parsing issue. It emphasizes the importance of maintaining adaptability in deployment scripts and configurations to accommodate changes in the underlying infrastructure or application requirements. Related issue: IntersectMBO/cardano-db-sync#1629
…ration issue" This reverts commit b55a3a9. There is a solution made for IntersectMBO/cardano-db-sync#1629 involving a new image release. The new image is ghcr.io/intersectmbo/cardano-db-sync:sancho-4-0-0-fix-config. We will use the official solution instead of my hotfix, hence this revert. We also want to document our efforts that's why we do not simply romowe the reverted commit from the history.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accepting this cherry-pick to enable latest the commits be commited into test branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accepting this cherry-pick to enable latest the commits be commited into test branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, good job! 👍
Important
This pr introduces recent changes delivered to
develop
. However, due to wrong bases (test
starts frommain
anddevelop
starts frommain
) commits under them have different IDs. This resulted in mergingdevelop
totest
ending with conflicts that cannot be solved with the current repository configuration.The next action should be the final cleanup of the branches as the approach introduced with this PR should never be a final solution as it is the workaround to the process that we have.
Workaround to the develop -> test conflicts on pull request
Instead of merging
develop
totest
I have cherry-picked the commits published todevelop
to put them in totest
branch.List of changes
301d43c7e8cfe4ab6d0c4e63931eb9b319f574e9
4ec99aa0f16c8814a1edbd3885c1c1bc41a13b2c
-[Fix misleading metadata hash text #90] 1eb5c77
-[Fix configuration issue for SanchoNet Cardano DB Sync in Docker environment #181] 7adf4a2
Checklist