Repository navigation
chore: add AGENTS.md and guard build-sync against BSD sed - #1784
Merged
Merged
Conversation
BSD sed (macOS default) failed midway through build-sync and left _sync/ half-converted. A shared gnu-sed.mk now picks gsed when present and checks for GNU sed before unasync runs. flake.nix adds gnused. postgrest build-sync now maps asyncio.sleep to time.sleep in the sync retry loop, matching the hand-fixed committed file.
Points to README, CONTRIBUTING and make help instead of restating them. Records only what no other file states: async-first codegen, package import names, infra-backed tests, sdk-compliance.yaml, release-please ownership. CLAUDE.md imports it.
Contributor
|
The following capabilities are marked
The following capabilities are marked
These may have been renamed, removed, or never registered. Please update the capability matrix. |
Harsh23Kashyap
pushed a commit
to Harsh23Kashyap/supabase-py
that referenced
this pull request
Nov 4, 2026
) (cherry picked from commit a662a51)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
AGENTS.mdfor coding agents and makesbuild-syncsafe on macOS.AGENTS.mddoes not restate setup or commands. It records what no other file states: edit_async/and regenerate_sync/, the three import names that differ from their directories, which tests need infra,sdk-compliance.yamlupdates, and the files release-please owns. Its layout follows ruff, MCP python-sdk and pydantic-ai, whereCLAUDE.mdimports or linksAGENTS.md.Postgrest fix:
build-syncgeneratedasyncio.sleep()in the sync retry loop. That call never waits, so retries had no backoff. The committed file had a hand fix (time.sleep), and the next regeneration would have undone it. One targetedsedline now generatestime.sleep.Evidence
make postgrest.build-syncran unasync, then failed on the firstsed -i. That left_sync/half-converted across 20+ files.After: all four targets stop before any file changes:
build-sync+rufffor postgrest changed_sync/request_builder.py(time.sleep→asyncio.sleep).After:
build-sync+rufffor postgrest, storage, functions, supabase and auth gives zero diff against the committed_sync/. Run inghcr.io/astral-sh/uv:python3.12-bookworm.make -C src/<pkg>still prints help. The include sits belowhelp::, so the default goal is unchanged.Merge Danger
Door: two-way
Blast Radius: dev-tooling
Only Makefiles, the nix shell and docs change. No package code or published artifact changes. Contributors who run
build-syncon macOS now need GNUsed(brew install gnu-sed), which they already needed for correct output.