Skip to content

Improve upgrade safety and deployment guardrail workflows #129

@franrolotti

Description

@franrolotti

Context

#119 introduces upgrade safety validation and deploy/upgrade guardrail scripts.
This follow-up issue intends to track and improve these workflows.

Objective

Improve reliability, clarity, and operational safety of upgrade validation and deployment scripts used in CI and release processes.

Scope

  • Upgrade safety CI workflow (.github/workflows/upgrade-safety-check.yml)
  • Upgrade safety script (scripts/check_upgrade_safety.sh)
  • Deploy/upgrade scripts:
    • script/UpgradeValidate.s.sol
    • script/UpgradeExecute.s.sol
    • script/UpgradePostValidate.s.sol

Proposed improvements

  • Standardize workflow naming, job naming, and step labeling for clarity.
  • Ensure all script/tool invocations are CI-safe and non-interactive.
  • Improve script ergonomics:
    • clearer errors
    • stronger precondition checks
    • better logging for operators
  • Revisit warning handling strategy (avoid permanent suppression where possible).
  • Document expected env vars and recommended execution sequence for upgrades.
  • Verify branch/reference assumptions are explicit and consistent (dev baseline vs PR HEAD).

Acceptance criteria

  • CI upgrade safety workflow is stable on PRs to dev.
  • Deploy/upgrade scripts have clear failure modes and operator guidance.
  • Validation flow is reproducible locally and in CI.
  • Documentation covers end-to-end upgrade validation + execution + post-validation steps.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions