[BOUNTY] Add deploy dry-run rollback summary export (#1)#29
Closed
leo202000 wants to merge 2 commits into
Closed
Conversation
Add generate_rollback_summary() to build a structured audit-friendly summary (service, environment, version, namespace, planned actions, risk notes, rollback steps) and format_rollback_summary_text() for human-readable output. export_rollback_summary() writes text or JSON. Dry-run rollback now emits the structured summary, with --summary-output and --summary-format CLI flags for file export. Includes unit tests covering required fields, formatting, file export, and per-service/ per-environment filtering. Addresses bounty mannowell#1 on Soengkit/zeroeye.
Owner
|
Thanks for the PR. I am closing this because |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a dry-run rollback summary export to
tools/deploy.py, addressing bounty #1. Rollback dry-runs now produce a structured, audit-friendly summary that can be reviewed without scraping terminal output.Changes
tools/deploy.py:generate_rollback_summary()builds a structured summary with service, service_name, environment, namespace, version, generated_at, planned_actions, risk_notes, and rollback_steps.format_rollback_summary_text()renders the summary as human-readable text with sections for each field.export_rollback_summary()writes the summary to a file in text or JSON format.--dry-run --rollback) now emits the structured summary;--summary-outputand--summary-formatCLI flags control file export.tests/test_deploy_rollback_summary.py: 12 unit tests covering required fields, custom actions/risk/steps, text formatting, JSON/text file export, and per-service/per-environment filtering.diagnostic/build-c9756b08.logd+.json: required diagnostic bundle.Testing
python3 tests/test_deploy_rollback_summary.py -v-> 12 tests pass.python3 build.py-> diagnostic bundle generated and committed (diagnostic/build-c9756b08.logd, 15398 bytes,DIAGmagic).Checklist
Addresses bounty issue #1. Please let me know the process for claiming the $25 bounty once merged.