Commit ccf451b
Document cross-platform portability and release gotchas in AGENTS.md (#174)
## Summary
Add guidance to `tests/AGENTS.md` and `AGENTS.md` documenting hard-won
lessons about cross-platform testing and release automation that have
each cost prior sessions a follow-up PR.
## Changes
- **tests/AGENTS.md**: New "Cross-platform portability" section
documenting four categories of OS-specific failures that don't surface
on Linux but break on Windows or macOS:
- POSIX-only imports (termios, fcntl, os.openpty) must use
`pytest.importorskip()` at module scope, not skip markers
- Permission-bit assertions (0o600/0o700) must be gated on `os.name ==
"posix"` while testing cross-platform behavior unconditionally
- Case-insensitive filesystems on macOS require assertions on
case-stable properties instead of path casing
- GNU vs BSD tooling differences in `check.sh` (grep -E vs -P, brew
audit by name not path)
- **AGENTS.md**: New "Release-run operational gotchas" subsection
documenting two issues specific to the `release.yml` workflow:
- Bot-opened formula PRs use `GITHUB_TOKEN` which doesn't trigger CI,
requiring admin override to merge
- Manual `workflow_dispatch` `tag` job must set git identity before
calling `cut_release.sh` (which creates annotated tags requiring
committer info)
## Rationale
These sections capture patterns that repeatedly catch maintainers and
agents: a green Linux gate doesn't guarantee green macOS/Windows runs,
and release automation has subtle credential/identity requirements.
Documenting them upfront prevents future follow-up PRs.
https://claude.ai/code/session_0188anNrEdHn2SHHDPCkoKVR
Co-authored-by: Claude <noreply@anthropic.com>1 parent c2b0958 commit ccf451b
2 files changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
79 | 89 | | |
80 | 90 | | |
81 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
90 | 119 | | |
91 | 120 | | |
92 | 121 | | |
| |||
0 commit comments