Skip to content

build: bump amaru to pragma-org/amaru main (5923f085)#47

Merged
paolino merged 5 commits into
mainfrom
chore/bump-amaru-pragma-main
Jun 29, 2026
Merged

build: bump amaru to pragma-org/amaru main (5923f085)#47
paolino merged 5 commits into
mainfrom
chore/bump-amaru-pragma-main

Conversation

@paolino

@paolino paolino commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

What

Bump the producer image's amaru to pragma-org/amaru main (5923f0858da464256e1664337b478511b6d3fcee, 2026-06-25). The fork's feat/testnet-bootstrap line is fully merged upstream, so we track main directly instead of the (now-redundant) fork branch.

Supersedes #45 (which pinned the orphaned pre-merge 4de2db13).

Why this commit + what the testnet must do

Validated locally against the cardano_amaru cluster:

  • Bootstrap OKbootstrap-producer runs create-snapshots + bootstrap and writes /srv/amaru/testnet_42 (exit 0).
  • Relay followsamaru-relay-1 tip tracked p1 (104→111→120→125→137→143, exact-match twice).

Main introduced two deliberate API changes the testnet must accommodate (no amaru code change needed):

  1. epoch_length = active_slot_coeff_inverse * epoch_length_scale_factor * consensus_security_param is now an invariant (no direct epoch_length override). The cardano_amaru profile must use epoch_length = 125 (k=5, 1/f=5, scale_factor=5) — 120 is unreachable (4.8) and falls back to mainnet defaults → expected epoch 0 bootstrap failure.
  2. amaru run renamed --era-history-file--era-history and dropped --global-parameters-file (global params come from AMARU_GLOBAL_* env).

Non-blocking: relay logs recurring keepalive-NN terminated / invalid state: Idle <- Done peer-keepalive churn; it follows regardless.

paolino added 5 commits June 11, 2026 18:27
7bb4102a revert forecast-stake hack (state.rs:448 cause) + 4165a5f4 null active_stake.
Stops before f059f024/4de2db13 (rename --cardano-db-dir + remove --targets-file = call-site rework).
…reate-snapshots CLI

KtorZ renamed --cardano-db-dir -> --cardano-node-db, replaced --targets-file with
repeated --snapshot "<point>::<parent_point>" (Point = <slot>.<hash>), and made
--epoch the TARGET epoch needing the 3 prior snapshots. Adapt the producer
invocations (3 --snapshot args, --epoch = first_epoch + 3 for create-snapshots and
amaru bootstrap) and the two bats amaru stubs that parsed the old --targets-file.
…n CLI

amaru dropped 'run --global-parameters-file' for individual AMARU_GLOBAL_*
cli/env overrides and renamed --era-history-file to --era-history. For a
Testnet network the global parameters now come from those overrides, so the
relay entrypoint derives AMARU_GLOBAL_* from global-parameters.json before
exec'ing amaru run (create-snapshots/bootstrap don't use global params).
nix checks, the relay bats, and docs follow.
… #959-era harness)

Post pragma-org/amaru#959, a Testnet network's "amaru bootstrap" takes its global
parameters as AMARU_GLOBAL_* overrides and "amaru run" requires --era-history.

- bootstrap-producer.sh: derive k, 1/f and scale_factor from the shelley genesis
  and export AMARU_GLOBAL_* so create-snapshots and bootstrap get the custom
  testnet parameters (epoch_length = k * (1/f) * scale_factor).
- nix/checks.nix: amaru-run-bootstrap passes --era-history.

Harness for bootstrapping a fast-tracked (all hard forks at epoch 0) cluster
against amaru #959, used to reproduce and validate the null-era divide-by-zero
fix (lambdasistemi/amaru fix/era-summary-exclusive-end).
feat/testnet-bootstrap is fully merged upstream; track main directly.
Validated locally with the epoch125 testnet profile: bootstrap (wrote
/srv/amaru/testnet_42) + relay follow (tip tracks p1). Requires the
testnet-side --era-history / AMARU_GLOBAL_* relay CLI (no
--global-parameters-file) and epoch_length=125 (k*(1/f)*scale_factor).
@paolino paolino self-assigned this Jun 27, 2026
@paolino paolino added the chore Maintenance label Jun 27, 2026
@paolino paolino merged commit 6258c39 into main Jun 29, 2026
4 checks passed
@paolino paolino deleted the chore/bump-amaru-pragma-main branch June 29, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant