Release versioning and automation
Helium uses version metadata and automated checks to turn changes on main into a traceable release. The checks validate the patch set, protect code and content quality, keep generated data aligned, and notify maintainers when human review is needed.
Version identity
Version metadata
The release identity combines the Helium major value, the Chromium-based minor value, and a Helium revision value. An optional platform revision extends this identity when a platform packaging project tracks changes beyond the main Helium source tree. utils/helium_version.py reads these values and can print the release identity or add its named parts to Chromium's build version.
The Chromium version also selects the source used for validation and its cache identity. A change to that value therefore changes both the release identity and the upstream source baseline. The current Chromium version input is 154.0.8037.57. The current Helium revision input is 2. The current metadata files are version.txt, chromium_version.txt, and revision.txt.
References: utils/helium_version.py• L11-15 utils/helium_version.py• L49-64 utils/_common.py• L118-120 version.txt• L1 chromium_version.txt• L1 revision.txt• L1
Platform revision
Platform packaging can compare its version with the main Helium version before it prepares a refresh. A main-version change resets the platform revision. A platform-only refresh increments it. This keeps platform releases ordered without hiding which main Helium version they package.
References: .github/…/action.yml• L38-68
Release lifecycle
Release tags
The release workflow runs after a push to main and compares the generated version before and after that push. When the identity changes, it creates a GitHub release whose tag and name use that identity. Its body contains the commits since the previous version, so the tag points to both a version and a change summary.
This workflow does not create a release for every push to main. A push must change the generated version first. Platform projects can use the same version generator with their platform revision when they prepare their own update.
The GitHub workflow automation page explains the workflow system and its other automated jobs. The patch validation page explains the source and patch checks that make a release candidate trustworthy.
References: .github/…/release-and-tag.yml• L1-8 .github/…/release-and-tag.yml• L18-50 devutils/print_tag_version.sh• L1-2
Release provenance
Release provenance links three records: the version files in the Helium tree, the generated tag, and the commit range used for the release notes. This gives downstream packaging projects a stable version to consume and a short path back to the changes that produced it.
References: .github/…/release-and-tag.yml• L28-41 .github/…/release-and-tag.yml• L43-50 devutils/print_tag_version.sh• L1-2
Continuous integration
Validation gates
Continuous integration runs for pull requests, pushes to repository branches, and manual dispatches. It uses a shared CI setup that selects the repository's Python version, restores its dependency cache, and prepares the tools required by validation jobs. Concurrent runs for the same workflow and ref are canceled when a newer run starts.
The main validation workflow separates checks by purpose:
- Utility code is formatted, linted, and tested.
- Repository configuration is checked for valid patch references, flags, and download data.
- A Chromium source tree is retrieved or restored from cache. It is then checked against the patch set and generated source lists.
The developer quality tooling page describes the local quality tools that correspond to these gates.
References: .github/…/ci.yml• L1-18 .github/…/ci.yml• L19-61 .github/…/ci.yml• L63-150 .github/…/action.yml• L1-23
Validation flow
The validation path moves from repository-local checks to checks that use the pinned Chromium source. This diagram shows how a change becomes a set of CI results.
flowchart TD
A[Pull request or push] --> B[Shared Python and tool setup]
B --> C[Format, lint, and test utilities]
B --> D[Validate repository configuration]
B --> E[Retrieve or restore Chromium source]
E --> F[Apply and validate patches]
E --> G[Regenerate and compare source lists]
C --> H[CI result]
D --> H
F --> H
G --> H
The source-dependent checks use the Chromium version and dependency inputs to select source and cache data. This ties patch validation to the source revision that a release is expected to build against.
References: .github/…/ci.yml• L74-113 .github/…/ci.yml• L115-150 devutils/validate_patches.py• L643-705
Code and content checks
Formatting and linting
The repository checks Python style and code quality in both utils and devutils. The checks ignore imported third-party code where appropriate. CI fails when a lint or format check reports a problem.
A separate patch-series lint job runs on pushes and pull requests. It checks the Helium patch set as a whole rather than only checking Python source. This keeps patch order and patch content suitable for later application.
References: .github/…/ci.yml• L31-47 .github/…/lint.yml• L1-16 devutils/lint.py• L23-43 devutils/run_utils_pylint.py• L24-51 devutils/run_devutils_pylint.py• L24-56
Translation integrity
The localization checks keep generated source strings and translated messages aligned. CI regenerates the source string data and rejects drift. It then checks that translation entries have valid markup, match a known source entry, and preserve placeholders.
Changes to translation files also trigger a review notification workflow. The workflow runs only for pull requests in the upstream imputnet/helium repository when the pull request comes from that same repository. It maps changed language files to owners and posts one review request when no earlier request or opt-out marker exists.
References: .github/…/lint.yml• L18-33 .github/…/i18n-notify.yml• L1-47 devutils/i18n_lint.py• L20-80 .github/…/i18n_notify.py• L11-28
Repository automation
Issue and review management
Scheduled automation reduces unattended issue work without closing all inactive work. It marks issues as stale only when they carry the need info label, waits for a response window, and then closes them if the needed information remains absent. Milestones are exempt.
The feature request form guides issue intake before automation acts on it. It asks for a short description, the problem, and a possible solution. It also directs platform-specific requests to the relevant platform repository and warns submitters to check for duplicates and avoid AI-written requests. Required fields prevent incomplete feature requests from entering the review queue. (.github/…/feature-request.yml)
The translation notification job supports review routing for pull requests in the upstream repository when their head repository is also the upstream repository. It has write access only to pull requests and does not act on forked pull requests.
References: .github/…/stale.yml• L1-22 .github/…/feature-request.yml• L6-49 .github/…/i18n-notify.yml• L8-18 .github/…/i18n-notify.yml• L22-47
Platform update automation
Platform update automation refreshes the main Helium source reference, updates the platform revision, rebuilds the relevant patch state, and opens an update pull request when there is a change. It uses the generated version in the pull request title so platform work stays tied to a main release identity.
References: .github/…/action.yml• L24-68 .github/…/action.yml• L70-119
Change checklist
When these files or sections are changed, remember to consider these:
- A change to chromium_version.txt affects the release identity, upstream source retrieval, download cache keys, and generated source-list validation.
- A change to revision.txt affects the Helium release identity and can trigger release tagging when the generated version changes.
- A change to the version-part rules in utils/helium_version.py must remain compatible with release comparison, release tags, and platform revision reset behavior.
- A change to translation source generation must keep the checked-in generated source data and translation placeholder contract aligned.
- A change to patch ordering or patch paths must satisfy both repository configuration checks and source-tree patch validation.
- A change to workflow permissions or event filters can stop release creation, review notices, or scheduled issue handling without changing the checked code.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The generated version differs because one version input changed unexpectedly. | A push to main creates a release and tag that may not match the intended release boundary. | Review the version inputs and the generated identity before merging the change. |
| Chromium source inputs change but cache or generated-list inputs do not cover the change. | CI can validate patches against stale source data or report misleading list results. | Keep source, dependency, download, and list-generation inputs in the relevant CI cache keys. |
| A patch no longer matches the pinned Chromium source. | The release source cannot be assembled with the expected Helium changes. | Run the source-dependent patch validation before accepting the change. |
| Generated localization data is not refreshed after source changes. | CI rejects the pull request because checked-in source data differs from generated data. | Regenerate the source data when its source messages change. |
| A translation changes a placeholder or uses invalid markup. | The translated message cannot be safely converted or displayed. | Run the translation integrity check before merge. |
| A workflow loses the required write permission or runs for an unsupported event. | Release creation, translation review notices, or stale-item handling silently stops. | Review event filters and least-privilege permissions with the workflow change. |
Key files
| File | Why to read it |
|---|---|
| utils/helium_version.py | Defines the shared release identity used by builds, tags, and platform updates. |
| version.txt, chromium_version.txt, revision.txt | Provide the version inputs that identify a Helium release and its source baseline. |
| .github/…/release-and-tag.yml | Shows when a version change becomes a GitHub release and how release notes are formed. |
| .github/…/ci.yml | Shows the main validation gates from utility checks through Chromium source checks. |
| .github/…/lint.yml | Shows patch-series and localization checks that run alongside the main CI workflow. |
| .github/…/action.yml | Defines the shared Python environment and runner tools used by the main CI jobs. |
| .github/…/action.yml | Shows how platform revisions follow main Helium version changes. |
| devutils/validate_patches.py | Defines the source-dependent contract for applying the patch series. |
| devutils/i18n_lint.py | Defines the integrity rules for translated content. |
| .github/…/stale.yml | Shows the scheduled rules for stale issues that need more information. |
| .github/…/feature-request.yml | Defines the required information and routing guidance for feature requests. |
| .github/…/i18n-notify.yml | Shows when translation owners receive review requests and which repository pull requests qualify. |