-
Notifications
You must be signed in to change notification settings - Fork 134
chore(api-actor): handle no edge regions gracefully #2318
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
chore(api-actor): handle no edge regions gracefully #2318
Conversation
Deploying rivet-hub with
|
| Latest commit: |
5bcfed5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c0f6be84.rivet-hub-7jb.pages.dev |
| Branch Preview URL: | https://04-07-chore-api-actor-handle.rivet-hub-7jb.pages.dev |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR improves error handling for missing edge regions by filtering datacenters across actor endpoints before making API calls, ensuring that only datacenters with valid worker and guard pools are contacted.
- Updated packages/core/api/actor/src/route/logs.rs to bail early with a clear error when no valid datacenters are found.
- Modified multiple endpoints in packages/core/api/actor/src/route/actors.rs to use the new filtering logic.
- Refined build prewarm and error aggregation in packages/core/api/actor/src/route/builds.rs.
- Enhanced configuration and error propagation in packages/common/config/src/config/server/rivet/mod.rs and packages/core/api/actor/src/utils.rs.
5 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
| /// If there are multipe types of servers in a cluster. This affects how fan-out requests are | ||
| /// sent to servers. | ||
| pub fn has_multiple_server_types(&self) -> bool { | ||
| match self.auth.access_kind { | ||
| AccessKind::Development => false, | ||
| AccessKind::Public | AccessKind::Private => true, | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Typo in doc comment: 'multipe' should be 'multiple'.
| /// If there are multipe types of servers in a cluster. This affects how fan-out requests are | |
| /// sent to servers. | |
| pub fn has_multiple_server_types(&self) -> bool { | |
| match self.auth.access_kind { | |
| AccessKind::Development => false, | |
| AccessKind::Public | AccessKind::Private => true, | |
| } | |
| ```suggestion /// If there are multiple types of servers in a cluster. This affects how fan-out requests are | |
| /// sent to servers. | |
| pub fn has_multiple_server_types(&self) -> bool { | |
| match self.auth.access_kind { | |
| AccessKind::Development => false, | |
| AccessKind::Public | AccessKind::Private => true, | |
| } |
Deploying rivet-studio with
|
| Latest commit: |
5bcfed5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://83e9fb06.rivet-studio.pages.dev |
| Branch Preview URL: | https://04-07-chore-api-actor-handle.rivet-studio.pages.dev |
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->

Changes