[Archive single node test] Implement archive test with mocked daemon
Introducing quick component test for archive node with mocked daemon which simulates sending precomputed blocks. Test scenario is easy:
- start archive node with runtime config (so genesis block will be included at startup)
- use mina advanced archive-blocks to send precomputed blocks to archive node
- validate all blocks are archived
- run replayer to consistency check
While developing thte test i introduced new mini framework for defining test case with setup i and tear down)
Test operates on new tiny framework for running tests with common setup and tear down linked in (https://github.com/MinaProtocol/mina/pull/16329)
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
$ ./_build/default/src/app/archive/archive.exe help run
Run an archive process that can store all of the data of Mina
archive.exe run
=== flags ===
[--config-file PATH] to the configuration file containing the genesis
ledger
(alias: -config-file)
[--delete-older-than int] Delete blocks that are more than n blocks lower
than the maximum seen block.
(alias: -delete-older-than)
[--log-json] Print log output as JSON (default: plain text)
(alias: -log-json)
[--log-level LEVEL] Set log level
(Internal|Spam|Trace|Debug|Info|Warn|Error|Faulty_peer|Fatal,
default: Info)
(alias: -log-level)
[--metrics-port PORT] metrics server for scraping via Prometheus
(default no metrics-server)
(alias: -metrics-port)
[--missing-blocks-width int] The width of block heights within which missing
blocks are reported in Prometheus metrics. If
the maximum height in the database is h and
missing-blocks-width is n, then
Coda_Archive_missing_blocks will report missing
blocks between heights max(1, h-n) and h
(default 2000)
(alias: -missing-blocks-width)
[--postgres-uri URI] URI for postgresql database (examples:
postgres://admin:codarules@postgres:5432/archiver)
(default:
postgres://admin:codarules@postgres:5432/archiver)
(alias: -postgres-uri)
[--server-port PORT] port to launch the archive server (default:
3086)
(alias: -server-port)
[-help] print this help text and exit
(alias: -?)
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me
!ci-build-me