Skip to content

Fix Linux-only failure in register_flow perms test (stat portability) - #24

Merged
jpelaez-23blocks merged 1 commit into
mainfrom
fix/test-stat-perms-portability
Aug 18, 2026
Merged

Fix Linux-only failure in register_flow perms test (stat portability)#24
jpelaez-23blocks merged 1 commit into
mainfrom
fix/test-stat-perms-portability

Conversation

@jpelaez-23blocks

Copy link
Copy Markdown
Contributor

The register_flow: registration file has correct permissions test failed on the Linux CI runner (surfaced the first time CI ran, after #16). Root cause is the test, not the code: it used stat -f '%Lp' || stat -c '%a'. On Linux, stat -f prints filesystem status and exits 0, so the BSD-first form never reaches the GNU fallback and the assert compared garbage. The code's chmod 600 on the registration file is correct. Reversed to GNU stat -c first, BSD stat -f fallback — verified 600 on both macOS and Linux.

🤖 Generated with Claude Code

register_flow "correct permissions" used `stat -f '%Lp' || stat -c '%a'`. On
Linux `stat -f` prints filesystem status and exits 0, so the BSD-first form
never falls through to the GNU form and the assert compared garbage instead of
the mode — the test failed on the Linux CI runner (the code's chmod 600 is
correct). Try GNU `stat -c` first, BSD `stat -f` as the macOS fallback.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jpelaez-23blocks
jpelaez-23blocks merged commit 3dba938 into main Aug 18, 2026
3 of 4 checks passed
@jpelaez-23blocks
jpelaez-23blocks deleted the fix/test-stat-perms-portability branch August 18, 2026 03:05
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