Skip to content

chore - allow cron jobs e2e tests to run in parallel and make them stable - #43566

Merged
djhi merged 1 commit into
masterfrom
e2e-optimize-2
Mar 9, 2026
Merged

djhi merged 1 commit into
masterfrom
e2e-optimize-2

Conversation

@djhi

@djhi djhi commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Follow up of #43547 and #43560

Problem

The cron job tests run in serial mode and can be flaky.

Solution

  • Use simple query to install the pg_cron extension (way faster than using UI)
  • Make sure all tests can run in parallel

@supabase

supabase Bot commented Mar 9, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Mar 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

9 Skipped Deployments
Project Deployment Actions Updated (UTC)
cms Ignored Ignored Mar 9, 2026 3:26pm
studio Ignored Ignored Mar 9, 2026 3:26pm
design-system Skipped Skipped Mar 9, 2026 3:26pm
docs Skipped Skipped Mar 9, 2026 3:26pm
learn Skipped Skipped Mar 9, 2026 3:26pm
studio-self-hosted Skipped Skipped Mar 9, 2026 3:26pm
studio-staging Skipped Skipped Mar 9, 2026 3:26pm
ui-library Skipped Skipped Mar 9, 2026 3:26pm
zone-www-dot-com Skipped Skipped Mar 9, 2026 3:26pm

Request Review

@coderabbitai

coderabbitai Bot commented Mar 9, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Central YAML (base), Repository UI (inherited), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 2fac017a-7da5-4ace-a6ce-4b21a75efb5b

📥 Commits

Reviewing files that changed from the base of the PR and between d004d13 and 7259c81.

📒 Files selected for processing (1)
  • e2e/studio/features/cron-jobs.spec.ts

📝 Walkthrough

Summary by CodeRabbit

  • Tests
    • Enhanced e2e test infrastructure for cron job functionality with improved API-driven setup and cleanup workflows.
    • Reorganized test structure for better isolation and consistency between test runs.
    • Strengthened edge case handling for specialized scenarios.

Walkthrough

This pull request refactors the cron jobs E2E test file by replacing UI-driven workflows with API-based setup and teardown helpers. Two new helper functions were added: createJobViaAPI() and deleteJobViaAPI() for API-driven cron job management. The navigateToCronOverviewAndEnable() helper was renamed to navigateToCronOverview() with the pg_cron enable logic removed. Tests were restructured from serial, multi-test state sharing to isolated per-test setup/teardown patterns using setup and cleanup hooks. The test approach maintains UI verification checks while reducing direct UI-heavy steps in favor of API-based preparation and cleanup. Additionally, route interception scaffolding was added to simulate query cost scenarios and verify banner behavior.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  153 passed
flaky  2 flaky
skipped  4 skipped

Details

stats  159 tests across 20 suites
duration  8 minutes, 55 seconds
commit  7259c81

Flaky tests

Features › queue-table-operations.spec.ts › Queue Table Operations › keyboard shortcuts work for queue operations
Features › table-editor.spec.ts › table editor › add enums and show enums on table

Skipped tests

Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@awaseem awaseem left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@djhi
djhi merged commit bab4e8d into master Mar 9, 2026
23 checks passed
@djhi
djhi deleted the e2e-optimize-2 branch March 9, 2026 16:29
@github-actions

github-actions Bot commented Mar 9, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1773073872)

Score Average Improvements Regressions
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Tool Usage 100% (+0pp) - -
Completeness 97.1% (0pp) 1 🟢 1 🔴
Conciseness 0% (+0pp) - -
Goal Completion 97.1% (+7.000000000000001pp) 3 🟢 -
Correctness 100% (+8pp) 1 🟢 -
Docs Faithfulness 63.9% (+8pp) 3 🟢 -
URL Validity 100% (+0pp) - -
Time_to_first_token 0.3tok (-0.41tok) 9 🟢 3 🔴
Llm_calls 8.28 (-0.28) 3 🟢 8 🔴
Tool_calls 2.94 (-0.47) 1 🟢 7 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 45817.61tok (-2007.61tok) 7 🟢 5 🔴
Prompt_cached_tokens 26599.11tok (-3978.67tok) 3 🟢 9 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 2571.89tok (-441.97tok) 9 🟢 3 🔴
Completion_reasoning_tokens 1841.78tok (-359.11tok) 9 🟢 1 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 48389.5tok (-2449.58tok) 7 🟢 5 🔴
Estimated_cost 0.01$ (0$) 7 🟢 3 🔴
Duration 50.37s (-12.53s) 9 🟢 3 🔴
Llm_duration 98.95s (-21.9s) 8 🟢 4 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants