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

feat(tools/cosmovisor): create current symlink as relative #21891

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

troian
Copy link
Contributor

@troian troian commented Sep 24, 2024

if cosmovisor used within docker
daemon workdir can be mounted as volume which leads to current symlink no working on the host machine

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title, you can find examples of the prefixes below:
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

Summary by CodeRabbit

  • New Features

    • Added a prepare-upgrade command for easier upgrade preparation.
    • Introduced cosmovisor show-upgrade-info command to display upgrade information.
    • Added --cosmovisor-config flag for specifying configuration file paths.
  • Improvements

    • Enhanced symlink handling and path resolution for better clarity.
    • Updated command structure to improve initialization functionality.
    • Streamlined test suite with a new configuration setup method.
  • Bug Fixes

    • Resolved permission issues with the add-upgrade command.
    • Improved error handling for directory changes in the run function.

@troian troian requested review from julienrbrt, facundomedica and a team as code owners September 24, 2024 21:15
Copy link
Contributor

coderabbitai bot commented Sep 24, 2024

📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces updates to the tools/cosmovisor module, including the addition of new commands such as prepare-upgrade and cosmovisor show-upgrade-info. It also features improvements to symbolic link handling and configuration management, along with updates to the test suite for better configurability and path resolution. The changelog has been revised to document these changes comprehensively, reflecting enhancements, bug fixes, and breaking changes across multiple versions.

Changes

File Change Summary
CHANGELOG.md Updated to include new features, improvements, bug fixes, and breaking changes, such as the addition of prepare-upgrade and show-upgrade-info commands.
tools/cosmovisor/args.go Simplified symbolic link handling in SymLinkToGenesis, improved symlink resolution in CurrentBin, and streamlined SetCurrentUpgrade method.
tools/cosmovisor/args_test.go Added grpcAddress parameter to newConfig, updated test cases to validate this new configuration option.
tools/cosmovisor/cmd/cosmovisor/init.go Renamed NewIntCmd to NewInitCmd, reflecting its purpose for initializing the cosmovisor daemon home directory.
tools/cosmovisor/cmd/cosmovisor/init_test.go Updated BufferedPipe methods to use pointer receivers, changed return types of NewBufferedPipe and StartNewBufferedPipe to pointers.
tools/cosmovisor/cmd/cosmovisor/root.go Replaced NewIntCmd() with NewInitCmd() in the root command structure.
tools/cosmovisor/cmd/cosmovisor/run.go Added functionality to change the current working directory to facilitate relative symlinks, with error handling for the directory change.
tools/cosmovisor/process_test.go Refactored test cases to use a new prepareConfig function and updated symbolic link handling for binary path comparisons.
tools/cosmovisor/upgrade_test.go Refactored tests to include support for both darwin and linux, updated logic for validating binary paths using filepath.EvalSymlinks.

Possibly related PRs

Suggested reviewers

  • facundomedica
  • kocubinski
  • julienrbrt
  • tac0turtle
  • akhilkumarpilli

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the C:Cosmovisor Issues and PR related to Cosmovisor label Sep 24, 2024
@troian troian force-pushed the cosmovisor-relative-symlink branch 2 times, most recently from d5caf27 to 1d4b3d3 Compare September 24, 2024 21:19
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Outside diff range and nitpick comments (8)
tools/cosmovisor/args.go (1)

135-156: Approve changes with suggestions for code cleanup

The updates to the CurrentBin method improve symlink handling and error checking. The use of os.Lstat instead of os.Stat is more appropriate for symlink verification.

Consider the following improvements:

  1. Remove the commented-out code (lines 140-143) to maintain code cleanliness.
  2. Add a comment explaining why os.Lstat is used instead of os.Stat for better code documentation.

Here's a suggested diff for these changes:

 	info, err := os.Lstat(cur)
 	if err != nil || (info.Mode()&os.ModeSymlink == 0) {
-		// err = os.Remove(cur)
-		// if err != nil {
-		// 	return "", err
-		// }
+		// If not a symlink, create a symlink to genesis
 		// Create symlink to the genesis
 		return cfg.SymLinkToGenesis()
 	}

+	// Use os.Lstat to get information about the symlink itself, not the file it points to
 	_, err = os.Readlink(cur)
 	if err != nil {
 		// Create symlink to the genesis
 		return cfg.SymLinkToGenesis()
 	}

These changes will improve code readability and maintainability.

tools/cosmovisor/cmd/cosmovisor/init_test.go (2)

217-217: Consider removing the empty line for consistency.

While the added empty line doesn't affect functionality, it's not consistent with the surrounding code style. Consider removing it to maintain a uniform code structure.

- 

242-242: Consider removing the empty line for consistency.

Similar to the previous comment, this added empty line doesn't affect functionality but isn't consistent with the surrounding code style. Consider removing it to maintain a uniform code structure.

- 
CHANGELOG.md (5)

Line range hint 1-98: Ensure all unreleased changes are properly documented

The unreleased changes section provides a good overview of the upcoming features, improvements, and bug fixes. However, consider the following suggestions to enhance the clarity and usefulness of the changelog:

  1. Add a brief summary at the beginning of the unreleased section to highlight the most significant changes.
  2. Consider grouping related changes together, especially for cross-cutting concerns like performance improvements or API changes.
  3. Ensure that each entry provides enough context for users who may not be familiar with the internal workings of the project.
  4. For bug fixes, consider adding information about the impact of the bug and how it affects users.

Line range hint 100-124: Enhance feature descriptions for better user understanding

The Features section provides a good overview of new additions to the SDK. To improve its usefulness:

  1. Consider adding brief explanations of the impact or benefits of each feature for end-users or developers.
  2. Ensure consistency in the level of detail provided for each feature. Some entries are very detailed, while others are quite brief.
  3. For features that introduce new concepts or significant changes, consider adding links to relevant documentation or examples.

Line range hint 126-170: Clarify the impact of improvements for users and developers

The Improvements section provides a good overview of enhancements to the SDK. To make it more useful:

  1. For each improvement, consider adding a brief note on how it benefits users or developers. This helps readers understand the significance of the change.
  2. Ensure consistency in the level of technical detail provided across entries. Some are quite technical, while others are more general.
  3. For improvements that change existing behavior, clearly indicate any potential impact on backwards compatibility or required actions from users.
  4. Consider grouping related improvements together to provide a clearer picture of overall enhancements in specific areas of the SDK.

Line range hint 172-185: Enhance bug fix descriptions for better context

The Bug Fixes section provides valuable information about resolved issues. To improve its usefulness:

  1. For each bug fix, consider adding a brief description of how the bug might have affected users. This helps readers understand the importance of the fix.
  2. Ensure consistency in providing links to related issues or pull requests for all entries.
  3. Where applicable, mention any potential impact on performance or behavior that users should be aware of after applying the fix.
  4. Consider grouping related bug fixes together, especially if they address different aspects of the same underlying issue.

Line range hint 1-185: Overall improvement suggestions for the CHANGELOG

The CHANGELOG.md file provides a comprehensive overview of the changes, improvements, and bug fixes in the Cosmos SDK. To further enhance its usefulness:

  1. Consider adding a "Breaking Changes" section at the top to highlight any changes that may require action from users or potentially break existing implementations.
  2. Maintain consistency in the level of detail and style across all entries.
  3. Where possible, provide links to relevant documentation, examples, or discussions for significant changes or new features.
  4. Consider adding a "Deprecations" section to clearly communicate any features or APIs that are being phased out.
  5. For each release, consider adding a brief summary of the most significant changes or overarching themes to give readers a quick overview.

These improvements will help users and developers quickly understand the changes and their potential impact when updating to new versions of the SDK.

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f6d7a92 and 1d4b3d379189c06551a43b492c7881b23325d3e5.

Files selected for processing (6)
  • CHANGELOG.md (1 hunks)
  • tools/cosmovisor/args.go (3 hunks)
  • tools/cosmovisor/cmd/cosmovisor/init.go (2 hunks)
  • tools/cosmovisor/cmd/cosmovisor/init_test.go (9 hunks)
  • tools/cosmovisor/cmd/cosmovisor/root.go (1 hunks)
  • tools/cosmovisor/cmd/cosmovisor/run.go (2 hunks)
Additional context used
Path-based instructions (6)
CHANGELOG.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

tools/cosmovisor/args.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

tools/cosmovisor/cmd/cosmovisor/init.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

tools/cosmovisor/cmd/cosmovisor/init_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

tools/cosmovisor/cmd/cosmovisor/root.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

tools/cosmovisor/cmd/cosmovisor/run.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (10)
tools/cosmovisor/cmd/cosmovisor/run.go (1)

43-47: LGTM! Consider verifying subsequent operations.

The new code block successfully implements the PR objective by changing the working directory to allow for relative symlinks. The error handling is appropriate, and the comment clearly explains the purpose.

To ensure this change doesn't negatively impact subsequent operations, please run the following verification:

This will help identify any potential issues with file operations or path manipulations that might be affected by the directory change.

Verification successful

Verified: Subsequent operations are compatible with the directory change.

No file operations or path manipulations were detected after changing the working directory, ensuring that the directory change does not negatively impact subsequent functionality.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that subsequent operations in the run function are compatible with the directory change.

# Test: Search for file operations or path manipulations after the directory change.
rg --type go -A 10 -B 2 'os.Chdir\(cfg.Root\(\)\)' tools/cosmovisor/cmd/cosmovisor/run.go

Length of output: 466

tools/cosmovisor/cmd/cosmovisor/init.go (1)

17-17: Improved function naming: NewIntCmd to NewInitCmd

The change from NewIntCmd to NewInitCmd is a good improvement. It more accurately describes the function's purpose of initializing a cosmovisor daemon home directory, enhancing code readability and maintainability.

tools/cosmovisor/args.go (1)

382-399: ⚠️ Potential issue

Approve changes with a suggestion for path construction

The updates to the SetCurrentUpgrade method improve symlink handling by using relative paths, which enhances portability. However, there's a potential issue with the upgrade info file path construction.

The path construction for the upgrade info file (line 399) now includes cfg.Root(), which might lead to an incorrect path. Consider removing cfg.Root() from this path construction, as the upgrade variable already contains the relative path.

Here's a suggested fix:

-	f, err := os.Create(filepath.Join(cfg.Root(), upgrade, upgradetypes.UpgradeInfoFilename))
+	f, err := os.Create(filepath.Join(upgrade, upgradetypes.UpgradeInfoFilename))

This change ensures that the upgrade info file is created in the correct location relative to the current working directory.

To verify the correct path construction, you can run the following script:

#!/bin/bash
# Description: Verify the upgrade info file path construction

# Test: Check the structure of the upgrades directory
ls -R upgrades

This script will help ensure that the upgrade info file is being created in the correct location within the upgrades directory structure.

tools/cosmovisor/cmd/cosmovisor/init_test.go (7)

141-142: LGTM: Correct interface implementation assertions.

The added assertions correctly ensure that BufferedPipe implements both io.Reader and io.Writer interfaces using pointer receivers. This is a good practice for type checking and documentation.


187-187: LGTM: Consistent return type for StartNewBufferedPipe.

The function signature change to return a pointer to BufferedPipe is consistent with the changes made to NewBufferedPipe, maintaining API consistency.


252-252: LGTM: Correct use of pointer receivers for Read and Write methods.

The change to use pointer receivers for the Read and Write methods is correct and consistent with the earlier interface assertions. This improves efficiency and allows direct modification of the BufferedPipe instance.

Also applies to: 257-257


279-279: LGTM: Consistent return of BufferedPipe pointer.

This change is consistent with the earlier modifications to NewBufferedPipe, now correctly returning the pointer without using the address-of operator.


454-454: LGTM: Improved error message specificity.

The updated error message provides more specific information about the failure, which is helpful for debugging and understanding the issue.


696-698: LGTM: Proper resource management with deferred file closing.

The addition of a deferred file closing function is a good practice to ensure that resources are properly released, even in the event of an error.


170-171: LGTM: Consistent return type for NewBufferedPipe.

The function signature change to return a pointer to BufferedPipe is consistent with the earlier interface assertions and is a good practice for larger structs.

Let's verify that this change is consistently applied throughout the codebase:

Verification successful

Verified: All usages of NewBufferedPipe handle it as a pointer, ensuring consistency throughout the codebase.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for NewBufferedPipe function calls and ensure they're handled as pointers
rg --type go 'NewBufferedPipe\(' -A 3 -B 1

Length of output: 1742

tools/cosmovisor/cmd/cosmovisor/root.go Show resolved Hide resolved
tools/cosmovisor/cmd/cosmovisor/init.go Outdated Show resolved Hide resolved
tools/cosmovisor/args.go Outdated Show resolved Hide resolved
@troian troian changed the title feat(tools/cosmovisor): create current symlink as relative WIP feat(tools/cosmovisor): create current symlink as relative Sep 24, 2024
@troian troian force-pushed the cosmovisor-relative-symlink branch 2 times, most recently from a3eed59 to bb72f63 Compare September 25, 2024 01:01
@tac0turtle tac0turtle marked this pull request as draft September 25, 2024 10:37
@tac0turtle
Copy link
Member

converting to draft until WIP is removed

troian added a commit to akash-network/cosmos-sdk that referenced this pull request Sep 25, 2024
required by cosmos#21891
allows cosmovisor tests to natively run on following os/arch pairs
linux/amd64, linux/arm64
darwin/amd64, darwin/arm64

Signed-off-by: Artur Troian <[email protected]>
@troian troian force-pushed the cosmovisor-relative-symlink branch 2 times, most recently from f932209 to ca6739c Compare October 1, 2024 14:10
@troian troian changed the title WIP feat(tools/cosmovisor): create current symlink as relative feat(tools/cosmovisor): create current symlink as relative Oct 1, 2024
@troian troian marked this pull request as ready for review October 1, 2024 15:59
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (4)
tools/cosmovisor/testdata/repo/chain2-zip_bin/autod (1)

13-13: Simplified info field improves flexibility and maintainability.

The change to the info field is a good improvement:

  1. It simplifies the JSON structure by replacing embedded data with a URL.
  2. The URL includes a SHA256 checksum, enhancing security.
  3. This approach allows for easier updates to the referenced data without changing this script.
  4. It aligns with the PR objective of improving Cosmovisor's functionality, potentially addressing Docker-related issues.

Consider documenting this change in the Cosmovisor documentation, explaining the new format of the info field and how it affects the upgrade process.

tools/cosmovisor/upgrade_test.go (1)

266-277: Introduction of prepareConfig helper function

The addition of the prepareConfig function is a great improvement:

  1. It centralizes common setup logic used across multiple tests, enhancing code reusability and maintainability.
  2. The function encapsulates the creation of a temporary directory and configuration setup, simplifying test implementations.

However, changing the working directory (line 273-274) in a test helper function could potentially affect other tests if not properly managed. Consider using a defer statement to change back to the original directory, or document this behavior clearly for other developers.

Consider adding a defer statement to revert the working directory change:

func prepareConfig(t *testing.T, testData string, config cosmovisor.Config) *cosmovisor.Config {
	t.Helper()

	tmpdir := copyTestData(t, testData)

	config.Home = tmpdir

+	originalDir, err := os.Getwd()
+	require.NoError(t, err)
	err := os.Chdir(config.Root())
	require.NoError(t, err)
+	t.Cleanup(func() {
+		err := os.Chdir(originalDir)
+		require.NoError(t, err)
+	})

	return &config
}
tools/cosmovisor/process_test.go (2)

23-27: workDir initialization looks good, but consider a more robust approach

The addition of the workDir variable and its initialization in the init() function is a good way to centralize the working directory information. However, using os.Getwd() might cause issues if the working directory changes during test execution.

Consider using a more robust approach, such as:

  1. Setting the working directory explicitly at the beginning of each test.
  2. Using a fixed path relative to the test file location.

This would ensure consistency across all tests regardless of the current working directory.


33-41: Improved test setup and binary path comparisons

The changes in this test function enhance its robustness and maintainability:

  1. The use of prepareConfig centralizes the configuration setup.
  2. Using workDir improves portability across different environments.
  3. Resolving symbolic links with filepath.EvalSymlinks ensures more accurate binary path comparisons.

These changes are approved. However, consider adding a comment explaining the purpose of filepath.EvalSymlinks for better code readability.

Consider adding a comment like:

// Resolve symbolic links to ensure accurate binary path comparisons
rPath, err := filepath.EvalSymlinks(cfg.GenesisBin())

Also applies to: 51-53, 72-75, 87-90

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 1d4b3d379189c06551a43b492c7881b23325d3e5 and ca6739c6955dd10db7cc47cb045c013c09f3d3c4.

⛔ Files ignored due to path filters (1)
  • tools/cosmovisor/testdata/repo/chain2-zip_bin/autod.zip is excluded by !**/*.zip
📒 Files selected for processing (10)
  • CHANGELOG.md (1 hunks)
  • tools/cosmovisor/args.go (3 hunks)
  • tools/cosmovisor/cmd/cosmovisor/init.go (2 hunks)
  • tools/cosmovisor/cmd/cosmovisor/init_test.go (14 hunks)
  • tools/cosmovisor/cmd/cosmovisor/root.go (1 hunks)
  • tools/cosmovisor/cmd/cosmovisor/run.go (2 hunks)
  • tools/cosmovisor/process_test.go (18 hunks)
  • tools/cosmovisor/testdata/download/cosmovisor/genesis/bin/autod (1 hunks)
  • tools/cosmovisor/testdata/repo/chain2-zip_bin/autod (1 hunks)
  • tools/cosmovisor/upgrade_test.go (9 hunks)
🚧 Files skipped from review as they are similar to previous changes (6)
  • CHANGELOG.md
  • tools/cosmovisor/args.go
  • tools/cosmovisor/cmd/cosmovisor/init.go
  • tools/cosmovisor/cmd/cosmovisor/init_test.go
  • tools/cosmovisor/cmd/cosmovisor/root.go
  • tools/cosmovisor/cmd/cosmovisor/run.go
🧰 Additional context used
📓 Path-based instructions (2)
tools/cosmovisor/process_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

tools/cosmovisor/upgrade_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

🔇 Additional comments (18)
tools/cosmovisor/upgrade_test.go (9)

1-1: Expanded platform support in build constraint

The update to include both darwin and linux in the build constraint is a positive change. This expansion ensures that the tests can run on both Linux and macOS platforms, improving cross-platform compatibility and test coverage.


31-37: Improved test setup and path comparison in TestCurrentBin

The changes in TestCurrentBin are well-implemented:

  1. The use of prepareConfig enhances code reusability and readability.
  2. Resolving symbolic links with filepath.EvalSymlinks before comparison ensures more accurate path validations.

These improvements make the tests more robust and reliable.

Also applies to: 42-45, 54-57, 69-72


106-106: Updated assertCurrentLink method signature

The change to accept a pointer to cosmovisor.Config in the assertCurrentLink method is a good improvement. This modification:

  1. Aligns with the changes observed in the test functions.
  2. Can improve performance by avoiding unnecessary copying of the Config struct.
  3. Allows for potential modifications to the Config object if needed in future implementations.

This change enhances consistency and efficiency in the codebase.

Also applies to: 116-116


121-129: Consistent improvements in TestUpgradeBinaryNoDownloadUrl

The changes in TestUpgradeBinaryNoDownloadUrl maintain consistency with the improvements seen in other test functions:

  1. The use of prepareConfig simplifies the test setup.
  2. The application of filepath.EvalSymlinks ensures accurate path comparisons.

These consistent improvements across the test suite enhance overall code quality and test reliability.

Also applies to: 135-138, 147-151, 165-168


244-252: Enhanced cross-platform support in TestOsArch

The updates to TestOsArch are excellent improvements:

  1. The test now checks for both Linux and Darwin (macOS) architectures, aligning with the updated build constraint.
  2. The use of slices.Contains simplifies the code and improves readability.

These changes ensure better cross-platform compatibility testing and make the code more maintainable.


258-258: Improved flexibility in copyTestData function

The update to the copyTestData function signature is a positive change:

  1. Accepting a string for the test data path allows for more flexible usage of the function.
  2. This modification makes the function more generic and potentially reusable across different test scenarios.

The change enhances the function's utility while maintaining its core functionality.

Also applies to: 261-261


77-83: Consistent improvements in TestCurrentAlwaysSymlinkToDirectory

The changes in this test function align well with the improvements made in TestCurrentBin. The use of prepareConfig and filepath.EvalSymlinks enhances the test's reliability.

Note that assertCurrentLink now receives a pointer to cosmovisor.Config. This change should be verified to ensure it's consistent with the method's implementation and doesn't introduce any unintended side effects.

To verify the assertCurrentLink method signature change, please run:

#!/bin/bash
# Check the signature of assertCurrentLink method
rg --type go "func \(.*\) assertCurrentLink\(.*\)" tools/cosmovisor/

Also applies to: 87-91, 98-102, 106-106


182-182: Updated test cases and improved setup in TestUpgradeBinary

The changes in TestUpgradeBinary are well-implemented:

  1. The test cases have been updated with new file paths, likely reflecting changes in the project structure or test data organization.
  2. The introduction of prepareConfig for test setup aligns with the improvements seen in other tests, enhancing consistency and readability.

These changes improve the test's maintainability and alignment with the project's current structure.

To ensure the new file paths are correct, please run:

#!/bin/bash
# Check if the new file paths exist
for path in "testdata/repo/raw_binary/autod" "testdata/repo/chain3-zip_dir/autod.zip" "testdata/repo/bad_dir/autod"; do
  if [ -e "$path" ]; then
    echo "Path exists: $path"
  else
    echo "Path does not exist: $path"
  fi
done

Also applies to: 187-187, 191-191, 196-196, 200-200, 213-220


9-9: Added import for slices package

The addition of the slices package import is a good improvement. This package provides efficient and readable slice operations. However, ensure that the project's minimum Go version is set to 1.21 or higher, as the slices package was introduced in Go 1.21.

To verify the Go version, please run the following command:

✅ Verification successful

Confirmed Go Version

The project's Go version is 1.23.1, which satisfies the minimum requirement for the slices package. The addition of the slices import is approved.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check the Go version in go.mod file
grep -E "^go [0-9]+\.[0-9]+" go.mod

Length of output: 839


Script:

#!/bin/bash
# Extract the Go version specified in go.mod
grep ^go go.mod | awk '{print $2}'

Length of output: 45

tools/cosmovisor/process_test.go (9)

20-20: Import addition looks good

The addition of the cosmovisor package import is consistent with the refactoring mentioned in the summary. This change allows direct use of the cosmovisor package in the test file.


96-105: Consistent improvements in TestPlanDisableRecase

The changes in this test function are consistent with the improvements made in TestLaunchProcess. They enhance the test's robustness and maintainability by:

  1. Using prepareConfig for centralized configuration setup.
  2. Employing filepath.EvalSymlinks for accurate binary path comparisons.

These changes are approved as they maintain consistency across the test suite.

Also applies to: 115-118, 136-138, 150-152


157-166: Consistent improvements in TestLaunchProcessWithRestartDelay

The changes in this test function align with the improvements made in previous test functions. They enhance the test's robustness and maintainability by:

  1. Using prepareConfig for centralized configuration setup.
  2. Employing filepath.EvalSymlinks for accurate binary path comparisons.
  3. Using workDir for portable test data paths.

These changes are approved as they maintain consistency across the test suite.

Also applies to: 176-178


200-209: Consistent improvements in TestPlanShutdownGrace

The changes in this test function are in line with the improvements made in previous test functions. They enhance the test's robustness and maintainability by:

  1. Using prepareConfig for centralized configuration setup.
  2. Employing filepath.EvalSymlinks for accurate binary path comparisons.
  3. Using workDir for portable test data paths.

These changes are approved as they maintain consistency across the test suite.

Also applies to: 218-220, 238-240, 252-254


264-273: Consistent improvements in TestLaunchProcessWithDownloads

The changes in this test function align with the improvements made in previous test functions. They enhance the test's robustness and maintainability by:

  1. Using prepareConfig for centralized configuration setup.
  2. Employing filepath.EvalSymlinks for accurate binary path comparisons.
  3. Using workDir for portable test data paths.

These changes are approved as they maintain consistency across the test suite.

Also applies to: 281-283, 299-301, 316-318, 333-335


345-355: Consistent improvements and new test scenario in TestLaunchProcessWithDownloadsAndMissingPreupgrade

The changes in this test function are consistent with the improvements in previous functions and introduce a new test scenario:

  1. Using prepareConfig for centralized configuration setup.
  2. Employing filepath.EvalSymlinks for accurate binary path comparisons.
  3. Using workDir for portable test data paths.
  4. Adding CustomPreUpgrade: "missing.sh" to test a scenario with a missing pre-upgrade script.

These changes are approved as they maintain consistency across the test suite and expand the test coverage.

Also applies to: 364-366


387-397: Comprehensive improvements and new test scenario in TestLaunchProcessWithDownloadsAndPreupgrade

The changes in this test function align with previous improvements and introduce a new test scenario:

  1. Using prepareConfig for centralized configuration setup.
  2. Employing filepath.EvalSymlinks for accurate binary path comparisons.
  3. Using workDir for portable test data paths.
  4. Adding CustomPreUpgrade: "preupgrade.sh" to test a scenario with a custom pre-upgrade script.
  5. New assertions to verify the creation of upgrade-related files.

These changes are approved as they maintain consistency, expand test coverage, and verify the correct execution of custom pre-upgrade scripts.

Also applies to: 406-408, 424-426, 429-429, 444-446, 449-449, 464-466


Line range hint 470-508: No changes in TestSkipUpgrade

The TestSkipUpgrade function remains unchanged. This is appropriate if its functionality is still valid and doesn't require updates based on the recent refactoring.


Line range hint 511-557: No changes in TestUpgradeSkipHeights

The TestUpgradeSkipHeights function remains unchanged. This is appropriate if its functionality is still valid and doesn't require updates based on the recent refactoring.

@troian troian force-pushed the cosmovisor-relative-symlink branch from ca6739c to 4c1b2ef Compare October 1, 2024 16:08
@troian
Copy link
Contributor Author

troian commented Oct 1, 2024

should be ready to move with the review.
cosmovisor tests are failing as I have messed up with checksums in #21933 and #21911.

this PR contains checksums fix, however tests are expecting them from main.
happy to take checksums fix in to different PR if needed

@julienrbrt
Copy link
Member

this PR contains checksums fix, however tests are expecting them from main.
happy to take checksums fix in to different PR if needed

That would be great, thanks! So that we can see green in this PR

@troian
Copy link
Contributor Author

troian commented Oct 3, 2024

@julienrbrt done #22102
will rebase this PR one merged

@troian troian force-pushed the cosmovisor-relative-symlink branch from 4c1b2ef to 52e17b7 Compare October 4, 2024 12:28
CHANGELOG.md Outdated Show resolved Hide resolved
@troian troian force-pushed the cosmovisor-relative-symlink branch from 52e17b7 to 79cb90f Compare October 4, 2024 12:47
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Inline review comments failed to post

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (2)
tools/cosmovisor/upgrade_test.go (1)

266-277: LGTM: Introduced prepareConfig for consistent test setup

The addition of the prepareConfig function is an excellent improvement to the test suite:

  1. It enhances test setup consistency across different test cases.
  2. It simplifies the test code by encapsulating common setup logic.
  3. The use of a temporary directory ensures proper test isolation.

This change contributes to the overall maintainability and reliability of the test suite.

Consider adding a defer statement to change the working directory back to the original one after the test completes. This ensures that the working directory is reset even if the test panics:

 func prepareConfig(t *testing.T, testData string, config cosmovisor.Config) *cosmovisor.Config {
 	t.Helper()

 	tmpdir := copyTestData(t, testData)

 	config.Home = tmpdir

+ 	originalDir, err := os.Getwd()
+ 	require.NoError(t, err)
+ 	t.Cleanup(func() {
+ 		_ = os.Chdir(originalDir)
+ 	})
 	err := os.Chdir(config.Root())
 	require.NoError(t, err)

 	return &config
 }
tools/cosmovisor/process_test.go (1)

32-53: LGTM: Improved test setup and file path handling

The changes in the TestLaunchProcess function enhance the test setup by using a centralized prepareConfig function and improve file path handling with filepath.EvalSymlinks. These modifications increase the reliability and maintainability of the test.

Consider adding a brief comment explaining the purpose of using filepath.EvalSymlinks to help future maintainers understand the importance of this change.

Also applies to: 71-74, 86-89

🛑 Comments failed to post (1)
tools/cosmovisor/cmd/cosmovisor/init_test.go (1)

734-743: ⚠️ Potential issue

Avoid changing the working directory in tests

The prepareConfig function changes the current working directory to config.Home using os.Chdir, which can lead to unintended side effects in tests, especially when running tests in parallel. It's recommended to avoid changing the global working directory and instead use absolute paths or pass the directory as a parameter where needed.

@troian troian force-pushed the cosmovisor-relative-symlink branch from 79cb90f to f4bb7c1 Compare October 4, 2024 12:51
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (10)
tools/cosmovisor/CHANGELOG.md (2)

Line range hint 48-50: LGTM with a minor suggestion

The new feature is well-described and properly linked to the GitHub pull request. The multi-line format is appropriate for the detailed description.

Consider a minor rewording for clarity:

- * [#21932](https://github.com/cosmos/cosmos-sdk/pull/21932) Add `cosmovisor show-upgrade-info` command to display the upgrade-info.json into stdout.
+ * [#21932](https://github.com/cosmos/cosmos-sdk/pull/21932) Add `cosmovisor show-upgrade-info` command to display the contents of upgrade-info.json to stdout.

This small change makes the purpose of the command slightly clearer.

🧰 Tools
🪛 Markdownlint

48-48: null
Multiple headings with the same content

(MD024, no-duplicate-heading)


Line range hint 1-50: Overall, excellent changelog management

The CHANGELOG.md file is well-structured and follows best practices for changelog maintenance. It effectively categorizes changes, links to relevant GitHub pull requests, and provides clear descriptions of new features, improvements, and bug fixes across multiple versions.

For consistency, consider adding the release date for the "Unreleased" section once it's published, following the format used in previous releases (e.g., ## [v1.7.0] - YYYY-MM-DD).

Great job on maintaining a comprehensive and user-friendly changelog!

🧰 Tools
🪛 Markdownlint

48-48: null
Multiple headings with the same content

(MD024, no-duplicate-heading)

tools/cosmovisor/process_test.go (4)

22-26: LGTM with a minor suggestion for improvement

The introduction of the workDir variable and the init() function is a good improvement for flexible path handling in the test cases. However, I suggest handling the potential error from os.Getwd().

Consider updating the init() function to handle the potential error:

func init() {
-	workDir, _ = os.Getwd()
+	var err error
+	workDir, err = os.Getwd()
+	if err != nil {
+		panic(fmt.Sprintf("failed to get working directory: %v", err))
+	}
}

This change ensures that any issues with getting the working directory are immediately apparent.


95-104: LGTM with a suggestion for clarity

The use of prepareConfig is consistent with earlier changes, which is good. The addition of the DisableRecase parameter is likely necessary for this specific test case.

Consider adding a brief comment explaining the purpose of the DisableRecase parameter:

cfg := prepareConfig(
	t,
	fmt.Sprintf("%s/%s", workDir, "testdata/norecase"),
	cosmovisor.Config{
		Name:             "dummyd",
		PollInterval:     20,
		UnsafeSkipBackup: true,
+		// DisableRecase is set to true to test behavior when plan name recasing is disabled
		DisableRecase:    true,
	},
)

This will help other developers understand the purpose of this parameter in the test setup.


156-165: LGTM with a suggestion for clarity

The use of prepareConfig is consistent with earlier changes, which is good. The addition of the RestartDelay parameter is likely necessary for testing the system's behavior with a delay between restarts.

Consider adding a brief comment explaining the purpose of the RestartDelay parameter:

cfg := prepareConfig(
	t,
	fmt.Sprintf("%s/%s", workDir, "testdata/validate"),
	cosmovisor.Config{
		Name:             "dummyd",
+		// RestartDelay is set to test the system's behavior with a delay between restarts
		RestartDelay:     5 * time.Second,
		PollInterval:     20,
		UnsafeSkipBackup: true,
	},
)

This will help other developers understand the purpose of this parameter in the test setup.


199-208: LGTM with a suggestion for clarity

The use of prepareConfig is consistent with earlier changes, which is good. The addition of the ShutdownGrace parameter is likely necessary for testing the system's graceful shutdown behavior.

Consider adding a brief comment explaining the purpose of the ShutdownGrace parameter:

cfg := prepareConfig(
	t,
	fmt.Sprintf("%s/%s", workDir, "testdata/dontdie"),
	cosmovisor.Config{
		Name:             "dummyd",
		PollInterval:     15,
		UnsafeSkipBackup: true,
+		// ShutdownGrace is set to test the system's graceful shutdown behavior
		ShutdownGrace:    2 * time.Second,
	},
)

This will help other developers understand the purpose of this parameter in the test setup.

tools/cosmovisor/args.go (2)

116-117: Improve comment formatting to match Go style guidelines

The comments should be full sentences starting with a capital letter and ending with a period, following the Go coding conventions outlined in the Uber Go Style Guide.

Apply this diff to correct the comments:

-	// workdir is set to cosmovisor directory so relative
-	// symlinks are getting resolved correctly
+	// Workdir is set to the cosmovisor directory so relative
+	// symlinks are resolved correctly.

142-143: Improve comment formatting to match Go style guidelines

The comments should start with a capital letter and end with a period to adhere to the standard Go commenting practices.

Apply this diff to update the comments:

-	// if nothing here, fallback to genesis
-	// if it is there, ensure it is a symlink
+	// If nothing is here, fall back to genesis.
+	// If it is there, ensure it is a symlink.
tools/cosmovisor/args_test.go (2)

Line range hint 457-468: Consider refactoring newConfig to reduce parameter list length

The newConfig function now has a significant number of parameters, which can reduce code readability and maintainability. According to the Uber Go Style Guide, functions with many parameters should be refactored to accept a struct or use the functional options pattern to improve clarity.


Line range hint 523-768: Add unit tests for GRPCAddress and ShutdownGrace configuration variations

The addition of GRPCAddress and ShutdownGrace parameters enhances configurability, but the current tests primarily use default or fixed values. Consider adding unit tests that cover different scenarios, including custom values and invalid inputs, to ensure robust handling and proper error reporting for these new configuration options.

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 52e17b7247230dd378e0a992cd27f57b2a45917a and f4bb7c1.

📒 Files selected for processing (9)
  • tools/cosmovisor/CHANGELOG.md (1 hunks)
  • tools/cosmovisor/args.go (3 hunks)
  • tools/cosmovisor/args_test.go (18 hunks)
  • tools/cosmovisor/cmd/cosmovisor/init.go (2 hunks)
  • tools/cosmovisor/cmd/cosmovisor/init_test.go (14 hunks)
  • tools/cosmovisor/cmd/cosmovisor/root.go (1 hunks)
  • tools/cosmovisor/cmd/cosmovisor/run.go (2 hunks)
  • tools/cosmovisor/process_test.go (18 hunks)
  • tools/cosmovisor/upgrade_test.go (9 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
  • tools/cosmovisor/cmd/cosmovisor/init.go
  • tools/cosmovisor/cmd/cosmovisor/root.go
  • tools/cosmovisor/cmd/cosmovisor/run.go
  • tools/cosmovisor/upgrade_test.go
🧰 Additional context used
📓 Path-based instructions (5)
tools/cosmovisor/CHANGELOG.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

tools/cosmovisor/args.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

tools/cosmovisor/args_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

tools/cosmovisor/cmd/cosmovisor/init_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

tools/cosmovisor/process_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

🔇 Additional comments (24)
tools/cosmovisor/CHANGELOG.md (2)

45-45: LGTM: Well-formatted changelog entry

The new improvement is clearly described and properly linked to the corresponding GitHub pull request. This entry follows the established changelog format.


46-46: LGTM: Properly formatted changelog entry

This improvement is clearly described and correctly linked to its GitHub pull request. The entry adheres to the established changelog format.

tools/cosmovisor/process_test.go (6)

32-40: LGTM: Improved configuration setup

The use of the prepareConfig function to initialize the cfg variable is a good improvement. It centralizes the configuration setup, making the tests more maintainable and flexible.

The use of workDir in the path and the configuration struct for parameter passing are particularly good practices.


50-53: LGTM: Improved symlink handling

The use of filepath.EvalSymlinks to resolve symbolic links before comparing paths is a good improvement. This change enhances the test's ability to catch potential issues with symlink handling in the actual implementation.

This modification makes the test more robust and accurate.


71-74: LGTM: Consistent symlink handling after upgrade

The use of filepath.EvalSymlinks here maintains consistency with the earlier symlink resolution approach. This ensures that the test accurately verifies the upgrade process's handling of symlinks.

This change contributes to the overall robustness of the test suite.


86-89: LGTM: Thorough symlink verification

The consistent use of filepath.EvalSymlinks here completes the symlink verification process throughout the upgrade cycle. This ensures that the final state after all upgrades is correctly verified.

This change contributes to a comprehensive test of the upgrade process's symlink handling.


114-117: LGTM: Consistent symlink handling across test cases

The consistent use of filepath.EvalSymlinks across these different test cases and stages of the upgrade process is commendable. This approach ensures thorough and accurate verification of symlink handling throughout the entire upgrade cycle.

This consistency contributes to the robustness and reliability of the test suite.

Also applies to: 135-137, 149-151


217-219: LGTM: Comprehensive and consistent symlink handling

The consistent use of filepath.EvalSymlinks across all these test cases and stages of the upgrade process is excellent. This uniform approach ensures thorough and accurate verification of symlink handling throughout all scenarios tested in this file.

This consistency significantly enhances the robustness and reliability of the entire test suite, providing comprehensive coverage of symlink-related behaviors.

Also applies to: 237-239, 251-253, 280-282, 297-300, 315-317, 332-334, 362-365, 405-407, 422-425, 443-445, 463-465

tools/cosmovisor/cmd/cosmovisor/init_test.go (14)

141-142: Interface implementation check looks good.

The explicit interface checks for io.Reader and io.Writer ensure that BufferedPipe correctly implements these interfaces. This is a good practice for maintaining type safety and documenting the intended behavior of the struct.


170-171: Function signature update improves memory efficiency.

Changing the return type of NewBufferedPipe from BufferedPipe to *BufferedPipe is a good optimization. It avoids unnecessary copying of the struct and allows for more efficient memory usage, especially if the BufferedPipe struct grows larger in the future.


187-187: Function signature update for consistency.

The return type change for StartNewBufferedPipe to *BufferedPipe maintains consistency with the NewBufferedPipe function. This is a good practice for maintaining a coherent API.


217-217: Improved error handling in buffering goroutine.

The addition of a blank line after the error handling in the buffering goroutine and before closing the writer in the Collect method improves readability. It's a minor change but helps in visually separating different logical blocks of code.

Also applies to: 242-242


252-253: Method receiver types updated for consistency.

Changing the receiver types for Read and Write methods from value receivers to pointer receivers is a good practice. It ensures consistency with other methods of BufferedPipe and allows for potential future modifications to the struct within these methods.

Also applies to: 257-258


279-279: Simplified return statement in NewCapturingLogger.

The change to directly return bufferedStdOut instead of taking its address simplifies the code without changing its functionality. This is a good refactoring that improves code readability.


454-454: Error message update for clarity.

The error message has been updated to be more specific about the nature of the error. This change improves the clarity of the error message, making it easier for developers to understand and debug issues.


487-490: New method prepareConfig introduced.

The addition of the prepareConfig method is a good refactoring. It centralizes the setup of the test environment, making the test cases more readable and maintainable. The use of a temporary directory for each test ensures isolation between tests.

Also applies to: 492-506


493-500: Test case refactored for better readability.

The refactoring of this test case improves its readability and maintainability. The use of the new prepareConfig method simplifies the setup, and the additional checks for the existence and permissions of the created files enhance the test's robustness.

Also applies to: 518-523


509-514: Updated log expectations in test cases.

The expected log messages have been updated to reflect the changes in the implementation. This ensures that the tests accurately verify the behavior of the InitializeCosmovisor function. The addition of the config file creation log message is particularly important as it verifies a new feature.

Also applies to: 569-569, 613-613


543-554: Improved test setup and verification.

The addition of filepath.EvalSymlinks to resolve the actual path of the genesis binary directory and executable improves the robustness of the test. It ensures that the test works correctly even if the filesystem uses symlinks, which is a good practice for writing more reliable tests.


596-606: Test case setup improved.

The use of s.setEnv and the new prepareConfig method improves the consistency and readability of the test setup. The addition of symlink resolution enhances the test's ability to verify the correct behavior of the InitializeCosmovisor function.


716-718: Improved file handling with defer.

The addition of a deferred file close operation is a good practice. It ensures that the file is properly closed even if an error occurs during the reading process, preventing potential resource leaks.


733-743: New prepareConfig method implementation.

The prepareConfig method is a well-implemented helper function for test setup. It creates a temporary directory for each test, sets it as the current working directory, and returns the updated configuration. This approach ensures test isolation and simplifies the setup process in individual test cases.

tools/cosmovisor/args.go (1)

391-406: LGTM!

The adjustments to the symlink handling correctly implement relative symlinks, enhancing functionality in Docker environments with mounted volumes. The code changes are accurate and align with best practices.

tools/cosmovisor/args_test.go (1)

Line range hint 799-808: Ensure correct parsing and error handling for ShutdownGrace duration

In setupConfig, shutdownGrace is set to 10000000000, representing 10 seconds in nanoseconds. Please verify that the parsing of ShutdownGrace from the environment variable handles duration strings correctly (e.g., "10s", "500ms") and that invalid inputs result in appropriate errors. Adding tests for various duration formats and invalid values can improve the robustness of the configuration parsing.

Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

utACK! Thank you!

@julienrbrt julienrbrt enabled auto-merge October 7, 2024 13:17
Copy link
Contributor

@akhilkumarpilli akhilkumarpilli left a comment

Choose a reason for hiding this comment

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

utACK

@julienrbrt julienrbrt added this pull request to the merge queue Oct 7, 2024
Merged via the queue into cosmos:main with commit 326545d Oct 7, 2024
69 of 72 checks passed
@troian troian deleted the cosmovisor-relative-symlink branch October 7, 2024 16:49
@troian
Copy link
Contributor Author

troian commented Oct 30, 2024

@julienrbrt any ETA on new cosmovisor release with this PR?

@julienrbrt
Copy link
Member

@julienrbrt any ETA on new cosmovisor release with this PR?

Yes, probably at the same time as the next 0.50 patch release. We check monthly what to release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:Cosmovisor Issues and PR related to Cosmovisor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants