Skip to content

Conversation

lambdalisue
Copy link
Member

@lambdalisue lambdalisue commented Aug 24, 2025

Summary

  • Update GitHub workflows to use Deno 2.x instead of 1.x
  • Upgrade denoland/setup-deno action to v2
  • Update @david/publish-on-tag to 0.2.0
  • Remove deprecated update workflow and related tasks
  • Clean up unused version field in deno.jsonc

Test plan

  • Verify GitHub workflows use correct Deno version
  • Confirm JSR publishing works with updated configuration
  • Check that all CI jobs pass with new setup

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores

    • Upgraded runtime to Deno 2.x for improved performance and compatibility.
    • Updated CI actions to latest versions for better reliability and support.
    • Removed deprecated automated dependency-update workflow.
    • Cleaned up configuration by removing obsolete update-related tasks.
  • Tests

    • Streamlined CI checks and improved caching to speed up builds and increase stability.

Deno officially provides 'update' functionality, so we can remove our
custom tasks.
Copy link

coderabbitai bot commented Aug 24, 2025

Walkthrough

The PR upgrades CI to Deno 2.x, updates GitHub Actions to newer versions, restructures test workflows by adding a dedicated supported-version-check job and enhancing caches, removes the jsr-publish job from tests, deletes the update automation workflow, and removes update-related tasks and the version field from deno.jsonc.

Changes

Cohort / File(s) Summary
CI runtime upgrade
.github/workflows/jsr.yml
Bumps Deno from 1.x to 2.x using denoland/setup-deno@v2; updates publish-on-tag action from 0.1.3 to 0.2.0.
CI job restructuring and caching
.github/workflows/test.yml
Upgrades setup-deno to v2; removes Gen/supported-version checks from the check job; adds a new supported-version-check job (with Windows autocrlf step) running Deno 2.x matrix; enhances cache keys/paths for check and test jobs; removes jsr-publish job.
Workflow deletion
.github/workflows/update.yml
Deletes the scheduled/manual dependency update workflow using molt-action@v1.
Config/task cleanup
deno.jsonc
Removes top-level "version" and deletes update-related tasks: update, update:write, update:commit; no other config changes.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    actor Dev as Developer
    participant GH as GitHub Actions
    rect rgb(240,245,255)
    note right of GH: On PR / push
    Dev->>GH: Push / PR
    GH->>GH: check job (setup-deno v2, cache)
    GH->>GH: test job (setup-deno v2, improved cache)
    GH->>GH: supported-version-check job (Deno 2.x matrix)
    note over GH: Runs gen and apply:supported-versions checks
    end

    rect rgb(240,255,240)
    note right of GH: On tag push
    Dev->>GH: Create tag
    GH->>GH: jsr.yml workflow (Deno 2.x, publish-on-tag 0.2.0)
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

I nudge my nose at version two,
Hops in the cache, swift and new.
Jobs split neatly, checks in line,
Tags go whoosh—publish fine.
Old updates fade like morning dew—
Burrow’s clean, CI’s true. 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-devtool

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Because supported-version-check depends on denops's supported-versions
that makes the test fail for new denops versions.
Copy link

codecov bot commented Aug 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.77%. Comparing base (4d24486) to head (fb0c981).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #290   +/-   ##
=======================================
  Coverage   84.77%   84.77%           
=======================================
  Files          64       64           
  Lines        2864     2864           
  Branches      278      278           
=======================================
  Hits         2428     2428           
  Misses        434      434           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/test.yml (1)

85-87: Upgrade denoland/setup-deno to v2 in test workflow

  • File: .github/workflows/test.yml, lines 85–87
  • A quick search (rg -n "denoland/setup-deno@v1" .github/workflows -C2) shows this is the only v1 reference.
-      - uses: denoland/[email protected]
+      - uses: denoland/setup-deno@v2
         with:
           deno-version: "${{ matrix.deno_version }}"

This change aligns the action with Deno 2.x support and avoids potential mismatches when using newer runtime versions.

🧹 Nitpick comments (4)
.github/workflows/jsr.yml (1)

4-4: Consider pinning publish runtime to a minor (e.g., 2.3.x) to avoid surprise breaks

Publishing is high‑blast‑radius. Using 2.x can pick up future breaking changes the moment they release. Prefer a minor pin for the publish workflow.

Apply this minimal diff:

-  DENO_VERSION: 2.x
+  DENO_VERSION: 2.3.x
.github/workflows/test.yml (3)

51-55: Cache key is too broad; key off lock/config for better hit rate

hashFiles('**/*') invalidates on almost any repo change. Prefer narrowing to Deno inputs (lockfile/config) to improve cache reuse.

-          key: deno-${{ hashFiles('**/*') }}
-          restore-keys: deno-
+          key: deno-${{ hashFiles('deno.lock', 'deno.json', 'deno.jsonc') }}
+          restore-keys: |
+            deno-

If you also use import maps or workspace configs, add them to hashFiles(...).


150-151: Dead code: Windows-specific git config in a Linux-only matrix

This step never runs because the matrix is ubuntu-latest only. Safe to drop for clarity.

-      - run: git config --global core.autocrlf false
-        if: runner.os == 'Windows'

121-129: Optional: pre-cache can benefit from --reload on CI to warm cache deterministically

Not required, but deno cache --reload ... avoids partial cache hits causing flaky “not found locally” fetches. Only consider if you see intermittents.

-          deno cache \
+          deno cache --reload \
             --config ${DENOPS_TEST_DENOPS_PATH}/denops/@denops-private/deno.jsonc \
             ${DENOPS_TEST_DENOPS_PATH}/denops/@denops-private/mod.ts \
             ./mod.ts
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 4d24486 and fb0c981.

📒 Files selected for processing (4)
  • .github/workflows/jsr.yml (2 hunks)
  • .github/workflows/test.yml (2 hunks)
  • .github/workflows/update.yml (0 hunks)
  • deno.jsonc (0 hunks)
💤 Files with no reviewable changes (2)
  • .github/workflows/update.yml
  • deno.jsonc
🔇 Additional comments (4)
.github/workflows/jsr.yml (2)

4-4: Deno 2.x + setup-deno v2 alignment looks correct

Env pin to 2.x and moving to denoland/setup-deno@v2 are consistent with the PR goal. No functional concerns.

Also applies to: 22-24


27-27: The script will tell us if the code has been updated to use Deno.Command (required for Deno 2.X) instead of the deprecated Deno.run. Once we see the output, we can confirm compatibility and finalize the comment.

.github/workflows/test.yml (2)

46-49: Upgrade to denoland/setup-deno@v2 in check job: LGTM

Matches the Deno 2 toolchain target and aligns with jsr.yml.


163-169: Verified: CI tasks are present

Both the gen (line 101) and apply:supported-versions (line 102) tasks are defined in deno.jsonc, so these workflow steps will succeed without further changes.

@lambdalisue lambdalisue merged commit 43c7856 into main Aug 24, 2025
9 of 10 checks passed
@lambdalisue lambdalisue deleted the fix-devtool branch August 24, 2025 10:20
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.

1 participant