Skip to content

ENG-681 Automate database testing#957

Merged
maparent merged 9 commits intomainfrom
eng-681-automate-database-testing
Apr 23, 2026
Merged

ENG-681 Automate database testing#957
maparent merged 9 commits intomainfrom
eng-681-automate-database-testing

Conversation

@maparent
Copy link
Copy Markdown
Collaborator

@maparent maparent commented Apr 12, 2026

https://linear.app/discourse-graphs/issue/ENG-681/automate-database-testing

https://www.loom.com/share/effc31754c2e44f6a1113669a4632eea

Created a script that starts the database functions and then runs the test in parallel.
(supabase itself is started by the pnpm task)
This requires the SUPABASE_PROJECT_ID to be set to test, to avoid clobbering developer's docker database.
Caching the docker images does not seem to speed things up in practice.


Open with Devin

@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 12, 2026

@supabase
Copy link
Copy Markdown

supabase Bot commented Apr 12, 2026

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


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

graphite-app[bot]

This comment was marked as resolved.

graphite-app[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

graphite-app[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

graphite-app[bot]

This comment was marked as resolved.

graphite-app[bot]

This comment was marked as resolved.

@maparent maparent force-pushed the eng-681-automate-database-testing branch from b8a505d to 0f2384d Compare April 13, 2026 14:10
graphite-app[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

graphite-app[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@maparent maparent force-pushed the eng-681-automate-database-testing branch from ccb043f to a28e59d Compare April 14, 2026 17:23
devin-ai-integration[bot]

This comment was marked as resolved.

@maparent maparent force-pushed the eng-681-automate-database-testing branch from 536026a to 8129898 Compare April 20, 2026 14:18
@maparent maparent requested a review from mdroidian April 20, 2026 14:36
Copy link
Copy Markdown
Member

@mdroidian mdroidian left a comment

Choose a reason for hiding this comment

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

Could you address the graphite/Devon comments then re-request review, please?

@maparent
Copy link
Copy Markdown
Collaborator Author

The first one had been addressed, forgot to resolve. The second one came afterwards, corrected.

@maparent maparent requested a review from mdroidian April 21, 2026 13:40
Copy link
Copy Markdown
Member

@mdroidian mdroidian left a comment

Choose a reason for hiding this comment

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

Let's change the file name to follow the existing naming convention before merging.

} else if (
process.env.HOME === "/vercel" ||
process.env.GITHUB_ACTIONS !== undefined
(process.env.GITHUB_ACTIONS === "true" &&
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If majority of the changes in a file are formatting, it's helpful to call that out and identify the non-formatting changes explicitly so reviewers can focus on the meaningful differences.

@@ -0,0 +1,87 @@
import { spawn, execSync } from "node:child_process";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's follow the existing naming convention please.

Image

@maparent maparent merged commit a7ec742 into main Apr 23, 2026
12 of 13 checks passed
@maparent maparent deleted the eng-681-automate-database-testing branch April 23, 2026 16:41
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