Skip to content

fix(action): report shell exit codes for signaled runs - #455

Open
karanb192 wants to merge 1 commit into
alibaba:mainfrom
karanb192:fix/action-signal-exit-code
Open

karanb192 wants to merge 1 commit into
alibaba:mainfrom
karanb192:fix/action-signal-exit-code

Conversation

@karanb192

Copy link
Copy Markdown
Contributor

Summary

When a signal stops the skill-up process, Python returns a negative signal number. The Action wrote that negative number to exit-code and skill-up-exit-code, then passed it to sys.exit.

Convert a negative subprocess return code to the conventional shell status before writing either output or exiting. A SIGTERM now yields 143 in all three places.

The published Docker Action picks this up when its runner image is rebuilt and the image digest is updated.

Test plan

The Action regression supplies a subprocess return code of -15 and verifies the Action output, the workspace marker and the Python exit status.

Local checks: go test -race ./..., make verify, the Action unit tests and the Codex plugin unit tests.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T03:10:46.581068Z 29ee0ea 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.

This branch has not been deployed

No deployments
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