You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
appwrite push functions reports success on failure #15507
Try to use an API key that doesn't have the right scope to push it
Try to push it: appwrite function push
👍 Expected behavior
It seems like this should return a non-zero exit code to make detection of failures simple. Something like a --strict option would be nice here. If --all is used, it could be --fail-fast to stop after the first failure or --fail-at-end to attempt to push the remaining functions before reporting an error.
👎 Actual Behavior
Console output indicates an error like:
· GET /v1/functions/my-function 200 in 114ms
✗ Error: Failed to push function My Function: An API key cannot grant scopes it does not hold.
✗ Error: No functions were pushed.
· PUT /v1/functions/my-function 401 in 52ms
but the process still exits with a 0 exit code. In my experience this has required all kinds of craziness in CI jobs to read through stdout/stderr to look for a problem and bubble it up.
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
MacOS
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
Activity