Skip to content

tier4-e2e lifecycle: backup restore refused as newer config version (2.0.4 baseline on 2.0.3 code) fails four rows #4373

Open

Description

@pithead-developer

What's the problem

On develop-v2.0.5 (VERSION 2.0.3), the tier4-e2e lifecycle phase fails its backup restore round-trip because the restore refuses the archive: This backup's configuration was written by pithead 2.0.4; this machine runs 2.0.3. Update to 2.0.4 or later, then restore. The run's first lines already warn that the deployed config.json was written by pithead 2.0.4 while the checked-out code is 2.0.3. Three further lifecycle rows fail after the refused restore (the dashboard rows readable before the data_dir move, the encrypted restore after config-reset, and restoring the original config). Whether the mismatch comes from the bench baseline config or from a test fixture is unknown.

What it impacts

Any tier4-e2e targeted run on a release-line branch whose VERSION is below the version stamped in the bench's baseline config cannot pass the lifecycle phase. This hit PR #4293 (head 5144607) and masks the lifecycle behaviour it is meant to prove.

How I found it

**bench-ci job 4432@5144607e30bce8b8401fd0f6c40ee5c7998c9134** · pithead · tier4-e2e
- options: {"mode": "targeted"}
- status: completed · conclusion: failure · exit 1 · 57m 55s
- baseline verified: yes · rig restored: yes
- node guard: not recorded · no comparison recorded
- steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
- rows: 270 pass · 4 fail · 9 skip (by-design 6, missing 3)
- failed rows:
  - backup restore round-trip succeeded (no issue linked)
  - pre-move dashboard rows readable (no issue linked)
  - encrypted restore after config-reset starts the stack (no issue linked)
  - restore original config and healthy stack (no issue linked)
_Generated by `bench-ci evidence 4432@5144607e30bce8b8401fd0f6c40ee5c7998c9134`; re-run it to check._

The log line quoted above comes from the lifecycle phase's backup round-trip. The egress audit rows in the same job passed, so the audit loader is not the cause. Whether other branches show the same rows is unknown.

How important is it

Medium-high: lifecycle is a required e2e phase and every red row here is unowned until this exists.

Acceptance criteria

  • The source of the 2.0.4 stamp in the baseline config is identified.
  • A targeted tier4-e2e on a branch at VERSION 2.0.3 runs the lifecycle backup restore round-trip to a pass, or the run explicitly reports the version mismatch as an infrastructure state rather than a product failure.
  • The three dependent rows pass with it.

Possible solutions

  • Rebuild the bench baseline from the branch's version before the lifecycle phase.
  • Have the restore row skip with a named reason when the baseline config is newer than the code under test.

Activity

  1. added this to the v2.0.5 milestone on Nov 22, 2026
  2. pithead-developer commented on Nov 22, 2026

    @pithead-developer
    ContributorAuthor

    Same signature on a pithead 2.0.3 code head in job 4437@a88a9b3b305bb0d78be2e65d2588d953e81bab3d (PR #4268): baseline config written by 2.0.4, and the backup restore round-trip row fails. Three more rows red in the same run and not in this issue's list: dashboard carry cleanup restored its baseline safely, dashboard password apply preserves the served TLS certificate and key, dashboard password restore apply preserves the served TLS certificate and key. Their link to the refused restore is inferred from ordering, not confirmed.

  3. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    This also hits develop-v2.1.0 (VERSION 2.0.3), where the newer lifecycle harness fails a different set of seven rows from the same backup→restore round-trip. Launcher-free job on that base (PR #4268):

    **bench-ci job 4437@a88a9b3b305bb0d78be2e65d2588d953e81bab3d** · pithead · tier4-e2e
    - options: {"mode": "targeted"}
    - status: completed · conclusion: failure · exit 1 · 63m 58s
    - baseline verified: yes · rig restored: yes
    - node guard: not recorded · no comparison recorded
    - steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
    - rows: 308 pass · 7 fail · 5 skip (by-design 4, missing 1)
    - failed rows:
      - backup restore round-trip succeeded (no issue linked)
      - pre-move dashboard rows readable (no issue linked)
      - dashboard carry cleanup restored its baseline safely (no issue linked)
      - dashboard password apply preserves the served TLS certificate and key (no issue linked)
      - dashboard password restore apply preserves the served TLS certificate and key (no issue linked)
      - reset recovery returns the original baseline bytes, secrets and healthy stack (no issue linked)
      - apply proxy restarts (no issue linked)
    _Generated by `bench-ci evidence 4437@a88a9b3b305bb0d78be2e65d2588d953e81bab3d`; re-run it to check._
    

    PR #4269 (job 1053 on fbc9b18) shows the same seven rows. The acceptance criteria list only the older harness's dependent rows. On this line, dashboard carry cleanup restored its baseline safely, both TLS-preservation rows, reset recovery returns the original baseline bytes, secrets and healthy stack and apply proxy restarts should pass as well.

  4. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    Same cause seen on develop-v2.1.0: tier4-e2e job 4514@ae94120a0e71d8ff7c028aacf8a259b98a87994c (pithead PR #4328) opens with config.json was written by pithead 2.0.4; this is 2.0.3 and fails backup restore round-trip succeeded and pre-move dashboard rows readable. In that job dashboard carry cleanup restored its baseline safely and the two dashboard password … preserves the served TLS certificate and key rows (TLS identity could not be read before or after the operation) fail in the same stretch, between the refused restore and the reset-recovery step. I have not proved they cascade from it, so please keep them in this issue's acceptance until a run past the fix shows them green.

  5. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4302. #4373 is blocked on #4302 (Release pending: pithead 2.0.4). The review was right that PR #4376's fix, lowering the seeded config_version stamp from 2.0.4 to 2.0.3 in preflight, is the clamp the owner ruled out on #3664 and that docs/dev/releasing.md forbids. I reverted it, so head e02ced5 is identical to develop-v2.0.5. The cause is version skew: develop took VERSION 2.0.4 in f2a2bd0 (#4340), while develop-v2.0.5 and develop-v2.1.0 are still at 2.0.3, and the seeded bench config carries the live 2.0.4 stamp. That the bench baseline runs develop is inferred from this; I did not read the bench config directly. Done: the stamp's source is identified, the clamp is removed, and the PR body and a blocker comment on #4376 are updated. To unblock: the operator cuts 2.0.4 (#4302); then develop is forward-merged into develop-v2.0.5 and develop-v2.1.0 (#4175), taking develop's VERSION, and a targeted tier4-e2e lifecycle run on develop-v2.0.5 should pass without any rewrite. The existing v2.0.5 forward-merge draft #4325 is stale (VERSION 2.0.3, conflicting) and has no closing issue. #4376 now carries no code change; closing it or keeping it as the record is the runner's or owner's call.

    The runner resumes this issue when that one closes.

  6. added
    blocked
    on Nov 23, 2026
  7. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

    Same signature on a second branch (pithead#4424, VERSION 2.0.3 on the release line). The job log opens with config.json was written by pithead 2.0.4; this is 2.0.3, and the lifecycle backup restore round-trip fails with the same apply, down, restore, or up returned non-zero. Here the stack stays down afterwards (network mining_net not found, service "dashboard" is not running), so more rows cascade than the four listed above: the dashboard carry, both TLS-continuity rows, reset recovery and apply proxy restarts. Job 1073, on the pithead#4317 branch, shows the identical seven rows, so the cause is not this PR.

    bench-ci job 4585@3f0afc0188664a8289f1fabacf628391b5aa2180 · pithead · tier4-e2e

    • options: {"mode": "targeted"}
    • status: completed · conclusion: failure · exit 1 · 69m 18s
    • baseline verified: yes · rig restored: yes
    • node guard: not recorded · no comparison recorded
    • steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
    • rows: 311 pass · 7 fail · 5 skip (by-design 4, missing 1)
    • failed rows:
      • backup restore round-trip succeeded (no issue linked)
      • pre-move dashboard rows readable (no issue linked)
      • dashboard carry cleanup restored its baseline safely (no issue linked)
      • dashboard password apply preserves the served TLS certificate and key (no issue linked)
      • dashboard password restore apply preserves the served TLS certificate and key (no issue linked)
      • reset recovery returns the original baseline bytes, secrets and healthy stack (no issue linked)
      • apply proxy restarts (no issue linked)
        Generated by bench-ci evidence 4585@3f0afc0188664a8289f1fabacf628391b5aa2180; re-run it to check.
  8. removed
    blocked
    on Nov 27, 2026
  9. pithead-developer commented on Nov 27, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4502. #4302 is closed and 2.0.4 is published, but the blocker for #4373 is now #4502, the forward merge of 2.0.4 into develop-v2.0.5 and develop-v2.1.0. Its PR for develop-v2.0.5 (#4569) is open and mergeable but not merged: develop-v2.0.5 and develop-v2.1.0 are both still at VERSION 2.0.3 while develop is 2.0.4. The lifecycle backup→restore rows therefore still fail on version skew, and the owner's no-clamp ruling on #3664 means no stamp rewrite is allowed. PR #4376 carries no code change (identical to base) and its blocker comment is updated. What clears it: #4569 (and the develop-v2.1.0 merge) landing, then a targeted tier4-e2e lifecycle run on the updated develop-v2.0.5, which should pass unmodified. The runner or owner can then close #4376 or keep it as the record.

    The runner resumes this issue when that one closes.

  10. added
    blocked
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions