Skip to main content
This is the release procedure to implement for ReportGeneratorTool. Use an immutable release artifact and record evidence for each promotion.

Before upgrading

Record the running artifact digest, source revision, runtime version and configuration names. Confirm the release’s required browser version, storage schema, portal adapter and API contract. Verify secrets are provisioned through the approved secret store. Keep production and staging credentials separate. Confirm the report-retention policy and snapshot only the data required by the recovery plan. Reject a promotion that lacks workspace authorization, credential containment or a tested workflow. The repository’s placeholder test command is not sufficient release evidence.

Staging verification

Use a synthetic device and test recipient. Submit a report, poll the job, inspect its PDF and verify provider acceptance of the email. Check negative temperatures, threshold boundaries, missing measurements and a quoted CSV field. Run concurrent jobs and confirm file, workspace and report isolation. Test invalid credentials, restricted recipients, dependency failures, cancellation and expiry. Confirm retrying an accepted request with the same idempotency key does not duplicate work or email.

Production promotion

  1. Record the release owner and the immutable artifact to promote.
  2. Apply additive configuration and storage changes before switching traffic.
  3. Drain or preserve in-flight jobs under the compatible worker version.
  4. Promote the verified artifact using the deployment procedure for the actual hosting environment.
  5. Run a controlled production smoke check with an approved device and recipient.
  6. Review job failures, delivery outcomes, authorization failures and cleanup backlog.
  7. Record the promotion result and the verified rollback artifact.
Do not restart orchestration history against incompatible workflow code. Version orchestrators or route new jobs to a compatible worker when workflow semantics change. A legacy endpoint must not silently acquire the v1 contract’s response shape.

Rollback triggers and procedure

Rollback when the release introduces authorization regressions, incorrect reports, duplicate delivery or sustained workflow failures. Pause new submissions or email delivery if continued work can increase impact. Restore the previous compatible artifact, preserve required additive schema and reconcile in-flight jobs. Verify downloads, workspace isolation, portal access and delivery after rollback. Do not roll back secret revocation, required security controls or data deletions. Email already submitted cannot be recalled. Before replaying a job, inspect its existing PDF and delivery evidence to avoid duplicate messages.

Versioning and release evidence

Use semantic versioning for the supported API contract: major for breaking behavior, minor for compatible capability and patch for compatible fixes. Treat version 0.x changes as requiring explicit compatibility notes. Assign a product release version and source tag only when its artifact and checks are complete. Record API and artifact versions separately when they evolve independently. Publish deprecation and migration instructions before removing a supported operation. This is the project’s operating standard; no historical support window is invented here.