Skip to content

P0 Linux release: latest-stable guarded dispatch and packaged firmware smoke - #312

Merged
masarray merged 4 commits into
mainfrom
ci/p0-linux-release-exact-tag-guard-20261024
Oct 24, 2026
Merged

masarray merged 4 commits into
mainfrom
ci/p0-linux-release-exact-tag-guard-20261024

Conversation

@masarray

Copy link
Copy Markdown
Owner

Release P0 — Linux publishing reliability

Problem: Linux AppImage CI already builds and tests successfully, but the historical M3.H release was published before automatic Linux distribution existed. GitHub Actions release events can also be suppressed when a release is created using GITHUB_TOKEN.

Changes:

  • Release-published automation retains the automatic path and also supports explicit workflow_dispatch with the exact stable tag as a fallback.
  • Only the current latest published stable tag is accepted, with Windows setup, portable, firmware binary, manifest and SHA-256 presence verified before dispatch.
  • Historical M3.H is explicitly protected: the five verified, immutable release assets stay unchanged. Never append new binaries to that frozen release.
  • A complete Linux AppImage/checksum pair skips idempotently; partial assets fail rather than masking broken distribution.
  • Release-tag Linux package gets an extra in-AppImage firmware contract smoke after the Qt native/packaging checks, before upload.
  • No protocol, real-time firmware, UI or Windows release binary changes.

Acceptance: PR CI validates workflow; when the next stable release publishes, GitHub releases event dispatches the exact-tag build. For a token-created release suppressing the published event, maintainers can use Actions → Attach Linux AppImage On Stable Release → Run workflow, supplying the newly published latest tag. The separate Linux build/attach job must pass before Linux becomes a public downloadable asset.

No release/tag creation or published asset mutation in this PR.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T11:08:09.021841Z 171d70e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 171d70e753

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

available=linux in assets
with open(os.environ['GITHUB_OUTPUT'],'a') as out:
out.write(f"dispatch={'false' if available else 'true'}\n")
out.write(f"dispatch={'false' if available else 'true'}\\n")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Write a real newline to the dispatch output

For an eligible release without Linux assets, the Python script writes the literal characters \n rather than a newline because the string contains \\n. Running the extracted eligibility script confirms that the output file contains 'dispatch=true\\n', so steps.eligibility.outputs.dispatch == 'true' on line 72 is false and the packaging workflow is never dispatched. Use a single Python newline escape in both output-writing branches.

Useful? React with 👍 / 👎.

env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event.release.tag_name }}
TAG: ${{ github.event_name == 'release' && github.event.release.tag_name || inputs.release_tag }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pass the manual release tag to the dispatch step

For the newly supported workflow_dispatch path, this expression supplies the requested tag only to the eligibility step; the dispatch step still sets TAG exclusively from github.event.release.tag_name on line 75, which is absent for manual runs. After correcting the output newline, manual dispatch therefore sends release_tag= instead of the validated tag. The inspected gh workflow run --help defines --field key=value as “Add a string parameter in key=value format”; the receiving AppImage workflow treats a blank tag as artifact-only and skips release attachment. Apply the same event/input selection to the dispatch step.

Useful? React with 👍 / 👎.

@masarray
masarray merged commit a7e4001 into main Oct 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant