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

Smoke test with mithril #1252

Merged
merged 8 commits into from
Jan 17, 2024
Merged

Smoke test with mithril #1252

merged 8 commits into from
Jan 17, 2024

Commits on Jan 16, 2024

  1. Create downloadLatestSnapshotTo using mithril-client

    Calls mithril-client to download and verify cardano-node db snapshots.
    This is particularly useful for running scenarios on public (test)
    networks.
    ch1bo committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    da61c74 View commit details
    Browse the repository at this point in the history
  2. Add --use-mithril to hydra-cluster executable

    This can be used to speed up smoke tests by downloading the latest
    snapshot and have the cardano-node synchronize less.
    ch1bo committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    2bc0f2b View commit details
    Browse the repository at this point in the history
  3. Update changelog

    ch1bo committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    1d42d78 View commit details
    Browse the repository at this point in the history
  4. Add use-mithril option to smoke test workflow

    This will also delete the cardano-node db/ on the runner to download it
    fresh from mithril.
    ch1bo committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    1024875 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    74c9d60 View commit details
    Browse the repository at this point in the history
  6. Add a MithrilLog tracer

    This keeps the log output of tests clean and consistent with outputs of
    cardano-node and hydra-node processes.
    ch1bo committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    faf3f88 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Make downloadSnapshotTo tracing more robust

    EOF errors are expected when reading all stdout (when the process exits)
    and we can safely ignore them.
    ch1bo committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    aaf89fb View commit details
    Browse the repository at this point in the history
  2. Test only that mithril-client progresses to step 3

    This makes the test quicker and asserts correct invocation.
    ch1bo committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    40d948c View commit details
    Browse the repository at this point in the history