-
Notifications
You must be signed in to change notification settings - Fork 15
chore: update Supabase dependencies and improve e2e test infrastructure #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx affected -t lint typecheck test --parallel -... |
❌ Failed | 7m 15s | View ↗ |
nx affected -t test:e2e --parallel --base=b8aba... |
✅ Succeeded | 6m 17s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-11-02 15:22:32 UTC
| find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.ts" -type f -exec sed -i 's/\.js"/\.ts"/g' {} + | ||
| find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.ts" -type f -exec sed -i "s/\.js'/\.ts'/g" {} + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Platform compatibility issue with sed -i
The sed -i command behaves differently on macOS vs Linux. On macOS, sed -i requires a backup extension argument (even if empty), while Linux doesn't. This script will fail on macOS systems.
Fix:
# Use platform-independent approach
find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.ts" -type f -exec sed -i.bak 's/\.js"/\.ts"/g' {} +
find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.ts" -type f -exec sed -i.bak "s/\.js'/\.ts'/g" {} +
find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.bak" -type f -deleteOr use a more portable solution:
find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.ts" -type f | while read -r file; do
sed 's/\.js"/\.ts"/g; s/\.js'\''/.ts'\'''/g' "$file" > "$file.tmp" && mv "$file.tmp" "$file"
done| find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.ts" -type f -exec sed -i 's/\.js"/\.ts"/g' {} + | |
| find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.ts" -type f -exec sed -i "s/\.js'/\.ts'/g" {} + | |
| find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.ts" -type f -exec sed -i.bak 's/\.js"/\.ts"/g' {} + | |
| find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.ts" -type f -exec sed -i.bak "s/\.js'/\.ts'/g" {} + | |
| find "$VENDOR_DIR/@pgflow/edge-worker" -name "*.bak" -type f -delete | |
Spotted by Graphite Agent
Is this helpful? React 👍 or 👎 to let us know.
🔍 Preview Deployment: Playground❌ Deployment failed! Please check the workflow logs for details. |
e933914 to
238cf24
Compare
238cf24 to
ab368d4
Compare
ff76958 to
8be0970
Compare
8be0970 to
4c7428e
Compare
4c7428e to
c5371c5
Compare
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-292.pgflow.pages.dev 📝 Details:
_Last updated: _ |
…encies - Added a new script to synchronize vendor dependencies for e2e tests - Updated Deno lock file to include std library and remove outdated supabase-js entries - Modified project.json to include a new sync-e2e-deps target and adjust test dependencies - Removed obsolete import mappings from deno.json files in functions - Added .gitignore for vendor directory to prevent committing vendor files - Updated test command to use a different config file for e2e testing - Ensured build verification before copying dependencies in the sync script
c5371c5 to
1265cb0
Compare
Merge activity
|
…re (#292) # Update Supabase JS SDK and Improve Edge Worker E2E Testing This PR updates the Supabase JS SDK from version 2.55.0 to 2.74.0 and significantly improves the edge worker E2E testing infrastructure. Key changes: - Added a new script `sync-e2e-deps.sh` that copies built packages to a vendor directory for E2E tests - Created a new import map in `supabase/functions/deno.json` to properly resolve dependencies during tests - Added a new `serve:functions:e2e` task that uses the vendor directory for testing - Removed SQL views and functions that are no longer needed (`active_workers`, `inactive_workers`, `spawn_worker`) - Updated worker detection logic to use direct queries instead of views - Improved worker startup logic with retry mechanism for better test reliability - Added E2E test environment variables to `.env` file - Added `--no-verify-jwt` flag to function serving to simplify testing These changes make the E2E tests more reliable and easier to run, while also keeping the codebase up-to-date with the latest Supabase SDK.

Update Supabase JS SDK and Improve Edge Worker E2E Testing
This PR updates the Supabase JS SDK from version 2.55.0 to 2.74.0 and significantly improves the edge worker E2E testing infrastructure.
Key changes:
sync-e2e-deps.shthat copies built packages to a vendor directory for E2E testssupabase/functions/deno.jsonto properly resolve dependencies during testsserve:functions:e2etask that uses the vendor directory for testingactive_workers,inactive_workers,spawn_worker).envfile--no-verify-jwtflag to function serving to simplify testingThese changes make the E2E tests more reliable and easier to run, while also keeping the codebase up-to-date with the latest Supabase SDK.