Skip to content
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

fix(cluster): create new cluster server wf with stateful loop #1940

Conversation

MasterPtato
Copy link
Contributor

Changes

Copy link
Contributor Author

MasterPtato commented Jan 24, 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 introduces significant changes to the cluster service's server management system, primarily focusing on implementing stateful loops for better workflow control.

  • Introduces new server::Workflow2 with structured state management via State struct in /packages/services/cluster/src/workflows/server/mod.rs
  • Removes ServerCreate signal from datacenter workflow in /packages/services/cluster/src/workflows/datacenter/mod.rs, indicating a shift in server provisioning approach
  • Modifies scale workflow to handle version-specific server workflows with conditional dispatching in /packages/services/cluster/src/workflows/datacenter/scale.rs
  • Comments out critical integration tests for server provisioning and GC functionality, which needs to be addressed to maintain testing coverage
  • Implements version-aware workflow dispatching using ctx.check_version(2) for backward compatibility during migration

6 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: cfa099f
Status: ✅  Deploy successful!
Preview URL: https://08a2a2e4.rivet.pages.dev
Branch Preview URL: https://01-24-fix-cluster-create-new.rivet.pages.dev

View logs

Copy link
Contributor

graphite-app bot commented Jan 27, 2025

Merge activity

  • Jan 27, 6:21 PM EST: A user added this pull request to the Graphite merge queue.
  • Jan 27, 6:22 PM EST: CI is running for this PR on a draft PR: #1945
  • Jan 27, 6:23 PM EST: A user merged this pull request with the Graphite merge queue via draft PR: #1945.

NathanFlurry pushed a commit that referenced this pull request Jan 27, 2025
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
Copy link

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

Latest commit: cfa099f
Status:⚡️  Build in progress...

View logs

@graphite-app graphite-app bot closed this Jan 27, 2025
@graphite-app graphite-app bot deleted the 01-24-fix_cluster_create_new_cluster_server_wf_with_stateful_loop branch January 27, 2025 23:23
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