[fix] Resolve interferring tests#4290
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR aims to stop OSS acceptance/integration tests from interfering with each other by enforcing OSS single-tenant behavior during “simple account” creation (so creating users doesn’t keep creating new org/workspace/project graphs). It also updates the PR preview workflow to run tests for all packages.
Changes:
- Add an OSS-only code path for
POST /admin/simple/accounts/that attaches new users to the pre-existing OSS singleton org/workspace/default project. - Introduce
OssMultiOrgNotSupportedErrorand map it to a 400 in the FastAPI router. - Update the PR preview workflow to run Railway tests with
packages: all.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
api/oss/src/core/accounts/service.py |
Adds OSS-only simple-account creation path and rejects multi-org inputs in OSS mode. |
api/oss/src/core/accounts/errors.py |
Adds a new OSS-specific domain error for unsupported multi-org inputs. |
api/oss/src/apis/fastapi/accounts/router.py |
Maps the new OSS error to a 400 Bad Request. |
.github/workflows/14-check-pr-preview.yml |
Runs Railway preview tests for all packages instead of web-only. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Railway Preview Environment
Updated at 2026-05-07T17:22:07.625Z |
- Replace incorrect get_workspaces(organization_id=...) call (no kwarg) with get_project_by_organization_id + admin_get_workspace_by_id — both return Optional and avoid the NoResultFound bubble from get_default_project_id_from_workspace. - Reject entry.api_keys in OSS mode (was silently ignored). Surfaces the intent via OssMultiOrgNotSupportedError with a message pointing callers to options.create_api_keys for the default key. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
No description provided.