← Back to Pull requests

Replace Deno CI with pure Rust validation workflow #9

Open
Copilot opened this pull request with 80 lines diff across 2 files
View on GitHub
Copilot Copilot commented on Oct 13, 2026 04:53 UTC
Author

The legacy Deno CI workflow was removed to stop irrelevant lint and test failures across the repository. This change introduces a minimal, standard GitHub Actions workflow dedicated purely to validating Rust tooling.

Workflow Changes

  • Remove Deno workflow: Deleted .github/workflows/deno.yml.

  • Add Rust CI workflow: Added .github/workflows/rust.yml configured to:

  • - Trigger on push and pull_request against main.
    - Enforce least-privilege token permissions (contents: read).
    - Provision the stable Rust toolchain and rustfmt component via dtolnay/rust-toolchain.
    - Execute cargo fmt --all --check, cargo check --verbose, and cargo test --verbose.

    Workflow Definition

    name: Rust
    
    on:
      push:
        branches: ["main"]
      pull_request:
        branches: ["main"]
    
    permissions:
      contents: read
    
    env:
      CARGO_TERM_COLOR: always
    
    jobs:
      test:
        runs-on: ubuntu-latest
        steps:
          - name: Checkout repository
            uses: actions/checkout@v4
    
          - name: Install stable Rust toolchain
            uses: dtolnay/rust-toolchain@stable
            with:
              toolchain: stable
              components: rustfmt
    
          - name: Check formatting
            run: cargo fmt --all --check
    
          - name: Run cargo check
            run: cargo check --verbose
    
          - name: Run cargo test
            run: cargo test --verbose
    

    Diff: 80 lines (+38 / -42) across 2 files Reviewer: tjkilgore93-stack Review duration: 54314m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.43) × (1 − Review Confidence (0.78)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 80 lines diff across 2 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.79 · 4 substantive comment(s)
    0.79
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    78%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.263
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    9 items
    vercel[bot] vercel[bot] commented on Oct 13, 2026 04:53 UTC
    Bot

    [vc]: #VdXDXbA8Idq2+U7ChFmHsTsg5u+Vp4Z+IbUFlPUJ2UI=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJoeXBlcmZ5IiwicHJvamVjdElkIjoicHJqX2ZJVUFwd0ZaeHVNVUlJQmdtWWZrdFNJQUJVRXciLCJyb290RGlyZWN0b3J5IjoiJDovL2h5cGVyZnk6Ly8kIiwiaW5zcGVjdG9yVXJsIjoiaHR0cHM6Ly92ZXJjZWwuY29tL2h5cGVyZnlhL2h5cGVyZnkvNFB6RUxBcXZhcFNCQnNNQkw5UWZHWG9kN205OCIsInByZXZpZXdVcmwiOiIiLCJuZXh0Q29tbWl0U3RhdHVzIjoiRkFJTEVEIiwibGl2ZUZlZWRiYWNrIjp7InJlc29sdmVkIjowLCJ1bnJlc29sdmVkIjowLCJ0b3RhbCI6MCwibGluayI6IiJ9fV19
    The latest updates on your projects. Learn more about Vercel for GitHub.

    | Project | Deployment | Actions | Updated |
    | :--- | :----- | :------ | :------ |
    | <a href="https://vercel.com/hyperfya/hyperfy"><sup><img src="https://vercel.com/api/www/avatar?projectId=prj_fIUApwFZxuMUIIBgmYfktSIABUEw&teamId=team_eYOro5HQoHZ4jG6A3dTBtPNo&s=32" width="16" height="16" align="middle" alt="" /></sup></a> hyperfy | !Error Error | | <relative-time datetime="2026-10-13T04:59:15.401Z">Oct 13, 2026 4:59am UTC</relative-time> |

    tjkilgore93-stack tjkilgore93-stack approved these changes on Oct 13, 2026 16:58 UTC
    Approved Reviewer

    Approved these changes.

    Copilot Copilot commented on code on Oct 14, 2026 10:34 UTC
    Code Review
    .github/workflows/rust.yml:1
    @@ -0,0 +1,38 @@
    +# This workflow runs Rust checks and tests using the stable Rust toolchain.
    +
    +name: Rust
    +
    +on:
    +  push:
    +    branches: ["main"]
    +  pull_request:
    +    branches: ["main"]
    +
    +permissions:
    +  contents: read
    +
    +env:
    +  CARGO_TERM_COLOR: always
    +
    +jobs:
    +  test:
    +    runs-on: ubuntu-latest
    +
    +    steps:
    +      - name: Checkout repository
    +        uses: actions/checkout@v4
    +
    +      - name: Install stable Rust toolchain
    +        uses: dtolnay/rust-toolchain@stable
    +        with:
    +          toolchain: stable
    +          components: rustfmt
    +
    +      - name: Check formatting
    +        run: cargo fmt --all --check
    +
    +      - name: Run cargo check
    +        run: cargo check --verbose

    These commands run from the repository root, but this revision contains no Cargo.toml (and no Rust crate anywhere in the tree), so the new job will fail immediately with Cargo's “could not find Cargo.toml” error. A Rust manifest/crate must be added, or this workflow must target the actual crate location, before replacing the existing CI.

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Oct 14, 2026 10:34 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🟡 Changes recommended

    The Rust workflow will fail because the repository contains no Cargo manifest or Rust crate.

    <details open>
    <summary><strong>1 open finding</strong></summary>

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/high-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/high-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/high-v2-light.png" alt="High severity" width="62" height="18" align="texttop"></picture> CI runs Cargo commands without a Rust manifest · New

  • </details>

    <details>
    <summary><strong>What changed in this PR</strong></summary>

    Replaces the Deno workflow with Rust-focused CI validation.

    Changes:

  • Removes Deno linting and testing.

  • Adds Rust formatting, compilation, and test checks.
  • | File | Description |
    | ---- | ----------- |
    | .github/​workflows/​rust.yml | Adds Rust CI validation. |
    | .github/​workflows/​deno.yml | Removes legacy Deno CI. |
    </details>

    🧠 Review effort: Balanced

    ---

    💡 <a href="/Hyperfy1/hyperfy/new/main?filename=.github/skills/code-review/SKILL.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add a code-review agent skill</a> or configure MCP servers for context-aware, tailored reviews. <a href="https://docs.github.com/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=webui#mcp-servers-and-agent-skills" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn more in the docs.</a>

    devin-ai-integration[bot] devin-ai-integration[bot] commented on code on Oct 15, 2026 20:42 UTC
    Code Review
    .github/workflows/rust.yml:1
    @@ -0,0 +1,38 @@
    +# This workflow runs Rust checks and tests using the stable Rust toolchain.
    +
    +name: Rust
    +
    +on:
    +  push:
    +    branches: ["main"]
    +  pull_request:
    +    branches: ["main"]
    +
    +permissions:
    +  contents: read
    +
    +env:
    +  CARGO_TERM_COLOR: always
    +
    +jobs:
    +  test:
    +    runs-on: ubuntu-latest
    +
    +    steps:
    +      - name: Checkout repository
    +        uses: actions/checkout@v4
    +
    +      - name: Install stable Rust toolchain
    +        uses: dtolnay/rust-toolchain@stable
    +        with:
    +          toolchain: stable
    +          components: rustfmt
    +
    +      - name: Check formatting
    +        run: cargo fmt --all --check

    <!-- devin-review-comment {"id": "BUG_pr-review-job-680302c7d3a242ed89cced6a22fb0de5_0001", "file_path": ".github/workflows/rust.yml", "start_line": 31, "end_line": 32, "side": "RIGHT", "based_on_repo_rules": false, "kind": "bug"} -->

    🔴 Validation fails without a Cargo project

    Every run fails at cargo fmt --all --check because the repository has no Cargo manifest. Neither cargo check nor cargo test runs.

    <details>
    <summary>Learn more</summary>

    The workflow runs at the repository root after checkout. This repository contains package.json and JavaScript source, but no Cargo.toml or Rust source. Cargo needs a manifest before it can format, check, or test a project, so every run stops at the first Cargo command.

    Example: A pull request changes src/core/billing.js. Checkout succeeds, then cargo fmt --all --check reports that no Cargo.toml exists; the job fails without validating the change.

    Recommended fix: Replace the Cargo steps with checks for the actual Node project, using the Node version specified by package.json and installing dependencies before running its checks. If Rust validation is intended for a future project, introduce its manifest and sources first.

    </details>

    <!-- devin-review-badge-begin -->
    <a href="https://app.devin.ai/review/hyperfy1/hyperfy/pull/9" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
    <!-- devin-review-badge-end -->

    ---
    Was this helpful? React with 👍 or 👎 to provide feedback.

    devin-ai-integration[bot] devin-ai-integration[bot] commented on code on Oct 15, 2026 20:42 UTC
    Code Review
    .github/workflows/rust.yml:1
    @@ -0,0 +1,38 @@
    +# This workflow runs Rust checks and tests using the stable Rust toolchain.
    +
    +name: Rust
    +
    +on:
    +  push:
    +    branches: ["main"]
    +  pull_request:
    +    branches: ["main"]
    +
    +permissions:
    +  contents: read
    +
    +env:
    +  CARGO_TERM_COLOR: always
    +
    +jobs:
    +  test:
    +    runs-on: ubuntu-latest
    +
    +    steps:
    +      - name: Checkout repository
    +        uses: actions/checkout@v4
    +
    +      - name: Install stable Rust toolchain
    +        uses: dtolnay/rust-toolchain@stable
    +        with:
    +          toolchain: stable
    +          components: rustfmt
    +
    +      - name: Check formatting
    +        run: cargo fmt --all --check
    +
    +      - name: Run cargo check
    +        run: cargo check --verbose
    +
    +      - name: Run cargo test
    +        run: cargo test --verbose

    <!-- devin-review-comment {"id": "BUG_pr-review-job-680302c7d3a242ed89cced6a22fb0de5_0002", "file_path": ".github/workflows/rust.yml", "start_line": 37, "end_line": 38, "side": "RIGHT", "based_on_repo_rules": false, "kind": "bug"} -->

    🟡 Application tests disappear from CI

    On pull requests, cargo test never runs the application's JavaScript tests. The test script runs them through Node, so application regressions go unchecked.

    <details>
    <summary>Learn more</summary>

    The project's test script in package.json invokes Node's test runner on test/*/.test.js. The current tests cover billing, progression, packet definitions, and a database migration. The new workflow contains only Cargo steps, and Cargo cannot execute these JavaScript tests. The missing Cargo manifest also makes the job fail earlier, but adding a Cargo project alone would leave this gap.

    Example: A change breaks canBuildAndHost for trial users. npm run test catches it locally, while this workflow never invokes that test.

    Recommended fix: Add a Node job or steps that install dependencies and run npm test against the existing suite. Keep Rust validation separately if a Rust project is added.

    </details>

    <!-- devin-review-badge-begin -->
    <a href="https://app.devin.ai/review/hyperfy1/hyperfy/pull/9" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
    <!-- devin-review-badge-end -->

    ---
    Was this helpful? React with 👍 or 👎 to provide feedback.

    devin-ai-integration[bot] devin-ai-integration[bot] commented on Oct 15, 2026 20:42 UTC
    Reviewer

    Devin Review found 2 potential issues.

    <!-- devin-review-badge-begin -->
    <a href="https://app.devin.ai/review/hyperfy1/hyperfy/pull/9" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
    <!-- devin-review-badge-end -->

    tjkilgore93-stack tjkilgore93-stack approved these changes on Oct 16, 2026 23:06 UTC
    Approved Reviewer

    Approved these changes.

    Assignees
    Copilot Copilot
    Labels
    risk: low confidence: 78.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.7% (MEDIUM) · Higher = larger blast radius
    42.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 78.1% · Lower = rushed or shallow review
    78.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 9.3% · Safe to merge
    9.3%