Skip to content

Fix CI pipeline failures#970

Closed
yamadashy wants to merge 4 commits intorenovate/all-minor-patchfrom
claude/fix-ci-pipeline-01Kjk5khaLevB7qeXs8eVF8V
Closed

Fix CI pipeline failures#970
yamadashy wants to merge 4 commits intorenovate/all-minor-patchfrom
claude/fix-ci-pipeline-01Kjk5khaLevB7qeXs8eVF8V

Conversation

@yamadashy
Copy link
Owner

Checklist

  • Run npm run test
  • Run npm run lint

renovate bot and others added 4 commits November 25, 2025 08:57
…laude/fix-ci-pipeline-01Kjk5khaLevB7qeXs8eVF8V
The @modelcontextprotocol/sdk update (1.21.0 → 1.22.0) changed the
content array type to a union type including text, image, audio, and
other content types. This caused TypeScript errors when accessing
the 'text' property directly on content items.

Added explicit type assertions to safely access the 'text' property
in test cases that verify error responses.
Regenerated package-lock.json after merging renovate/all-minor-patch
branch with dependency updates.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 26, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This PR updates GitHub Actions workflow steps to newer versions across multiple workflows (.github/workflows/*.yml), bumps dependencies and devDependencies in multiple package.json files throughout the project, and refines type handling in a test file.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Version Updates
.github/workflows/autofix.yml, .github/workflows/benchmark.yml, .github/workflows/ci.yml, .github/workflows/claude-code-review.yml, .github/workflows/claude.yml, .github/workflows/codeql.yml, .github/workflows/docker.yml, .github/workflows/pack-repository.yml, .github/workflows/pinact.yml, .github/workflows/schema-update.yml, .github/workflows/test-action.yml
Updated actions/checkout from v5.0.0 to v5.0.1 across all workflows; also updated anthropics/claude-code-action (v1.0.16 → v1.0.17) in claude-related workflows, crate-ci/typos (v1.39.0 → v1.39.2) in ci.yml, github/codeql-action (v4.31.2 → v4.31.3) in codeql.yml, docker/metadata-action (v5.8.0 → v5.9.0) and docker/setup-qemu-action (v3.6.0 → v3.7.0) in docker.yml. No control-flow changes.
Root Package Dependencies
package.json
Bumped @modelcontextprotocol/sdk (^1.21.0 → ^1.22.0), fast-xml-parser (^5.3.1 → ^5.3.2), @biomejs/biome (^2.3.3 → ^2.3.6), @types/node (^24.10.0 → ^24.10.1), @typescript/native-preview (dev: ^7.0.0-dev.20251104.1 → ^7.0.0-dev.20251118.1), oxlint (^1.25.0 → ^1.29.0), vite (^7.1.12 → ^7.2.2).
Browser Package Dependencies
browser/package.json
Updated @types/chrome (^0.1.27 → ^0.1.30), @types/node (^24.10.0 → ^24.10.1), @typescript/native-preview (^7.0.0-dev.20251104.1 → ^7.0.0-dev.20251118.1), jsdom (^27.1.0 → ^27.2.0), sharp (^0.34.4 → ^0.34.5); added new devDependency wxt (^0.20.11).
Memory Script Dependencies
scripts/memory/package.json
Updated @types/node (^24.10.0 → ^24.10.1).
Website Client & Server Dependencies
website/client/package.json, website/server/package.json
website/client: Updated lucide-vue-next (^0.552.0 → ^0.554.0), @types/node (^24.10.0 → ^24.10.1), @typescript/native-preview (^7.0.0-dev.20251104.1 → ^7.0.0-dev.20251118.1). website/server: Updated hono (^4.10.4 → ^4.10.6), repomix (^1.8.0 → ^1.9.1), @types/node (^24.10.0 → ^24.10.1), @typescript/native-preview (^7.0.0-dev.20251104.1 → ^7.0.0-dev.20251118.1).
Test Type Handling
tests/mcp/tools/packCodebaseTool.test.ts
Refined type handling in three test cases: changed from accessing result.content[0].text directly to explicitly casting result.content[0] to { type: 'text'; text: string } structure before accessing text property. Preserves runtime behavior; improves type safety.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • These are primarily homogeneous, repetitive changes across many files (dependency/action version bumps following consistent patterns).
  • The test file modification is a minor type-safety improvement with no logic changes.
  • All updates appear to be patch or minor version bumps with no structural or control-flow modifications.

Possibly related PRs

  • #866: Directly modifies GitHub Actions workflow action pins in the same workflow files.
  • #858: Updates the same dependency entries (vite, oxlint, @types/node) in package.json files.
  • #857: Modifies the same test file tests/mcp/tools/packCodebaseTool.test.ts.

Suggested labels

dependencies

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/fix-ci-pipeline-01Kjk5khaLevB7qeXs8eVF8V

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3b83f9c and 90781d2.

⛔ Files ignored due to path filters (5)
  • browser/package-lock.json is excluded by !**/package-lock.json
  • package-lock.json is excluded by !**/package-lock.json
  • scripts/memory/package-lock.json is excluded by !**/package-lock.json
  • website/client/package-lock.json is excluded by !**/package-lock.json
  • website/server/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (17)
  • .github/workflows/autofix.yml (1 hunks)
  • .github/workflows/benchmark.yml (2 hunks)
  • .github/workflows/ci.yml (15 hunks)
  • .github/workflows/claude-code-review.yml (1 hunks)
  • .github/workflows/claude.yml (1 hunks)
  • .github/workflows/codeql.yml (2 hunks)
  • .github/workflows/docker.yml (2 hunks)
  • .github/workflows/pack-repository.yml (1 hunks)
  • .github/workflows/pinact.yml (1 hunks)
  • .github/workflows/schema-update.yml (1 hunks)
  • .github/workflows/test-action.yml (1 hunks)
  • browser/package.json (1 hunks)
  • package.json (2 hunks)
  • scripts/memory/package.json (1 hunks)
  • tests/mcp/tools/packCodebaseTool.test.ts (3 hunks)
  • website/client/package.json (1 hunks)
  • website/server/package.json (1 hunks)

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@yamadashy yamadashy changed the base branch from main to renovate/all-minor-patch November 26, 2025 14:35
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @yamadashy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request performs a comprehensive update of project dependencies across all sub-packages. The changes are focused on bringing various development and runtime packages to their latest stable versions, which is crucial for maintaining a healthy and secure codebase. This routine maintenance is expected to resolve current CI pipeline failures and ensure future compatibility and stability.

Highlights

  • Dependency Updates: Numerous dependencies across the project's main package, browser extension, scripts, and website client/server have been updated to their latest versions. This includes core development dependencies like @types/node, @typescript/native-preview, jsdom, sharp, @biomejs/biome, oxlint, and vite.
  • Package-lock Synchronization: The package-lock.json files have been thoroughly updated to reflect the new dependency versions and their transitive dependencies, ensuring consistency and reproducibility of builds.
  • CI Pipeline Stability: The primary goal of these updates is to address and fix existing CI pipeline failures, suggesting that previous dependency versions were causing build or test issues.
  • Security and Performance Improvements: Updating dependencies often brings in the latest security patches, performance enhancements, and bug fixes from upstream projects, improving the overall health and reliability of the codebase.
Ignored Files
  • Ignored by pattern: .github/workflows/** (11)
    • .github/workflows/autofix.yml
    • .github/workflows/benchmark.yml
    • .github/workflows/ci.yml
    • .github/workflows/claude-code-review.yml
    • .github/workflows/claude.yml
    • .github/workflows/codeql.yml
    • .github/workflows/docker.yml
    • .github/workflows/pack-repository.yml
    • .github/workflows/pinact.yml
    • .github/workflows/schema-update.yml
    • .github/workflows/test-action.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@yamadashy yamadashy closed this Nov 26, 2025
@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.38%. Comparing base (3b83f9c) to head (90781d2).
⚠️ Report is 1 commits behind head on renovate/all-minor-patch.

Additional details and impacted files
@@                    Coverage Diff                    @@
##           renovate/all-minor-patch     #970   +/-   ##
=========================================================
  Coverage                     90.38%   90.38%           
=========================================================
  Files                           110      110           
  Lines                          7890     7890           
  Branches                       1528     1528           
=========================================================
  Hits                           7131     7131           
  Misses                          759      759           

☔ 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
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request primarily consists of dependency updates across various package.json and package-lock.json files, likely to resolve CI pipeline failures as the title suggests. Additionally, there's a type-related fix in a test file. The dependency bumps seem appropriate for fixing CI issues. I've added a suggestion to refactor a small piece of duplicated code in the test file to improve maintainability.

expect(result.isError).toBe(true);
expect(result.content).toHaveLength(1);
const parsedResult = JSON.parse(result.content[0].text as string);
const parsedResult = JSON.parse((result.content[0] as { type: 'text'; text: string }).text);
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

While this type assertion is correct and fixes the type error, the logic for parsing the result content is repeated across three tests in this file (lines 149, 162, and 175). To improve code clarity and reduce duplication, consider creating a helper function. This would centralize the logic for extracting and parsing the text from the result content, making the tests cleaner and easier to maintain.

For example:

function getParsedError(result: CallToolResult): { errorMessage: string } {
  const content = result.content[0] as { type: 'text'; text: string };
  return JSON.parse(content.text);
}

// In your test:
const parsedResult = getParsedError(result);
expect(parsedResult.errorMessage).toBe('Failed to return a result');

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