Skip to content

Add bisect ci claude code skill#19649

Merged
Kangyan-Zhou merged 3 commits intosgl-project:mainfrom
Kangyan-Zhou:add-bisect-ci-skill
Mar 2, 2026
Merged

Add bisect ci claude code skill#19649
Kangyan-Zhou merged 3 commits intosgl-project:mainfrom
Kangyan-Zhou:add-bisect-ci-skill

Conversation

@Kangyan-Zhou
Copy link
Copy Markdown
Collaborator

Motivation

Modifications

Accuracy Tests

Benchmarking and Profiling

Checklist

Review Process

  1. Ping Merge Oncalls to start the PR flow. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • /tag-run-ci-label, /rerun-failed-ci, /tag-and-rerun-ci
  4. After green CI and required approvals, ask Merge Oncalls to merge.

Kangyan-Zhou and others added 2 commits March 1, 2026 20:09
Adds a reusable skill that systematically investigates failing CI tests
through temporal bisection, runner/hardware analysis, and optional remote
reproduction on GPU servers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Document the pr-test.yml scheduled runs on main as the primary data
source for regression bisection, with dashboard link and --repo flags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 2, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 introduces a new CI skill aimed at streamlining the debugging process for persistent CI failures. It provides a structured approach to identify whether a regression is due to code changes, hardware specifics, or environmental factors, and offers tools for remote reproduction to facilitate quicker resolution of issues.

Highlights

  • New CI Skill Added: Introduced a new skill, /sglang-bisect-ci-regression, designed to automate and standardize the process of investigating consistently failing CI tests.
  • Comprehensive Bisection Workflow: The skill defines a multi-phase workflow covering failure signature extraction, temporal bisection using scheduled CI runs, runner/hardware analysis, code analysis, and optional remote reproduction.
  • Structured Reporting: A structured report format is provided to classify the root cause (code regression, hardware-specific, environment change, pre-existing flakiness) and detail evidence, timeline, and recommended fixes.
  • Remote Reproduction Capabilities: Includes steps for verifying remote environments, ensuring code freshness, creating minimal reproduction scripts, and running control experiments on specified SSH targets and Docker containers.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .claude/skills/sglang-bisect-ci-regression/SKILL.md
    • Added a new skill definition file for CI regression bisection.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
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.

Copy link
Copy Markdown
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 introduces a new skill documentation file for bisecting CI regressions. The documentation is well-structured and provides a detailed workflow. My review focuses on improving the correctness and clarity of the shell commands within the guide. I've suggested using grep -E for better portability and have proposed changes to the installation instructions to resolve ambiguity between different update methods (git vs. tarball).

gh run view {RUN_ID} --repo sgl-project/sglang --json jobs --jq '.jobs[] | select(.conclusion == "failure") | {name, conclusion, databaseId}'

# Get the failure details
gh run view {RUN_ID} --repo sgl-project/sglang --job {JOB_ID} --log 2>&1 | grep -B 5 -A 30 "AssertionError\|FAIL\|Error\|{TEST_NAME}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The grep command here uses \| for alternation, which is part of basic regular expressions. For better portability and consistency with other grep commands in this document that use extended regular expressions, it's recommended to use the -E flag and | for alternation.

Suggested change
gh run view {RUN_ID} --repo sgl-project/sglang --job {JOB_ID} --log 2>&1 | grep -B 5 -A 30 "AssertionError\|FAIL\|Error\|{TEST_NAME}"
gh run view {RUN_ID} --repo sgl-project/sglang --job {JOB_ID} --log 2>&1 | grep -E -B 5 -A 30 "AssertionError|FAIL|Error|{TEST_NAME}"

gh run view {RUN_ID} --repo sgl-project/sglang --job {JOB_ID} --log 2>&1 | grep -E "Runner name|Machine name" | head -5

# Get GPU/driver info
gh run view {RUN_ID} --repo sgl-project/sglang --job {JOB_ID} --log 2>&1 | grep -i "NVIDIA-SMI\|Driver Version\|CUDA Version" | head -5
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The grep command here uses \| for alternation without the -E flag. This might not be portable across all systems. Using grep -i -E with | is more standard and consistent with other commands in this file.

Suggested change
gh run view {RUN_ID} --repo sgl-project/sglang --job {JOB_ID} --log 2>&1 | grep -i "NVIDIA-SMI\|Driver Version\|CUDA Version" | head -5
gh run view {RUN_ID} --repo sgl-project/sglang --job {JOB_ID} --log 2>&1 | grep -i -E "NVIDIA-SMI|Driver Version|CUDA Version" | head -5

Comment on lines +139 to +142
# Or download tarball if git auth fails
ssh {SSH_TARGET} "docker exec {CONTAINER} bash -c 'curl -L https://github.com/sgl-project/sglang/archive/refs/heads/main.tar.gz -o /tmp/sglang-main.tar.gz && cd /tmp && tar xzf sglang-main.tar.gz'"
# Reinstall
ssh {SSH_TARGET} "docker exec {CONTAINER} bash -c 'cd /path/to/sglang && pip install -e \"python[all]\"'"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The instructions for reinstalling the code are ambiguous. The Reinstall step on line 142 uses /path/to/sglang, which is correct for the git fetch method. However, if the tarball method on line 140 is used, the code is extracted to /tmp/sglang-main, making the reinstall command on line 142 incorrect for that case.

To avoid this ambiguity, I suggest making the tarball installation self-contained and clarifying that the separate reinstall step is for the git method. This makes the instructions clearer and less error-prone.

Suggested change
# Or download tarball if git auth fails
ssh {SSH_TARGET} "docker exec {CONTAINER} bash -c 'curl -L https://github.com/sgl-project/sglang/archive/refs/heads/main.tar.gz -o /tmp/sglang-main.tar.gz && cd /tmp && tar xzf sglang-main.tar.gz'"
# Reinstall
ssh {SSH_TARGET} "docker exec {CONTAINER} bash -c 'cd /path/to/sglang && pip install -e \"python[all]\"'"
# Or download and install from tarball if git auth fails
ssh {SSH_TARGET} "docker exec {CONTAINER} bash -c 'cd /tmp && curl -L https://github.com/sgl-project/sglang/archive/refs/heads/main.tar.gz | tar xz && cd sglang-main && pip install -e \"python[all]\"'"
# Reinstall (after git fetch)
ssh {SSH_TARGET} "docker exec {CONTAINER} bash -c 'cd /path/to/sglang && pip install -e \"python[all]\"'"

- Use `grep -E` with `|` instead of `\|` for alternation (3 places)
- Clarify tarball vs git fetch reinstall instructions to avoid ambiguity

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Kangyan-Zhou Kangyan-Zhou changed the title Add bisect ci skill Add bisect ci claude code skill Mar 2, 2026
@Kangyan-Zhou Kangyan-Zhou merged commit ec97754 into sgl-project:main Mar 2, 2026
41 of 42 checks passed
Kangyan-Zhou added a commit to Kangyan-Zhou/sglang that referenced this pull request Mar 4, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
magicYang1573 pushed a commit to magicYang1573/sglang that referenced this pull request Mar 9, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Wangzheee pushed a commit to Wangzheee/sglang that referenced this pull request Mar 21, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant