Skip to content

chore: trigger supabase-js tests #105

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

Merged
merged 1 commit into from
Aug 13, 2025
Merged

chore: trigger supabase-js tests #105

merged 1 commit into from
Aug 13, 2025

Conversation

mandarini
Copy link
Contributor

@mandarini mandarini commented Aug 13, 2025

What kind of change does this PR introduce?

CI/CD enhancement - Improves the preview release workflow and cross-repository testing integration.

What is the current behavior?

  • Preview releases are created but there's no automated way to test compatibility with downstream packages
  • No cross-repository testing between functions-js and supabase-js
  • Manual testing required to verify changes don't break integration points
  • Limited feedback loop for developers on cross-package compatibility

What is the new behavior?

  • Automated Cross-Repo Testing: Preview releases automatically trigger compatibility tests in supabase-js
  • Smart Triggering: Only runs on actual source code changes (src/, package files, tsconfig) to avoid unnecessary builds
  • Enhanced Control: Manual workflow dispatch with configurable options for target branch and test triggering
  • Better UX: PR comments show preview package URLs and test status updates
  • Secure Integration: Uses GitHub App authentication for cross-repository workflow triggering

Key Features

🚀 Cross-Repository Test Integration

  • Automatically triggers supabase-js external tests when functions-js changes are made
  • Passes preview package URL and metadata to downstream tests
  • Supports both PR and push-based workflows

Optimized Triggering

  • Path-based filtering: Only triggers on meaningful changes (src/**, package.json, etc.)
  • Label-based control: PRs require trigger: preview label for activation
  • Manual override: Workflow dispatch with configurable target branch

💬 Enhanced Feedback

  • Automated PR comments with preview package links
  • Status updates on cross-repo test progress
  • Clear visibility into the testing pipeline

🔒 Secure Cross-Repo Access

  • GitHub App-based authentication for repository access
  • Scoped permissions to functions-js and supabase-js repositories only

Testing

This workflow enables:

  • Early detection of breaking changes between functions-js and supabase-js
  • Automated compatibility verification for all preview releases
  • Faster feedback cycles for developers working on authentication features
  • Reduced risk of integration issues in production releases

Additional context

This enhancement creates a robust CI/CD pipeline that ensures functions-js changes are automatically validated against its primary consumer (supabase-js), significantly improving the development workflow and reducing integration risks.

More context: supabase/supabase-js#1532

@mandarini mandarini self-assigned this Aug 13, 2025
@mandarini mandarini requested review from grdsdev and o-santi August 13, 2025 14:46
@coveralls
Copy link

Pull Request Test Coverage Report for Build 16940714672

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.391%

Totals Coverage Status
Change from base Build 16913704893: 0.0%
Covered Lines: 223
Relevant Lines: 236

💛 - Coveralls

@mandarini mandarini merged commit bd8d465 into main Aug 13, 2025
3 checks passed
@mandarini mandarini deleted the chore/cross-repo-test branch August 13, 2025 14:59
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.

3 participants