Skip to content

Fix Grill failure exit codes - #78

Merged
Frotty merged 2 commits into
masterfrom
codex/fix-grill-exit-codes
Aug 20, 2026
Merged

Fix Grill failure exit codes#78
Frotty merged 2 commits into
masterfrom
codex/fix-grill-exit-codes

Conversation

@Frotty

@Frotty Frotty commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Exit with status 1 when compiler-dependent commands cannot find WurstScript, including --quiet.
  • Propagate failures from compiler startup, install/update, uninstall, self-update, dependency removal, and project generation.
  • Add regression coverage for test, typecheck, build, and exportobjects.

Validation

  • ./gradlew.bat test --tests CMDTests.testCompilerDependentCommandsFailWhenCompilerIsMissingEvenInQuietMode
  • ./gradlew.bat test

@Frotty
Frotty marked this pull request as ready for review August 20, 2026 09:12

@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: f6cf6f3683

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

}
if (!setup.quiet) {
println(line)
return try {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Terminate the compiler process when handling it throws

If reading the compiler output or waitFor() throws after pb.start() succeeds—for example, when the calling thread is interrupted—this broad catch returns a failure result without waiting for or terminating the child. The caller then exits Grill with status 1 while the orphaned compiler may continue modifying map or build outputs; retain the Process and destroy it on exceptional paths, or limit this catch to failures that occur before the process starts.

Useful? React with 👍 / 👎.

Frotty commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 196b16e48f

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

@Frotty
Frotty merged commit fcfbfc5 into master Aug 20, 2026
1 check 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