Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jul 10, 2025

PR description is being written. Please check back in a minute.

Devin Session: https://app.devin.ai/sessions/da64f2c372844e75ab724b039076305d


Important

Adds CI workflow for running tests using GitHub Actions and enhances test setup and constants.

  • CI Workflow:
    • Adds .github/workflows/test.yml to run tests on push and pull_request to main branch.
    • Uses ubuntu-latest, actions/checkout@v4, and oven-sh/setup-bun@v1 with bun-version: 1.2.18.
    • Installs dependencies with bun install --frozen and runs tests with bun test --timeout 30000 --bail --coverage.
  • Test Enhancements:
    • Adds runInAction from mobx in sandbox.test.ts to set up sessions for tests.
    • Mocks readOrFetchBatch and disconnect in sandbox.test.ts.
    • Normalizes file paths for read/write operations in sandbox.test.ts.
  • Constants:
    • Adds IGNORED_DIRECTORIES to files.ts for directory exclusion in tests.

This description was created by Ellipsis for f9a7a01. You can customize this summary. It will automatically update as commits are pushed.

- Add GitHub Actions workflow to run bun test on pushes to main and PRs
- Uses same Bun setup pattern as existing Supabase workflows
- Runs tests across all packages in monorepo using existing test script

Co-Authored-By: [email protected] <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@supabase
Copy link

supabase bot commented Jul 10, 2025

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


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

@vercel
Copy link

vercel bot commented Jul 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 13, 2025 5:08pm
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 13, 2025 5:08pm

bun-version: latest

- name: Install dependencies
run: bun install --frozen-lockfile
Copy link
Contributor

Choose a reason for hiding this comment

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

The --frozen-lockfile flag is specific to Yarn and not supported in Bun. For Bun, the equivalent flag is --frozen, which ensures dependencies are installed exactly as specified in the lockfile without updating it.

Suggested change
run: bun install --frozen-lockfile
run: bun install --frozen

This will maintain the same intended behavior of preventing lockfile updates during CI runs.

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.


- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
Copy link
Contributor

Choose a reason for hiding this comment

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

Pin the Bun version instead of using 'latest' for build consistency.

Suggested change
bun-version: latest
bun-version: 1.0.25

- Change --frozen-lockfile to --frozen (correct for Bun)
- Pin Bun version to 1.1.38 instead of latest for consistency
- Addresses feedback from Graphite and Ellipsis bots

Co-Authored-By: [email protected] <[email protected]>
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
- Add IGNORED_DIRECTORIES to constants package to fix import error
- Add timeout (30s), bail, and coverage options to prevent hangs
- Fix SandboxManager constructor calls in tests to include required EditorEngine parameter
- Addresses CI test hanging issue that was causing 30+ minute timeouts

Co-Authored-By: [email protected] <[email protected]>
- Fix --bail 1 flag that was being interpreted as filter instead of bail option
- Change to --bail which defaults to 1 and works correctly
- Upgrade Bun version from 1.1.38 to 1.2.18 for better compatibility
- Fix --frozen-lockfile to --frozen for Bun 1.2.x
- Verified locally that tests now execute properly instead of being filtered out

Co-Authored-By: [email protected] <[email protected]>
- Remove unused 'editor.panels.edit.tabs.chat.mode.tooltip' key from es.json
- Fixes localization test failure that was preventing CI from passing
- Key was not used anywhere in codebase, confirmed via search

Co-Authored-By: [email protected] <[email protected]>
- Assign testMockSession to testManager.session.session
- Fixes 'should list files recursively' test failure
- Ensures listFilesRecursively can access mocked readdir function

Co-Authored-By: [email protected] <[email protected]>
- Add explicit check that mock session is properly assigned
- Helps debug CI vs local test execution differences
- Ensures session is connected before calling listFilesRecursively

Co-Authored-By: [email protected] <[email protected]>
- Use runInAction for MobX observable assignments to prevent strict mode violations
- Fix test expectations to match SandboxFile object structure (content2.content)
- Add missing readOrFetchBatch method to FileSyncManager mocks
- Add disconnect method to all session mocks to prevent cleanup errors
- All 8 sandbox tests now pass locally with proper mock handling

Co-Authored-By: [email protected] <[email protected]>
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