Skip to content

Display help message when testnet launches successfully #6281

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

Merged
merged 1 commit into from
Jul 15, 2025

Conversation

nbacquey
Copy link
Contributor

@nbacquey nbacquey commented Jul 10, 2025

Here is an example of the help message generated when cardano-testnet successfully starts:

    [...]
    forAll72 =
      Workspace: /tmp/nix-shell.yBvIzE/nix-shell.n6EEOb/testnet-test-e17490eb95ba9e3a
  
    This failure can be reproduced by running:
    > recheckAt (Seed 3328579059507353818 11797048402419991361) "1:" <property>
  
Please disregard the message above implying a failure.

Testnet is running with config file /tmp/nix-shell.yBvIzE/nix-shell.n6EEOb/testnet-test-e17490eb95ba9e3a/configuration.yaml
Logs of the SPO node can be found at /tmp/nix-shell.yBvIzE/nix-shell.n6EEOb/testnet-test-e17490eb95ba9e3a/logs/node1/stdout.log

To interact with the testnet using cardano-cli, you might want to set:

  export CARDANO_NODE_SOCKET_PATH=/tmp/nix-shell.yBvIzE/nix-shell.n6EEOb/testnet-test-e17490eb95ba9e3a/socket/node1/sock
  export CARDANO_NODE_NETWORK_ID=42

Type CTRL-C to exit.

Closes #6270

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-9.6 and ghc-9.12
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

@nbacquey nbacquey requested a review from a team as a code owner July 10, 2025 13:45
ANSI.setSGR [SetColor Foreground Vivid Green]
IO.putStr "Testnet is running. Type CTRL-C to exit."
IO.putStrLn $ printf
"Please disregard the message above implying a failure.\n\
Copy link
Contributor

Choose a reason for hiding this comment

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

This is why we shouldn't be using properties. They only ought to be used in property testing.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you mean PropertyT IO as a base monad for testnet setup?

I think I saw someone complaining about cardano-testnet exeuctable console output breaking some tooling because it was detecting colours incorrectly.

@nbacquey nbacquey added this pull request to the merge queue Jul 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jul 12, 2025
@nbacquey nbacquey added this pull request to the merge queue Jul 15, 2025
Merged via the queue into master with commit 4bb0fd1 Jul 15, 2025
25 checks passed
@nbacquey nbacquey deleted the nb/testnet_help_messages branch July 15, 2025 06:37
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.

[FR] - [CARDANO-TESTNET] Output should suggest environment variables to use:
3 participants