GLRD Release Lifecycle
This page explains the lifecycle model used by the Garden Linux Release Database (GLRD): why lifecycle phases are structured the way they are, how dates are calculated by default, and how the versioning scheme works.
Lifecycle phases
Every release in GLRD has a lifecycle object. The phases present depend on the release type:
| Phase | Present for types | Meaning |
|---|---|---|
released | all | The date the release was published. |
extended | major, next | The date extended maintenance begins (after standard maintenance). |
eol | major, next, minor | The date support ends entirely. |
nightly and dev releases do not have extended or eol phases because they are not supported beyond their immediate build date.
Default major dates
When you create a major release without explicitly setting extended or eol dates, GLRD calculates defaults based on the Garden Linux Release Plan. The rules changed with major version 1877, so the defaults depend on the version.major of the release.
Current behavior (major ≥ 1877)
extended=releaseddate + 9 months (representing the standard maintenance phase)eol=releaseddate + 15 months, always adjusted to end at the end of a month (representing standard maintenance + 6 months of extended maintenance)
An exception is made for LTS (Long-Term Support) releases, where the eol date defaults to 5 years from the released date, also adjusted to end at the end of the month. You can flag a major release as LTS by passing the --lts option during creation, which sets the "lts" attribute to true.
Example — Standard major-2150:
| Phase | Date | Description |
|---|---|---|
released | 2026-02-23 | Publication date |
extended | 2026-11-23 (+ 9 months) | Extended maintenance begins |
eol | 2027-05-31 (+ 15 months) | EOL (ends at end of month) |
Example — LTS major-1877 (created with --lts):
| Phase | Date | Description |
|---|---|---|
released | 2025-05-26 | Publication date |
extended | 2026-02-26 (+ 9 months) | Extended maintenance begins |
eol | 2030-05-31 (+ 5 years) | EOL (ends at end of month) |
You can always override the calculated defaults by passing --lifecycle-extended-isodatetime and --lifecycle-eol-isodatetime to glrd-manage --create.
Legacy behavior (major < 1877)
Major releases before 1877 were created under an earlier lifecycle model with a shorter maintenance window and no end-of-month rounding:
extended=releaseddate + 6 monthseol=releaseddate + 9 months (not rounded to the end of the month)
Lifecycle compliance check
The lifecycle compliance check (glrd --check-lifecycle) hard excludes releases with version.major < 1877. These releases are neither validated nor reported, because they do not follow the current lifecycle rules. The threshold is defined as LIFECYCLE_CHECK_MIN_MAJOR = 1877 in the GLRD codebase (glrd/query.py).
Note that some early major releases carry manually maintained dates that deviate from the +6/+9 default described above.
Major and minor release dependencies
There is a dependency between the lifecycle.eol fields of major and minor releases within the same major version:
- Intermediate minor releases: The
eolof each minor release is set to thereleaseddate of the next minor release in the same major series. This means support for a given minor ends when the next patch is available. - Latest minor release: The
eolof the most recent minor release always matches theeolof the parent major release. This ensures the final patch remains supported until the major version reaches end-of-life. - Major release
eol: Marks the end of support for the entire major version, including all its minor releases.
When you create a new minor release with glrd-manage --create minor, the previous minor release's eol is automatically updated to the new minor release's released date.
Note on the extended phase
The extended lifecycle field applies to major releases only. It has no direct technical effect on minor releases and is an administrative date that tracks when extended maintenance begins for the parent major version.
Example — major-1312 series:
| Release | released | eol | Reason |
|---|---|---|---|
major-1312 | 2023-11-16 | 2024-08-03 | Major EOL |
minor-1312.1 | 2023-11-23 | 2024-01-15 | Next minor release date |
minor-1312.2 | 2024-01-15 | 2024-02-14 | Next minor release date |
minor-1312.7 | 2024-07-03 | 2024-08-03 | Inherits major EOL (last minor) |
Nightly and development release dates
nightly and dev releases only carry a released date. They have no extended or eol phase because:
- Nightly builds are ephemeral: each nightly is superseded by the next nightly run.
- Development releases are manual snapshots for testing; they are not formally supported.
Versioning scheme
Garden Linux introduced semantic versioning starting at major version 2017. GLRD stores both pre- and post-threshold releases and selects the correct schema automatically:
| Scheme | Applies to | Version format | Example |
|---|---|---|---|
| v1 | major < 2017 | major.minor | 1592.6, 27.0 |
| v2 | major ≥ 2017 | major.minor.patch | 2017.0.0, 2222.1.5 |
The threshold is defined as V2_SCHEMA_THRESHOLD = 2017 in the GLRD codebase (glrd/util.py). Any release with a version.major value of 2017 or higher uses the v2 schema and requires the patch field in version objects for minor, nightly, and dev releases.
For major and next releases, the version only ever stores major; the distinction between v1 and v2 does not affect their schema shape.
Schema v2.1 (current default)
Schema v2.1 is a backward-compatible evolution of v2 and the default for new releases (SCHEMA_VERSION = "2.1" in glrd/util.py). It adds an optional attributes.lts flag to major and next releases to mark Long-Term Support releases. Because the field is optional, all existing v2 data stays valid without changes.
The major.minor.patch threshold is unchanged (still 2017); the lts flag is an orthogonal addition. LTS applies from major 1877 onwards — this is enforced by the lifecycle/management logic (see Default major dates), not by the schema, which only describes the optional field.