Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fix signed macOS release promotion follow-up jobs (#22788)

Shijie Rao302149d97931
diff --git a/.github/dotslash-unsigned-config.json b/.github/dotslash-unsigned-config.json
deleted file mode 100644
index 65c44d5e8d..0000000000
--- a/.github/dotslash-unsigned-config.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "outputs": {
- "codex-unsigned": {
- "platforms": {
- "macos-aarch64": {
- "regex": "^codex-aarch64-apple-darwin-unsigned\\.zst$",
- "path": "codex"
- },
- "macos-x86_64": {
- "regex": "^codex-x86_64-apple-darwin-unsigned\\.zst$",
- "path": "codex"
- },
- "linux-x86_64": {
- "regex": "^codex-x86_64-unknown-linux-musl-bundle\\.tar\\.zst$",
- "path": "codex"
- },
- "linux-aarch64": {
- "regex": "^codex-aarch64-unknown-linux-musl-bundle\\.tar\\.zst$",
- "path": "codex"
- },
- "windows-x86_64": {
- "regex": "^codex-x86_64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex.exe"
- },
- "windows-aarch64": {
- "regex": "^codex-aarch64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex.exe"
- }
- }
- },
- "codex-app-server-unsigned": {
- "platforms": {
- "macos-aarch64": {
- "regex": "^codex-app-server-aarch64-apple-darwin-unsigned\\.zst$",
- "path": "codex-app-server"
- },
- "macos-x86_64": {
- "regex": "^codex-app-server-x86_64-apple-darwin-unsigned\\.zst$",
- "path": "codex-app-server"
- },
- "linux-x86_64": {
- "regex": "^codex-app-server-x86_64-unknown-linux-musl\\.zst$",
- "path": "codex-app-server"
- },
- "linux-aarch64": {
- "regex": "^codex-app-server-aarch64-unknown-linux-musl\\.zst$",
- "path": "codex-app-server"
- },
- "windows-x86_64": {
- "regex": "^codex-app-server-x86_64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex-app-server.exe"
- },
- "windows-aarch64": {
- "regex": "^codex-app-server-aarch64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex-app-server.exe"
- }
- }
- },
- "codex-responses-api-proxy-unsigned": {
- "platforms": {
- "macos-aarch64": {
- "regex": "^codex-responses-api-proxy-aarch64-apple-darwin-unsigned\\.zst$",
- "path": "codex-responses-api-proxy"
- },
- "macos-x86_64": {
- "regex": "^codex-responses-api-proxy-x86_64-apple-darwin-unsigned\\.zst$",
- "path": "codex-responses-api-proxy"
- },
- "linux-x86_64": {
- "regex": "^codex-responses-api-proxy-x86_64-unknown-linux-musl\\.zst$",
- "path": "codex-responses-api-proxy"
- },
- "linux-aarch64": {
- "regex": "^codex-responses-api-proxy-aarch64-unknown-linux-musl\\.zst$",
- "path": "codex-responses-api-proxy"
- },
- "windows-x86_64": {
- "regex": "^codex-responses-api-proxy-x86_64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex-responses-api-proxy.exe"
- },
- "windows-aarch64": {
- "regex": "^codex-responses-api-proxy-aarch64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex-responses-api-proxy.exe"
- }
- }
- },
- "bwrap": {
- "platforms": {
- "linux-x86_64": {
- "regex": "^bwrap-x86_64-unknown-linux-musl\\.zst$",
- "path": "bwrap"
- },
- "linux-aarch64": {
- "regex": "^bwrap-aarch64-unknown-linux-musl\\.zst$",
- "path": "bwrap"
- }
- }
- },
- "codex-command-runner": {
- "platforms": {
- "windows-x86_64": {
- "regex": "^codex-command-runner-x86_64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex-command-runner.exe"
- },
- "windows-aarch64": {
- "regex": "^codex-command-runner-aarch64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex-command-runner.exe"
- }
- }
- },
- "codex-windows-sandbox-setup": {
- "platforms": {
- "windows-x86_64": {
- "regex": "^codex-windows-sandbox-setup-x86_64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex-windows-sandbox-setup.exe"
- },
- "windows-aarch64": {
- "regex": "^codex-windows-sandbox-setup-aarch64-pc-windows-msvc\\.exe\\.zst$",
- "path": "codex-windows-sandbox-setup.exe"
- }
- }
- }
- }
-}
diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml
index 2dc92cf684..0e13aa366c 100644
--- a/.github/workflows/rust-release.yml
+++ b/.github/workflows/rust-release.yml
@@ -1223,14 +1223,6 @@ jobs:
tag: ${{ github.ref_name }}
config: .github/dotslash-config.json
- - if: ${{ env.SIGN_MACOS == 'false' }}
- uses: facebook/dotslash-publish-release@9c9ec027515c34db9282a09a25a9cab5880b2c52 # v2
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- tag: ${{ github.ref_name }}
- config: .github/dotslash-unsigned-config.json
-
- if: ${{ env.SIGN_MACOS == 'true' }}
uses: facebook/dotslash-publish-release@9c9ec027515c34db9282a09a25a9cab5880b2c52 # v2
env:
@@ -1265,7 +1257,15 @@ jobs:
# npm docs: https://docs.npmjs.com/trusted-publishers
publish-npm:
# Publish to npm for stable releases and alpha pre-releases with numeric suffixes.
- if: ${{ needs.release.outputs.should_publish_npm == 'true' }}
+ # promote_signed intentionally skips build jobs that are ancestors of release;
+ # include the !cancelled() status function so Actions does not apply its implicit
+ # success() check to the whole dependency chain before evaluating release outputs.
+ if: >-
+ ${{
+ !cancelled() &&
+ needs.release.result == 'success' &&
+ needs.release.outputs.should_publish_npm == 'true'
+ }}
name: publish-npm
needs: release
runs-on: ubuntu-latest
@@ -1423,7 +1423,12 @@ jobs:
# need release follow-up, but should not invalidate the Rust release itself.
publish-python-runtime:
# Publish to PyPI for stable releases and alpha pre-releases with numeric suffixes.
- if: ${{ needs.release.outputs.should_publish_python_runtime == 'true' }}
+ if: >-
+ ${{
+ !cancelled() &&
+ needs.release.result == 'success' &&
+ needs.release.outputs.should_publish_python_runtime == 'true'
+ }}
name: publish-python-runtime
needs: release
runs-on: ubuntu-latest
@@ -1464,7 +1469,13 @@ jobs:
needs: release
# Only publish stable/mainline releases to WinGet; pre-releases include a
# '-' in the semver string (e.g., 1.2.3-alpha.1).
- if: ${{ needs.release.outputs.sign_macos == 'true' && !contains(needs.release.outputs.version, '-') }}
+ if: >-
+ ${{
+ !cancelled() &&
+ needs.release.result == 'success' &&
+ needs.release.outputs.sign_macos == 'true' &&
+ !contains(needs.release.outputs.version, '-')
+ }}
# This job only invokes a GitHub Action to open/update the winget-pkgs PR;
# it does not execute Windows-only tooling, so Linux is sufficient.
runs-on: ubuntu-latest
@@ -1484,7 +1495,12 @@ jobs:
update-branch:
name: Update latest-alpha-cli branch
- if: ${{ needs.release.outputs.sign_macos == 'true' }}
+ if: >-
+ ${{
+ !cancelled() &&
+ needs.release.result == 'success' &&
+ needs.release.outputs.sign_macos == 'true'
+ }}
permissions:
contents: write
needs: release