Skip to content
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

Merged
merged 20 commits into from
Feb 16, 2024

Conversation

MSzalowski
Copy link
Contributor

@MSzalowski MSzalowski commented Feb 15, 2024

Important

This pr introduces recent changes delivered to develop. However, due to wrong bases (test starts from main and develop starts from main) commits under them have different IDs. This resulted in merging develop to test 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 to test I have cherry-picked the commits published to develop to put them in to test branch.

List of changes

Checklist

  • My changes generate no new warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the changelog
  • I have added tests that prove my fix is effective or that my feature works

placek and others added 3 commits February 16, 2024 08:43
…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.
Copy link
Contributor

@pmbinapps pmbinapps left a 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.

Copy link
Contributor

@pmbinapps pmbinapps left a 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.

Copy link
Contributor

@placek placek left a comment

Choose a reason for hiding this comment

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

LGTM, good job! 👍

@pmbinapps pmbinapps merged commit df07dc2 into test Feb 16, 2024
@MSzalowski MSzalowski deleted the core/resolve-develop-to-test-conflicts branch February 20, 2024 09:36
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.

6 participants