Skip to content

Comments

add signal interrupt to local network contexts#2717

Merged
felipemadero merged 6 commits intomainfrom
arran-fixes
Apr 7, 2025
Merged

add signal interrupt to local network contexts#2717
felipemadero merged 6 commits intomainfrom
arran-fixes

Conversation

@felipemadero
Copy link
Collaborator

@felipemadero felipemadero commented Apr 3, 2025

Why this should be merged

This PR addresses a couple of suggestions by @ARR4N and @martineckardt , together with fixing a cleaning up issue found
while looking at the problem:

  • add signal interrupts to local network waiting contexts, so it can be interrupted with ctrl+C
  • add messages to tell the user where to find relevant logs in case of context timeout while trying to track a blockchain
  • stop the local network in case the local network creation or local network start fails

How this works

Example of how it is now telling to the user on the logs

Screenshot 2025-04-03 at 6 28 24 AM

How this was tested

How is this documented

Copy link
Contributor

@ARR4N ARR4N left a comment

Choose a reason for hiding this comment

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

Thank you for adding these features!

Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
Signed-off-by: felipemadero <felipe.madero@gmail.com>
@felipemadero
Copy link
Collaborator Author

Thank you for adding these features!

Thanks to you for the good feedbacks

if len(logPaths) != 0 {
printFunc("Please check this log files for more information on the error cause:")
for _, logPath := range logPaths {
printFunc(" " + logPath)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add unit test for helpers_test.go where we intentionally cause error and verify that we get the expected logs dir

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added test for GetTmpNetAvailableLogs

@github-project-automation github-project-automation bot moved this from Backlog 🗄️ to In Review 👀 in avalanchego Apr 7, 2025
@felipemadero felipemadero merged commit 8f7ba5b into main Apr 7, 2025
37 checks passed
@felipemadero felipemadero deleted the arran-fixes branch April 7, 2025 20:38
@github-project-automation github-project-automation bot moved this from In Review 👀 to Done ✅ in avalanchego Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants