Skip to content

feat(orion-scheduler): migrate into mega workspace with configurable …#2099

Merged
genedna merged 1 commit into
web3infra-foundation:mainfrom
benjamin-747:main
May 27, 2026
Merged

feat(orion-scheduler): migrate into mega workspace with configurable …#2099
genedna merged 1 commit into
web3infra-foundation:mainfrom
benjamin-747:main

Conversation

@benjamin-747
Copy link
Copy Markdown
Collaborator

…paths

  • Add orion-scheduler as a Cargo workspace member
  • Move hardcoded paths (orion_source_dir, orion_binary_path, ssh_public_key_path) to target_config.json
  • Add target_config.json.template as a configuration reference
  • Remove custom_images/default_image config in favor of API-driven image parameters
  • Add build-custom-image.sh with configurable OUTPUT_DIR via env var
  • Update documentation (README, DESIGN, TESTING, ARTIFACT)

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7f084993a4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread orion-scheduler/src/main.rs
Comment thread orion-scheduler/src/orion_deployer.rs
Comment thread orion-scheduler/src/handlers.rs Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6369ace716

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread orion-scheduler/target_config.json.template Outdated
Comment thread orion-scheduler/src/handlers.rs Outdated
Comment thread orion-scheduler/README.md
@benjamin-747 benjamin-747 marked this pull request as draft May 27, 2026 01:35
@benjamin-747 benjamin-747 force-pushed the main branch 4 times, most recently from 2ee5016 to 2d9a25c Compare May 27, 2026 02:59
…paths

- Add orion-scheduler as a Cargo workspace member
- Move hardcoded paths (orion_source_dir, orion_binary_path, ssh_public_key_path) to target_config.json
- Add target_config.json.template as a configuration reference
- Remove custom_images/default_image config in favor of API-driven image parameters
- Add build-custom-image.sh with configurable OUTPUT_DIR via env var
- Update documentation (README, DESIGN, TESTING, ARTIFACT)
@benjamin-747 benjamin-747 marked this pull request as ready for review May 27, 2026 03:12
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 95dca755d6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@@ -0,0 +1,22 @@
[workspace]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include scheduler in the root workspace

This manifest declares a nested [workspace], and the root /workspace/mega/Cargo.toml does not list orion-scheduler; I checked root cargo metadata and orion-scheduler is absent from workspace_members. In contexts where CI or developers run cargo check --workspace from /workspace/mega, the new service is skipped entirely, so build/test regressions can merge unnoticed. Remove the nested workspace and add the package to the root workspace members (or otherwise wire it into the root checks).

Useful? React with 👍 / 👎.

"log_dir": "/var/log/orion-scheduler",
"orion_source_dir": "/path/to/mega/orion",
"orion_binary_path": "/path/to/mega/target/debug/orion",
"ssh_public_key_path": "~/.ssh/orion_vm_access.pub",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use an expanded SSH key path in the template

The template uses ~/.ssh/..., but inject_ssh_keys passes ssh_public_key_path directly to Path::new and then checks exists(), so Rust will look for a literal ~ directory rather than the user's home directory. Users copying this config will silently skip SSH key injection and lose the documented VM debug access; either expand ~ when loading the config or use an absolute path in the template.

Useful? React with 👍 / 👎.

@benjamin-747 benjamin-747 requested a review from genedna May 27, 2026 10:44
@genedna genedna added this pull request to the merge queue May 27, 2026
Merged via the queue into web3infra-foundation:main with commit 717d760 May 27, 2026
8 checks passed
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