fix(supabase): R5.5 round 2 nits, e2e INIT_CWD, final error wording
This commit is contained in:
1 parent
56593af25c
commit
fad85c0f92
4 files changed
+6
-7
No files matched your search
@@ -208,7 +208,7 @@ fn final_error(error: &ureq::Error) -> UploadError {
|
||||
),
|
||||
_ => refuse(
|
||||
UploadKind::Handshake,
|
||||
"the request could not be built (check the key)",
|
||||
"the request failed and is not retried (a key a header refuses, a malformed answer)",
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3287,9 +3287,8 @@ DELETE, no bucket call but the read).
|
||||
**Destination rule.** `http`, explicit port, no credentials, path, query or fragment; host `localhost`,
|
||||
a loopback address, or the private IPv4 address equal to `FAUNOSTEO_DEV_HOST`. A name other than
|
||||
`localhost` is never accepted (it cannot be proven local without resolving it). The handshake then
|
||||
checks the private bucket and the key before any object is read or written. The DEV address counts only if a socket can be bound to it (an address of this machine).
|
||||
A local port held by
|
||||
something else would receive the key: accepted on a single-user machine, the same stance as the
|
||||
checks the private bucket and the key before any object is read or written. The DEV address counts only if a socket can be bound to it (an address of this machine). A
|
||||
local port held by something else would receive the key: accepted on a single-user machine, the same stance as the
|
||||
worker's `SUPABASE_URL`.
|
||||
|
||||
**Tests.** `curation_upload` (7: manifest family, bytes, 15 destination refusals + DEV host rule,
|
||||
|
||||
@@ -15,9 +15,9 @@ ALLOWED_RE='^FLOOR SUPPRESS \.claude/audits/[^:]+\.md:[0-9]+ '
|
||||
# counted as a new finding. Anything else outside ALLOWED_RE fails.
|
||||
DECLARED_RE='^FLOOR STUB \.claude/memory/evals\.md:205 '
|
||||
|
||||
# rc 0: every finding is requalified; rc 1: at least one real finding remains.
|
||||
# rc 0: every finding is requalified or the declared one; rc 1: a real finding remains.
|
||||
classify() {
|
||||
local report="$1" total requalified remaining
|
||||
local report="$1" total requalified remaining declared
|
||||
total=$(grep -c '^FLOOR [A-Z_]* ' "$report")
|
||||
requalified=$(grep -cE "$ALLOWED_RE" "$report")
|
||||
declared=$(grep -E "$DECLARED_RE" "$report")
|
||||
|
||||
@@ -27,7 +27,7 @@ expect() {
|
||||
local name=$1 want=$2 url=$3 key=$4; shift 4
|
||||
local out rc
|
||||
# Keys go through the environment of the binary and grep's pattern file, never on an argv.
|
||||
out=$(unset FAUNOSTEO_DEV_HOST; SUPABASE_URL="$url" SUPABASE_SERVICE_ROLE_KEY="$key" "$BIN" "$@" 2>&1); rc=$?
|
||||
out=$(unset FAUNOSTEO_DEV_HOST INIT_CWD; SUPABASE_URL="$url" SUPABASE_SERVICE_ROLE_KEY="$key" "$BIN" "$@" 2>&1); rc=$?
|
||||
LAST=$out
|
||||
if [ "$rc" -eq "$want" ] && ! grep -qF -f <(printf '%s\n' "$key" "$SERVICE" "$ANON") <<<"$out"; then
|
||||
echo "PASS $name (exit $rc)"
|
||||
|
||||
Reference in new issue
Block a user