Skip to content

Conversation

@NathanFlurry
Copy link
Member

Changes

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 7, 2025

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

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

View logs

Copy link
Member Author

NathanFlurry commented Apr 7, 2025

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.
Learn more


How to use the Graphite Merge Queue

Add 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.

Copy link

@greptile-apps greptile-apps bot left a 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

Comment on lines +217 to +223
/// 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,
}
Copy link

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'.

Suggested change
/// 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,
}

@cloudflare-workers-and-pages
Copy link

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5bcfed5
Status:🚫  Build failed.

View logs

@cloudflare-workers-and-pages
Copy link

Deploying rivet-studio with  Cloudflare Pages  Cloudflare Pages

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

View logs

@graphite-app
Copy link
Contributor

graphite-app bot commented Apr 7, 2025

Merge activity

  • Apr 7, 6:10 AM EDT: NathanFlurry added this pull request to the Graphite merge queue.
  • Apr 7, 6:11 AM EDT: CI is running for this pull request on a draft pull request (#2322) due to your merge queue CI optimization settings.
  • Apr 7, 6:12 AM EDT: Merged by the Graphite merge queue via draft PR: #2322.

graphite-app bot pushed a commit that referenced this pull request Apr 7, 2025
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
@graphite-app graphite-app bot closed this Apr 7, 2025
@graphite-app graphite-app bot deleted the 04-07-chore_api-actor_handle_no_edge_regions_gracefully branch April 7, 2025 10:12
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