Skip to content

[BUG] - cardano-testnet sometimes hangs indefinitely #5762

Closed

Description

@carbolymer

Internal/External
Internal if an IOHK staff member.

Area

Other Any other topic (Delegation, Ranking, ...).

Summary
Sometimes a cardano-testnet test suite hangs indefinitely. It's like nodes are taking longer time to produce blocks. It may be related to what @james-iohk described here #5679 (comment)

The issue is more visible in slower machines, like macos runner in GHA or darwin cross-compilation in Hydra.

Steps to reproduce
Steps to reproduce the behavior:

  1. Rerun the cardano-test suite multiple times, some of the tests should either get stuck or fail on a condition check in byDeadlineM.

The issue appears to appear more frequently when running testnet test suites in parallel.

Note

Testnet tests can be executed in parallel using PARALLEL_TESTNETS=1 environment variable or by setting --test-options '--num-threads 8' in cabal test cardano-testnet execution (after that PR gets merged).

Sample log of a failure: babbagetransaction.txt (taken from: https://github.com/IntersectMBO/cardano-node/pull/5695/checks?check_run_id=22357754517)

Expected behavior
cardano-testnet does not hang, or retries, reports the failure with message explaining what happened.

Activity

  1. added
    type: bug
    on Apr 8, 2024
  2. carbolymer commented on Apr 8, 2024

    @carbolymer
    ContributorAuthor

    Initially, byDeadlineM usage was considered an issue here, which was partially removed in #5707 - but instead of test failures we started getting cardano-tesnet freezes.
    A suspicion here is that the test network is not advancing - the new blocks are not produced.

  3. added
    priority: high
    on Apr 9, 2024
  4. self-assigned this
    on Apr 10, 2024
  5. github-actions commented on May 11, 2024

    @github-actions
  6. github-actions commented on Jun 16, 2024

    @github-actions
  7. github-actions commented on Jul 20, 2024

    @github-actions
  8. self-assigned this
    on Sep 16, 2024
  9. 28 remaining items

  10. github-actions commented on Jun 21, 2026

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

  11. added 10 commits that reference this issue on Jul 11, 2026
    ce7e8ec
    8e49c0b
    a4f9fc0
    fdc16f8
    1e3b882
    fc79dcb
    2bf6a95
    af804c5
    fef3c2c
    07d953e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cardano-testnetpriority: hightype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions