Conversation
- Assert stringp return from brushup--eval-style on error (message returns string) - Replace `|| true` with exit-code-2-specific handling so real dep failures aren't masked - Add comments explaining Nix cache is needed by setup-emacs on Linux Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
GitHub Actions uses set -eo pipefail by default, so the semicolon pattern exits immediately on non-zero before rc=$? runs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR addresses review feedback from PR #2, focusing on three specific improvements: better test coverage for error handling, more robust CI dependency installation, and explanatory comments for Nix cache usage.
Changes:
- Enhanced error handling test for
brushup--eval-styleto verify it returns a string message instead of just not signaling - Replaced
|| truewith proper exit code handling foreask install-depsto allow exit code 2 (no dependencies) while failing on actual errors - Added inline comments explaining Nix cache steps are needed because
jcs090218/setup-emacsuses Nix on Linux
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| test/brushup-test.el | Added stringp assertion to verify error handler returns a message string |
| .github/workflows/ci.yml | Improved CI robustness with proper exit code handling and added explanatory comments for Nix cache |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -82,7 +85,9 @@ jobs: | |||
| key: eask-lint-${{ hashFiles('Eask') }} | |||
|
|
|||
| - name: Install dependencies | |||
There was a problem hiding this comment.
The shell: bash directive is missing in the lint job's "Install dependencies" step, but it's present in the test job's equivalent step (line 52). This inconsistency could cause portability issues since the bash-specific syntax ([ ... ] || [ ... ] || exit ...) is used in the run script. While ubuntu-latest defaults to bash, it's better to be explicit for consistency and clarity.
| - name: Install dependencies | |
| - name: Install dependencies | |
| shell: bash |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
stringpreturn frombrushup--eval-styleon error (themessagecall in the condition-case handler returns a string, not nil)|| trueoneask install-depswith exit-code-2-specific handling so real dependency resolution failures fail the job clearly (exit 2 = no deps to install, which is expected)jcs090218/setup-emacsuses Nix to install Emacs on LinuxReview items addressed
test/brushup-test.el:78(handles-error assertion)ci.yml:53,86(|| true masking failures)ci.yml:34,67(Nix cache explanation)Items already resolved in prior commits: lexical binding for
eval-styleandbrushup-test--marker(both usedefvar).Test plan
Generated with Claude Code