From 176dcf165744bd1f3e86d098e39927d4ce8a876f Mon Sep 17 00:00:00 2001 From: Aria00pp <123830753+Aria00pp@users.noreply.github.com> Date: Mon, 1 Jun 2026 17:50:10 +0330 Subject: [PATCH] Add release readiness delivery docs --- README.md | 2 +- docs/PACKAGING.md | 4 +- release/BUILD_VERIFICATION.md | 4 +- release/FINAL_DELIVERY_SEQUENCE.md | 73 ++++++++++++ release/README.md | 9 +- release/checklists/customer_zip_checklist.md | 5 +- .../checklists/release_readiness_checklist.md | 110 ++++++++++++++++++ release/scripts/assemble_customer_package.py | 21 +++- release/templates/customer_zip_README.md | 48 ++++++++ release/templates/maintainer_release_notes.md | 14 +++ 10 files changed, 275 insertions(+), 15 deletions(-) create mode 100644 release/FINAL_DELIVERY_SEQUENCE.md create mode 100644 release/checklists/release_readiness_checklist.md create mode 100644 release/templates/customer_zip_README.md diff --git a/README.md b/README.md index 1eca856..678d217 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ python -m pip install pyserial ## Release and customer handoff packaging -See [`release/README.md`](release/README.md) for the proposed handoff folder structure, [`docs/PACKAGING.md`](docs/PACKAGING.md) for build details, [`docs/customer_handoff.md`](docs/customer_handoff.md) for customer instructions, and [`release/checklists/customer_zip_checklist.md`](release/checklists/customer_zip_checklist.md) before assembling a customer ZIP. +See [`release/README.md`](release/README.md) for the proposed handoff folder structure, [`release/FINAL_DELIVERY_SEQUENCE.md`](release/FINAL_DELIVERY_SEQUENCE.md) for the exact maintainer sequence, [`release/checklists/release_readiness_checklist.md`](release/checklists/release_readiness_checklist.md) for final release gates, [`docs/PACKAGING.md`](docs/PACKAGING.md) for build details, [`docs/customer_handoff.md`](docs/customer_handoff.md) for customer instructions, and [`release/checklists/customer_zip_checklist.md`](release/checklists/customer_zip_checklist.md) before assembling a customer ZIP. A scripted PyInstaller build is: diff --git a/docs/PACKAGING.md b/docs/PACKAGING.md index 70bf731..ed1245f 100644 --- a/docs/PACKAGING.md +++ b/docs/PACKAGING.md @@ -44,7 +44,7 @@ The script copies these items into `release/customer_package/PortableAVRControlS 1. `release\artifacts\windows\PortableAVRControlStudio.exe` 2. `release/artifacts/firmware/PortableAVRControlStudio.ino.hex` -3. `README.md` +3. `release/templates/customer_zip_README.md` staged as `README.md` 4. `docs\customer_handoff.md` 5. `docs\PROTOCOL.md` 6. `docs\product_spec.md` @@ -74,4 +74,4 @@ The expected primary HEX output is `release/artifacts/firmware/PortableAVRContro ## Developer customer ZIP checklist -Use `release/checklists/customer_zip_checklist.md` before sending a customer ZIP. Use `release/templates/maintainer_release_notes.md` to record software checks, Uno compile evidence, EXE build evidence, HEX artifact evidence, ZIP evidence, and explicit physical hardware test status. +Use `release/checklists/release_readiness_checklist.md` for final release readiness, `release/checklists/customer_zip_checklist.md` before sending a customer ZIP, and `release/FINAL_DELIVERY_SEQUENCE.md` for the exact maintainer delivery sequence. Use `release/templates/maintainer_release_notes.md` to record software checks, Uno compile evidence, EXE build evidence, HEX artifact evidence, ZIP evidence, and explicit physical hardware test status. diff --git a/release/BUILD_VERIFICATION.md b/release/BUILD_VERIFICATION.md index 6f01508..0f310e7 100644 --- a/release/BUILD_VERIFICATION.md +++ b/release/BUILD_VERIFICATION.md @@ -106,7 +106,7 @@ Expected staged contents: release/customer_package/PortableAVRControlStudio-customer-handoff/ PortableAVRControlStudio.exe PortableAVRControlStudio.ino.hex - README.md + README.md # Staged from release/templates/customer_zip_README.md docs/ customer_handoff.md PROTOCOL.md @@ -116,7 +116,7 @@ release/customer_package/PortableAVRControlStudio-customer-handoff/ arduino_uno_avr.json ``` -Verify the required staged files exist: +Verify the required staged files exist, including the customer-facing README staged from `release/templates/customer_zip_README.md`: ```bash test -f release/customer_package/PortableAVRControlStudio-customer-handoff/PortableAVRControlStudio.exe diff --git a/release/FINAL_DELIVERY_SEQUENCE.md b/release/FINAL_DELIVERY_SEQUENCE.md new file mode 100644 index 0000000..1042f6e --- /dev/null +++ b/release/FINAL_DELIVERY_SEQUENCE.md @@ -0,0 +1,73 @@ +# Maintainer Final Delivery Sequence + +Follow this exact sequence before sending the first customer ZIP for Portable AVR Control Studio for Arduino Uno / ATmega328P AVR. Do not add product features during this release-readiness pass. + +## 1. Run CI + +1. Select the source commit for the release candidate. +2. Run or verify the repository CI workflow for that commit. +3. Confirm the Python syntax check and parser smoke check pass. +4. Confirm the Arduino Uno AVR compile check passes in CI, or document the local maintainer reproduction if CI cannot complete the AVR compile check. +5. Record CI links, logs, commit SHA, and results in `release/templates/maintainer_release_notes.md`. + +## 2. Build the EXE on Windows + +1. On a Windows host, run: + + ```powershell + powershell -ExecutionPolicy Bypass -File .\release\scripts\build_windows_exe.ps1 + ``` + +2. Confirm `release\artifacts\windows\PortableAVRControlStudio.exe` exists. +3. Record host OS, Python version, PyInstaller version, pyserial version, file size, and SHA-256 checksum. +4. If you launch the EXE, record it as a software launch check only unless separate Arduino Uno hardware evidence is attached. + +## 3. Build the HEX using Arduino CLI + +1. On a host with Arduino CLI, run: + + ```bash + bash release/scripts/build_uno_firmware_hex.sh + ``` + +2. Confirm `release/artifacts/firmware/PortableAVRControlStudio.ino.hex` exists. +3. Record Arduino CLI version, `arduino:avr` core version, host OS, file size, and SHA-256 checksum. +4. Keep the HEX described as a prepared firmware artifact unless bundled upload tooling has been tested for this exact release. + +## 4. Assemble the ZIP + +1. After the EXE and HEX files are present, run: + + ```bash + python release/scripts/assemble_customer_package.py + ``` + +2. Confirm `release/customer_package/PortableAVRControlStudio-customer-handoff.zip` exists. +3. Verify the ZIP inventory includes the customer README template, EXE, HEX, handoff docs, protocol docs, product spec, testing notes, and Arduino Uno profile. +4. Confirm generated `.exe`, `.hex`, and `.zip` files are ignored and not staged for git. + +## 5. Fill release notes + +1. Complete `release/templates/maintainer_release_notes.md` for the release candidate. +2. Include CI, EXE, HEX, ZIP inventory, checksums, and physical hardware test status. +3. Mark physical hardware validation as not performed unless a human maintainer provides evidence for the exact board, wiring, firmware artifact checksum, drivers, sensors, power supply, enclosure assumptions, and hardware profile. + +## 6. Optionally test on physical Arduino Uno + +Physical hardware validation is optional for this draft handoff and must be documented separately from build checks. + +If performed, test only against the final Arduino Uno / ATmega328P AVR board, the final HEX artifact, and the reviewed hardware profile. Record evidence before changing customer-facing claims. + +If not performed, do not imply physical validation. Leave release notes and customer wording clear that physical hardware remains unvalidated by this package. + +## 7. Send ZIP to customer only after claim review + +Before sending the ZIP: + +- Review all customer-facing text for unsupported claims. +- Confirm demo mode is described as simulation only. +- Confirm unknown hardware is handled through documented profiles, not automatic detection. +- Confirm the package does not claim one-click production upload unless uploader tooling is bundled and tested. +- Confirm no generated EXE, HEX, or ZIP files are committed to git. + +Send the customer ZIP only after this claim review is complete. diff --git a/release/README.md b/release/README.md index 3b7bf34..a057f74 100644 --- a/release/README.md +++ b/release/README.md @@ -16,9 +16,12 @@ release/ customer_package/ # Generated staging folder and ZIP (not committed) templates/ maintainer_release_notes.md # Evidence template for release candidates + customer_zip_README.md # Customer-facing README staged as ZIP README.md BUILD_VERIFICATION.md # Maintainer artifact build and verification steps checklists/ customer_zip_checklist.md # Developer checklist for assembling the ZIP + release_readiness_checklist.md # Final delivery readiness checklist by evidence category + FINAL_DELIVERY_SEQUENCE.md # Exact maintainer sequence before sending ZIP ``` ## Intended customer ZIP contents @@ -36,12 +39,12 @@ PortableAVRControlStudio-customer-handoff/ testing.md profiles/ arduino_uno_avr.json - README.md + README.md # Copied from release/templates/customer_zip_README.md ``` ## Build verification and package assembly -Use `release/BUILD_VERIFICATION.md` for the maintainer build verification workflow. After building the EXE and Uno HEX artifacts, run: +Use `release/FINAL_DELIVERY_SEQUENCE.md` for the exact final delivery sequence, `release/checklists/release_readiness_checklist.md` for the release readiness checklist, and `release/BUILD_VERIFICATION.md` for artifact build verification. After building the EXE and Uno HEX artifacts, run: ```bash python release/scripts/assemble_customer_package.py @@ -49,7 +52,7 @@ python release/scripts/assemble_customer_package.py The script stages `release/customer_package/PortableAVRControlStudio-customer-handoff/` and creates `release/customer_package/PortableAVRControlStudio-customer-handoff.zip`. Both generated outputs are ignored by git. -Record release evidence in `release/templates/maintainer_release_notes.md`. +Record release evidence in `release/templates/maintainer_release_notes.md`. The ZIP `README.md` is staged from `release/templates/customer_zip_README.md`, not from the repository root README. ## Important release boundaries diff --git a/release/checklists/customer_zip_checklist.md b/release/checklists/customer_zip_checklist.md index 00084d9..00c2631 100644 --- a/release/checklists/customer_zip_checklist.md +++ b/release/checklists/customer_zip_checklist.md @@ -1,6 +1,6 @@ # Developer Checklist: Customer ZIP Package -Use this checklist before preparing a customer handoff ZIP for Portable AVR Control Studio. Keep software build evidence separate from any physical Arduino Uno hardware validation evidence. +Use this checklist before preparing a customer handoff ZIP for Portable AVR Control Studio. For the complete final release gate, also use `release/checklists/release_readiness_checklist.md`. Keep software build evidence separate from any physical Arduino Uno hardware validation evidence. ## 1. Confirm source and target @@ -51,7 +51,7 @@ Use this checklist before preparing a customer handoff ZIP for Portable AVR Cont - [ ] Confirm the staged folder contains exactly the required release files: - [ ] `PortableAVRControlStudio.exe` - [ ] `PortableAVRControlStudio.ino.hex` - - [ ] `README.md` + - [ ] `README.md` staged from `release/templates/customer_zip_README.md` - [ ] `docs/customer_handoff.md` - [ ] `docs/PROTOCOL.md` - [ ] `docs/product_spec.md` @@ -69,5 +69,6 @@ Use this checklist before preparing a customer handoff ZIP for Portable AVR Cont ## 6. Final package review - [ ] Open the ZIP and confirm the expected files are present. +- [ ] Confirm the ZIP `README.md` is the short customer-facing template, not the repository developer README. - [ ] Confirm generated EXE, HEX, and ZIP artifacts are ignored and not staged for git. - [ ] Keep the GitHub PR as Draft until Python smoke checks and Uno AVR compile checks are documented and reproducible in CI or maintainer notes. diff --git a/release/checklists/release_readiness_checklist.md b/release/checklists/release_readiness_checklist.md new file mode 100644 index 0000000..f1b315d --- /dev/null +++ b/release/checklists/release_readiness_checklist.md @@ -0,0 +1,110 @@ +# Release Readiness Checklist: First Customer Delivery + +Use this checklist for the first customer delivery of Portable AVR Control Studio for Arduino Uno / ATmega328P AVR. Keep each evidence category separate so maintainers do not confuse software build checks with physical hardware validation. + +## Release scope + +- [ ] Source commit is selected and recorded in `release/templates/maintainer_release_notes.md`. +- [ ] Delivery target is Arduino Uno / ATmega328P AVR using the documented `arduino:avr:uno` firmware build. +- [ ] Included hardware profile is `docs/profiles/arduino_uno_avr.json` or another reviewed profile approved for the delivery. +- [ ] Customer-facing runtime settings are aligned across firmware, GUI, README, protocol docs, and product docs. +- [ ] No generated `.exe`, `.hex`, or `.zip` artifacts are committed to git. + +## 1. CI checks + +Record CI evidence before producing the customer ZIP. + +- [ ] Run or verify the repository CI workflow for the selected source commit. +- [ ] Confirm the Python syntax check passed: + + ```bash + python -m py_compile gui/portable_avr_control_studio.py + ``` + +- [ ] Confirm the parser smoke check from `docs/testing.md` passed. +- [ ] Confirm the CI Arduino Uno AVR compile check passed, or record why the check had to be reproduced locally. +- [ ] Save CI links, logs, commit SHA, and pass/fail status in `release/templates/maintainer_release_notes.md`. + +## 2. Windows EXE build + +Build the Windows app artifact on a Windows host after CI evidence is available. + +- [ ] Run the scripted Windows EXE build: + + ```powershell + powershell -ExecutionPolicy Bypass -File .\release\scripts\build_windows_exe.ps1 + ``` + +- [ ] Confirm this file exists: + + ```text + release\artifacts\windows\PortableAVRControlStudio.exe + ``` + +- [ ] Record Windows version, Python version, PyInstaller version, pyserial version, file size, and SHA-256 checksum. +- [ ] Launch the EXE on the Windows build/test host and record only that the app opens, unless separate physical Arduino Uno evidence is attached. +- [ ] Do not describe the EXE as a tested hardware controller unless the optional hardware validation section has matching evidence. + +## 3. Arduino Uno HEX build + +Build the prepared firmware artifact with Arduino CLI for the Uno target. + +- [ ] Run the scripted Arduino Uno HEX build: + + ```bash + bash release/scripts/build_uno_firmware_hex.sh + ``` + +- [ ] Confirm this file exists: + + ```text + release/artifacts/firmware/PortableAVRControlStudio.ino.hex + ``` + +- [ ] Record Arduino CLI version, `arduino:avr` core version, build host OS, file size, and SHA-256 checksum. +- [ ] Treat the HEX as a prepared firmware artifact. Do not claim customer one-click production upload unless uploader tooling is bundled and tested with the exact artifact, board, COM-port behavior, and profile. + +## 4. Customer ZIP assembly + +Assemble the customer ZIP only after the CI, Windows EXE, and Arduino Uno HEX sections are complete or explicitly documented. + +- [ ] Run the package assembly script: + + ```bash + python release/scripts/assemble_customer_package.py + ``` + +- [ ] Confirm this ZIP exists: + + ```text + release/customer_package/PortableAVRControlStudio-customer-handoff.zip + ``` + +- [ ] Confirm the staged package contains: + - [ ] `PortableAVRControlStudio.exe` + - [ ] `PortableAVRControlStudio.ino.hex` + - [ ] `README.md` copied from `release/templates/customer_zip_README.md` + - [ ] `docs/customer_handoff.md` + - [ ] `docs/PROTOCOL.md` + - [ ] `docs/product_spec.md` + - [ ] `docs/testing.md` + - [ ] `docs/profiles/arduino_uno_avr.json` +- [ ] Record ZIP file size, SHA-256 checksum, and package inventory. +- [ ] Confirm generated EXE, HEX, and ZIP outputs remain ignored by git and are not staged for commit. + +## 5. Optional physical hardware validation + +This section is optional for the draft package and must remain separate from build evidence. + +- [ ] If not performed, mark release notes as: `Not performed. No physical Arduino Uno hardware validation is claimed for this release candidate.` +- [ ] If performed, attach human-provided evidence for the exact Arduino Uno / ATmega328P AVR board, firmware artifact checksum, hardware profile, wiring, relay/buzzer drivers, sensor input, power supply, enclosure assumptions, and test result. +- [ ] If hardware validation is not performed, customer-facing notes must continue to say that physical board, wiring, outputs, EEPROM behavior, upload process, and field installation safety are not yet physically validated by this package. + +## 6. Final claim review before sending + +- [ ] Release notes are filled in and reviewed. +- [ ] The customer ZIP README is short, customer-facing, and does not claim unsupported validation. +- [ ] Demo mode is described as simulation only. +- [ ] Unknown hardware is handled through documented profiles, not automatic detection claims. +- [ ] Firmware upload is described as a prepared-artifact workflow unless bundled uploader tooling has been tested. +- [ ] Send the ZIP to the customer only after this claim review is complete. diff --git a/release/scripts/assemble_customer_package.py b/release/scripts/assemble_customer_package.py index 6ec99d6..a3c3cb5 100755 --- a/release/scripts/assemble_customer_package.py +++ b/release/scripts/assemble_customer_package.py @@ -16,14 +16,23 @@ PACKAGE_NAME = "PortableAVRControlStudio-customer-handoff" REQUIRED_COPIES = ( - (Path("release/artifacts/windows/PortableAVRControlStudio.exe"), Path("PortableAVRControlStudio.exe")), - (Path("release/artifacts/firmware/PortableAVRControlStudio.ino.hex"), Path("PortableAVRControlStudio.ino.hex")), - (Path("README.md"), Path("README.md")), + ( + Path("release/artifacts/windows/PortableAVRControlStudio.exe"), + Path("PortableAVRControlStudio.exe"), + ), + ( + Path("release/artifacts/firmware/PortableAVRControlStudio.ino.hex"), + Path("PortableAVRControlStudio.ino.hex"), + ), + (Path("release/templates/customer_zip_README.md"), Path("README.md")), (Path("docs/customer_handoff.md"), Path("docs/customer_handoff.md")), (Path("docs/PROTOCOL.md"), Path("docs/PROTOCOL.md")), (Path("docs/product_spec.md"), Path("docs/product_spec.md")), (Path("docs/testing.md"), Path("docs/testing.md")), - (Path("docs/profiles/arduino_uno_avr.json"), Path("docs/profiles/arduino_uno_avr.json")), + ( + Path("docs/profiles/arduino_uno_avr.json"), + Path("docs/profiles/arduino_uno_avr.json"), + ), ) @@ -40,7 +49,9 @@ def parse_args() -> argparse.Namespace: def copy_required_files(repo_root: Path, package_dir: Path) -> None: - missing_sources = [str(src) for src, _ in REQUIRED_COPIES if not (repo_root / src).is_file()] + missing_sources = [ + str(src) for src, _ in REQUIRED_COPIES if not (repo_root / src).is_file() + ] if missing_sources: missing_list = "\n".join(f" - {path}" for path in missing_sources) raise FileNotFoundError( diff --git a/release/templates/customer_zip_README.md b/release/templates/customer_zip_README.md new file mode 100644 index 0000000..44aa9bd --- /dev/null +++ b/release/templates/customer_zip_README.md @@ -0,0 +1,48 @@ +# Portable AVR Control Studio Customer Package + +## What this package is + +This ZIP contains a Windows desktop app and a prepared Arduino Uno / ATmega328P AVR firmware artifact for Portable AVR Control Studio. It is intended for a reviewed customer handoff using the included Arduino Uno hardware profile. + +## How to start the app + +1. Extract the ZIP to a normal folder on a Windows PC. +2. Open the extracted folder. +3. Double-click `PortableAVRControlStudio.exe`. +4. If Windows shows a SmartScreen or security prompt, confirm the package source with your supplier before continuing. + +The app can open without an Arduino connected. + +## What demo mode means + +Demo mode is simulation only. It lets you view the screens and practice the workflow without communicating with physical hardware. Demo mode does not prove that an Arduino Uno, relay, buzzer, sensor, EEPROM, wiring, power supply, or enclosure has been physically validated. + +## How to connect Arduino Uno + +1. Use an Arduino Uno / ATmega328P AVR board that matches the included hardware profile. +2. Connect the Uno to the Windows PC with a USB data cable. +3. Wait for Windows to assign a COM port. +4. In the app, select that COM port and keep the default `115200` baud setting unless your supplier provided different firmware notes. +5. Confirm wiring against `docs/profiles/arduino_uno_avr.json` before connecting relays, buzzers, sensors, external power, or field wiring. + +Unknown hardware is not automatically detected. Use only reviewed and documented hardware profiles. + +## What the `.hex` file is + +`PortableAVRControlStudio.ino.hex` is a prepared firmware artifact for Arduino Uno / ATmega328P AVR. Treat it as an artifact for a maintainer or developer upload process unless this ZIP also includes a tested uploader tool and exact upload instructions. + +This package does not claim one-click production firmware upload unless your supplier separately provides bundled, tested uploader tooling for the final board and COM-port procedure. + +## What is not yet physically validated + +Unless your supplier provides separate written evidence, this package does not claim physical validation of: + +- Arduino Uno USB serial behavior on your exact PC and board. +- Sensor wiring, scaling, and threshold behavior. +- Relay driver wiring, output polarity, and load safety. +- Buzzer wiring and polarity. +- EEPROM save/load behavior on the selected physical board. +- Firmware upload procedure on customer hardware. +- Power supply, enclosure, cable strain relief, or field-installation safety. + +For more detail, see `docs/customer_handoff.md`. diff --git a/release/templates/maintainer_release_notes.md b/release/templates/maintainer_release_notes.md index c605ba7..a94b595 100644 --- a/release/templates/maintainer_release_notes.md +++ b/release/templates/maintainer_release_notes.md @@ -12,6 +12,18 @@ Source commit: - Customer package staging folder: `release/customer_package/PortableAVRControlStudio-customer-handoff/` - Customer package ZIP: `release/customer_package/PortableAVRControlStudio-customer-handoff.zip` +## Final delivery sequence confirmation + +Complete each step in order before sending the ZIP to the customer. See `release/FINAL_DELIVERY_SEQUENCE.md` for details. + +- [ ] Run CI for the selected source commit. +- [ ] Build the EXE on Windows. +- [ ] Build the Arduino Uno HEX using Arduino CLI. +- [ ] Assemble the customer ZIP. +- [ ] Fill these release notes with links, versions, checksums, and inventory evidence. +- [ ] Optionally test on physical Arduino Uno and attach evidence, or mark hardware validation as not performed. +- [ ] Review claims and send the ZIP to the customer only after the review is complete. + ## Software checks performed Record software-only checks here. Include commands, host OS, tool versions, and pass/fail status. @@ -103,3 +115,5 @@ Physical test evidence summary: - [ ] No claim of physical hardware testing is made unless evidence is attached above. - [ ] No one-click production upload claim is made unless uploader tooling is bundled and tested. - [ ] Generated EXE, HEX, and ZIP artifacts are not committed to git. +- [ ] The ZIP `README.md` is staged from `release/templates/customer_zip_README.md` and avoids unsupported claims. +- [ ] The customer ZIP is not sent until this claim review is complete.