Skip to content

Finalize S3 validation evidence when deployment fails - #207

Merged
overtrue merged 2 commits into
mainfrom
fix/3385-s3-validation-deploy
Dec 3, 2026
Merged

overtrue merged 2 commits into
mainfrom
fix/3385-s3-validation-deploy

Conversation

@overtrue

@overtrue overtrue commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

31 S3 compatibility cases in rustfs/backlog#3385 exited during package installation. All 31 receipts still said RUNNING, and none recorded the installed binary or deployment topology.

This retries dpkg only when its own diagnostic reports lock contention. A validation run that still fails during setup attempts teardown and writes INFRA_ERROR with the setup output. The receipt keeps the installed binary digest empty when startup was never observed.

The runner tests cover a transient lock, a persistent lock, a bad package and both teardown outcomes. The S3, replication and Scanner test modules passed all 119 tests. On a local Debian VM, a real frontend lock delayed the install of a disposable package for three retries. An invalid archive failed on the first attempt.

@overtrue overtrue left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review verdict: Approved (LGTM) — reviewed head 7a637145 (Finalize S3 validation evidence when deployment fails).

  • rustfs-s3-compat-test.sh: retry_dpkg_lock bounds retries strictly to dpkg frontend/database lock contention with LC_ALL=C, failing fast on package or script errors; validation_setup_exit captures setup.log into test.out, runs env_teardown, and emits INFRA_ERROR with cleanup_status before exiting.
  • test_validation_s3_compatibility.py & validation-migration-review.json: New unit tests verify both PASS/FAIL teardown accounting and transient/package/timeout lock handling, and reviewed digests are updated.
  • CI: All 3 active checks (unit-and-governance, contract-tests, s3-script-tests) passed (local-smoke-profile skipped). Ready to squash-merge.

@overtrue
overtrue merged commit 42f7c68 into main Dec 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant