Skip to content

[codex] Add reusable cross-OS release checks workflow - #66812

Merged
osolmaz merged 1 commit into
mainfrom
codex/public-cross-os-reusable-workflow
Apr 14, 2026
Merged

osolmaz merged 1 commit into
mainfrom
codex/public-cross-os-reusable-workflow

Conversation

@osolmaz

@osolmaz osolmaz commented Apr 14, 2026

Copy link
Copy Markdown
Member

Summary

  • add a reusable public workflow for cross-OS install/upgrade release validation
  • keep the workflow definition in the public repo while private callers retain secrets and manual dispatch
  • document the reusable/private split in the public release policy

Testing

  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/openclaw-cross-os-release-checks-reusable.yml"); puts "public-yaml-ok"'

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: L maintainer Maintainer-authored PR labels Apr 14, 2026
@osolmaz
osolmaz force-pushed the codex/public-cross-os-reusable-workflow branch from 099fa06 to 6d10e42 Compare April 14, 2026 21:21
@osolmaz
osolmaz marked this pull request as ready for review April 14, 2026 21:21
@osolmaz
osolmaz requested a review from a team as a code owner April 14, 2026 21:21
@osolmaz
osolmaz merged commit 06a4bf5 into main Apr 14, 2026
29 checks passed
@osolmaz
osolmaz deleted the codex/public-cross-os-reusable-workflow branch April 14, 2026 21:21
@greptile-apps

greptile-apps Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a reusable public GitHub Actions workflow (.github/workflows/openclaw-cross-os-release-checks-reusable.yml) for cross-OS install/upgrade release validation and documents the reusable/private-caller split in docs/reference/RELEASING.md. The workflow design — a prepare job that builds a candidate artifact once and fans it out to a matrix of OS runners — is well-structured.

  • P1: actions/upload-artifact@v7 is used in the upload steps, but actions/download-artifact@v8 is used in the download steps. GitHub artifact actions require matching major versions to use the same artifact backend; this mismatch will cause the download steps to fail at runtime, breaking the entire validation flow.

Confidence Score: 3/5

Not safe to merge — the upload/download artifact version mismatch will break the workflow at runtime for every invocation.

The P1 artifact action version mismatch (upload@v7 vs download@v8) means the workflow will fail every time it is called, defeating the entire purpose of the PR. This needs to be fixed before the workflow is useful.

.github/workflows/openclaw-cross-os-release-checks-reusable.yml — all three upload-artifact uses need to be bumped to @v8 to match the download-artifact@v8 calls.

Prompt To Fix All With AI
This is a comment left during a code review.
Path: .github/workflows/openclaw-cross-os-release-checks-reusable.yml
Line: 184-196

Comment:
**Mismatched upload/download artifact action versions**

Artifacts are uploaded with `actions/upload-artifact@v7` but downloaded with `actions/download-artifact@v8`. In the GitHub Actions ecosystem, the upload and download artifact actions must be on the same major version to share the same artifact backend — a version mismatch will cause the download step to fail to locate artifacts written by the upload step. Both should be pinned to the same major version.

```suggestion
      - name: Upload candidate artifact
        uses: actions/upload-artifact@v8
        with:
          name: openclaw-cross-os-release-checks-candidate-${{ github.run_id }}
          path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package/${{ steps.candidate_metadata.outputs.file_name }}
          if-no-files-found: error

      - name: Upload baseline artifact
        if: ${{ inputs.mode != 'fresh' }}
        uses: actions/upload-artifact@v8
        with:
          name: openclaw-cross-os-release-checks-baseline-${{ github.run_id }}
          path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/baseline/${{ steps.baseline_metadata.outputs.file_name }}
          if-no-files-found: error
```

The same fix applies to the `Upload release-check artifacts` step (line 315).

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: .github/workflows/openclaw-cross-os-release-checks-reusable.yml
Line: 314-320

Comment:
**Upload artifact version also mismatched here**

This step uses `actions/upload-artifact@v7` while the corresponding download in the `prepare` job uses `actions/download-artifact@v8`. As noted above, both upload and download actions must be the same major version. This step should also be bumped to `@v8`.

```suggestion
      - name: Upload release-check artifacts
        if: always()
        uses: actions/upload-artifact@v8
        with:
          name: openclaw-cross-os-release-checks-${{ matrix.artifact_name }}-${{ matrix.lane }}-${{ github.run_id }}
          path: ${{ runner.temp }}/openclaw-cross-os-release-checks/${{ matrix.artifact_name }}-${{ matrix.lane }}
          if-no-files-found: error
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: .github/workflows/openclaw-cross-os-release-checks-reusable.yml
Line: 314-320

Comment:
**`if-no-files-found: error` may double-fail on aborted runs**

This step runs with `if: always()` so it executes even when the release-check script fails, but `if-no-files-found: error` will surface an additional job failure if the script terminated before writing any output files to the directory. Consider `if-no-files-found: warn` here so diagnostic context (partial logs, etc.) is still captured without masking the primary failure with a secondary one.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "Actions: add reusable cross-OS release c..." | Re-trigger Greptile

Comment on lines +184 to +196
uses: actions/upload-artifact@v7
with:
name: openclaw-cross-os-release-checks-candidate-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package/${{ steps.candidate_metadata.outputs.file_name }}
if-no-files-found: error

- name: Upload baseline artifact
if: ${{ inputs.mode != 'fresh' }}
uses: actions/upload-artifact@v7
with:
name: openclaw-cross-os-release-checks-baseline-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/baseline/${{ steps.baseline_metadata.outputs.file_name }}
if-no-files-found: error

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Mismatched upload/download artifact action versions

Artifacts are uploaded with actions/upload-artifact@v7 but downloaded with actions/download-artifact@v8. In the GitHub Actions ecosystem, the upload and download artifact actions must be on the same major version to share the same artifact backend — a version mismatch will cause the download step to fail to locate artifacts written by the upload step. Both should be pinned to the same major version.

Suggested change
uses: actions/upload-artifact@v7
with:
name: openclaw-cross-os-release-checks-candidate-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package/${{ steps.candidate_metadata.outputs.file_name }}
if-no-files-found: error
- name: Upload baseline artifact
if: ${{ inputs.mode != 'fresh' }}
uses: actions/upload-artifact@v7
with:
name: openclaw-cross-os-release-checks-baseline-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/baseline/${{ steps.baseline_metadata.outputs.file_name }}
if-no-files-found: error
- name: Upload candidate artifact
uses: actions/upload-artifact@v8
with:
name: openclaw-cross-os-release-checks-candidate-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package/${{ steps.candidate_metadata.outputs.file_name }}
if-no-files-found: error
- name: Upload baseline artifact
if: ${{ inputs.mode != 'fresh' }}
uses: actions/upload-artifact@v8
with:
name: openclaw-cross-os-release-checks-baseline-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/baseline/${{ steps.baseline_metadata.outputs.file_name }}
if-no-files-found: error

The same fix applies to the Upload release-check artifacts step (line 315).

Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/openclaw-cross-os-release-checks-reusable.yml
Line: 184-196

Comment:
**Mismatched upload/download artifact action versions**

Artifacts are uploaded with `actions/upload-artifact@v7` but downloaded with `actions/download-artifact@v8`. In the GitHub Actions ecosystem, the upload and download artifact actions must be on the same major version to share the same artifact backend — a version mismatch will cause the download step to fail to locate artifacts written by the upload step. Both should be pinned to the same major version.

```suggestion
      - name: Upload candidate artifact
        uses: actions/upload-artifact@v8
        with:
          name: openclaw-cross-os-release-checks-candidate-${{ github.run_id }}
          path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/package/${{ steps.candidate_metadata.outputs.file_name }}
          if-no-files-found: error

      - name: Upload baseline artifact
        if: ${{ inputs.mode != 'fresh' }}
        uses: actions/upload-artifact@v8
        with:
          name: openclaw-cross-os-release-checks-baseline-${{ github.run_id }}
          path: ${{ runner.temp }}/openclaw-cross-os-release-checks/prepare/baseline/${{ steps.baseline_metadata.outputs.file_name }}
          if-no-files-found: error
```

The same fix applies to the `Upload release-check artifacts` step (line 315).

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +314 to +320
- name: Upload release-check artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: openclaw-cross-os-release-checks-${{ matrix.artifact_name }}-${{ matrix.lane }}-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/${{ matrix.artifact_name }}-${{ matrix.lane }}
if-no-files-found: error

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Upload artifact version also mismatched here

This step uses actions/upload-artifact@v7 while the corresponding download in the prepare job uses actions/download-artifact@v8. As noted above, both upload and download actions must be the same major version. This step should also be bumped to @v8.

Suggested change
- name: Upload release-check artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: openclaw-cross-os-release-checks-${{ matrix.artifact_name }}-${{ matrix.lane }}-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/${{ matrix.artifact_name }}-${{ matrix.lane }}
if-no-files-found: error
- name: Upload release-check artifacts
if: always()
uses: actions/upload-artifact@v8
with:
name: openclaw-cross-os-release-checks-${{ matrix.artifact_name }}-${{ matrix.lane }}-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/${{ matrix.artifact_name }}-${{ matrix.lane }}
if-no-files-found: error
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/openclaw-cross-os-release-checks-reusable.yml
Line: 314-320

Comment:
**Upload artifact version also mismatched here**

This step uses `actions/upload-artifact@v7` while the corresponding download in the `prepare` job uses `actions/download-artifact@v8`. As noted above, both upload and download actions must be the same major version. This step should also be bumped to `@v8`.

```suggestion
      - name: Upload release-check artifacts
        if: always()
        uses: actions/upload-artifact@v8
        with:
          name: openclaw-cross-os-release-checks-${{ matrix.artifact_name }}-${{ matrix.lane }}-${{ github.run_id }}
          path: ${{ runner.temp }}/openclaw-cross-os-release-checks/${{ matrix.artifact_name }}-${{ matrix.lane }}
          if-no-files-found: error
```

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +314 to +320
- name: Upload release-check artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: openclaw-cross-os-release-checks-${{ matrix.artifact_name }}-${{ matrix.lane }}-${{ github.run_id }}
path: ${{ runner.temp }}/openclaw-cross-os-release-checks/${{ matrix.artifact_name }}-${{ matrix.lane }}
if-no-files-found: error

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 if-no-files-found: error may double-fail on aborted runs

This step runs with if: always() so it executes even when the release-check script fails, but if-no-files-found: error will surface an additional job failure if the script terminated before writing any output files to the directory. Consider if-no-files-found: warn here so diagnostic context (partial logs, etc.) is still captured without masking the primary failure with a secondary one.

Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/openclaw-cross-os-release-checks-reusable.yml
Line: 314-320

Comment:
**`if-no-files-found: error` may double-fail on aborted runs**

This step runs with `if: always()` so it executes even when the release-check script fails, but `if-no-files-found: error` will surface an additional job failure if the script terminated before writing any output files to the directory. Consider `if-no-files-found: warn` here so diagnostic context (partial logs, etc.) is still captured without masking the primary failure with a secondary one.

How can I resolve this? If you propose a fix, please make it concise.

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

Copy link
Copy Markdown
Contributor

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: 6d10e42aaf

ℹ️ 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".

Comment on lines +102 to +104
repository: ${{ env.OPENCLAW_REPOSITORY }}
ref: ${{ inputs.ref }}
path: source

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Validate ref input before checking out and running checks

This workflow checks out ${{ inputs.ref }} directly and later runs the cross-OS test step with provider secrets in the environment, but it never constrains ref to release tags or the current main SHA. If a caller forwards an unvalidated manual input (for example refs/pull/.../head), the job can execute unreviewed code paths during install/upgrade validation with live API keys available, which is a secret-exposure risk. Add the same ref-format and main-ancestry guard used in the release-check workflow before checkout.

Useful? React with 👍 / 👎.

Comment on lines +211 to +212
const lanes = (process.env.INPUT_MODE ?? "both") === "both" ? ["fresh", "upgrade"] : [process.env.INPUT_MODE ?? "both"];
const runners = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Reject unsupported mode values before building matrix

mode is treated as free-form text: anything other than exact both becomes a single lane value, so typos like Both or both generate a nonstandard lane. That lane then skips baseline download (if: matrix.lane == 'upgrade') while still invoking the script, producing confusing runtime failures instead of a fast input error. Add an explicit allowlist check for fresh|upgrade|both in prepare before computing the matrix.

Useful? React with 👍 / 👎.

kvnkho pushed a commit to kvnkho/openclaw that referenced this pull request Apr 17, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
globalcaos pushed a commit to globalcaos/tinkerclaw that referenced this pull request May 13, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
@clawsweeper clawsweeper Bot mentioned this pull request Jun 14, 2026
vixco pushed a commit to vixco/openclaw that referenced this pull request Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant