Skip to content

Seed production-demo rows for a new minor line at branch cut #110

Description

@kojiromike

Summary

When a new minor release line is cut (e.g. v8.2.x), bump-tag.yml / IpMapBumper only advances rows whose branch_tag already matches a tag on that line. If no rows exist for the new line at the time of the first release, the bumper advances zero rows and the production-demo cells for the new line silently stay on the prior version (or stay empty).

The fix is to make seeding the production-demo rows for the new line part of the branch-cut step, so that the first bump-tag.yml run on the new line has rows to advance.

Why

  • Today, seeding is implicit and only happens because someone remembers to add rows ahead of the first bump. When it is forgotten, the first release on a new line is invisible from the demo farm and there is no error -- the bumper reports success with zero rows touched.
  • This is a silent failure mode that only surfaces when users (or the team) notice that demos for the new line are missing or stale.
  • Branch cut is the natural place for this: the line is being created, the tag scheme for it is known, and the seeding can be deterministic.

Proposed

  • Add a seeding step to the branch-cut tooling (or document it as a required step with a script in this repo) that inserts production-demo rows for the new line with branch_tag set to the initial tag for that line.
  • Optionally, have bump-tag.yml warn (not fail) when it advances zero rows on a line that is expected to have rows, so the silent case becomes loud.

Reference

Related to the release-automation umbrella tracked in openemr/openemr-devops#706.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions