Skip to content

[CI] fix: notebook ci may not working#18417

Merged
Kangyan-Zhou merged 2 commits intosgl-project:mainfrom
alphabetc1:fix/notebook_ci_fix
Feb 8, 2026
Merged

[CI] fix: notebook ci may not working#18417
Kangyan-Zhou merged 2 commits intosgl-project:mainfrom
alphabetc1:fix/notebook_ci_fix

Conversation

@alphabetc1
Copy link
Contributor

@alphabetc1 alphabetc1 commented Feb 7, 2026

Motivation

trying to fix #18430

In the previous code, the Execute Notebooks workflow could be effectively skipped due to a combination of factors:

  • When a PR is created (opened), the notebook workflow is not triggered because pull_request.types did not include opened.
  • If the PR does not receive any further pushes (synchronize) and no other triggering events occur (such as adding a label),
  • Then no notebook workflow run is ever created for that head SHA.
  • However, /tag-and-rerun-ci can only rerun jobs if there is already a workflow run record (either skipped or failure) for that head SHA.
  • As a result, the entire notebook CI effectively gets skipped.

Adding opened alone only solves part of the problem: the workflow run will at least exist. But even if run-all-notebooks is skipped, the overall workflow often still ends in success instead of skipped. In that case, handle_rerun_failed_ci will not pick it up as a failed/skipped target to rerun. To fully address this, we also need to adjust both call-gate and the finish job (following the pattern used in the PR Test workflow).

how to reproduce

  1. Modify files under docs/** and submit a PR.
  2. Tag the PR with /tag-and-rerun-ci.
  3. After the run-ci label is added, the notebook CI is still not triggered and does not even appear in the Checks list.
    For example:
    [Do NOT MERGE] notebook ci test #18418

Benchmarking and Profiling

See #18416.
After this fix, any non-markdown changes will correctly trigger the notebook CI once it is tagged with /tag-and-rerun-ci.

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.

@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@zhaochenyang20
Copy link
Collaborator

thanks so much for this PR. I found that /tag-and-rerun-ci seems not be the way I think of.

I am thinking of it like, "if there is no tag, then add run-ci tag and run all the CI; if there is alreay tag, just rerun the failed one".

So it's quite different that I think?

@zhaochenyang20
Copy link
Collaborator

After this fix, a new PR that modifies docs/** will correctly trigger the notebook CI once it is tagged with /tag-and-rerun-ci.

Not that, as I mentioned, any non-markdown changes should trigger this CI. If there is a single line of code change, even in Python with just a blank line, this CI should also be triggered.

@alphabetc1
Copy link
Contributor Author

After this fix, a new PR that modifies docs/** will correctly trigger the notebook CI once it is tagged with /tag-and-rerun-ci.

Not that, as I mentioned, any non-markdown changes should trigger this CI. If there is a single line of code change, even in Python with just a blank line, this CI should also be triggered.

Sorry, I didn’t make it clear earlier. Any non-markdown changes should trigger this CI, as shown in the code:

yaml
paths:
  - "python/sglang/**"
  - "docs/**"
paths-ignore:
  - "python/sglang/**/*.md"
  - "docs/**/*.md"

@zhaochenyang20 zhaochenyang20 mentioned this pull request Feb 8, 2026
5 tasks
@zhaochenyang20
Copy link
Collaborator

#18429

#18429 PR is used to test #18417 PR:

#18417

Basically, we want any code change that is non-markdown only to trigger execute notebook.

Adter #18417 changed, it should works!

@Kangyan-Zhou Kangyan-Zhou merged commit f600965 into sgl-project:main Feb 8, 2026
42 checks passed
@alphabetc1 alphabetc1 deleted the fix/notebook_ci_fix branch February 8, 2026 07:27
charlesHsuGG pushed a commit to charlesHsuGG/sglang that referenced this pull request Feb 9, 2026
Johnsonms pushed a commit to Johnsonms/sglang that referenced this pull request Feb 14, 2026
1StepForever pushed a commit to 1StepForever/sglang that referenced this pull request Feb 26, 2026
* www/pr/ks: (265 commits)
  [BugFix][PD]Fix metadata_buffer_index leak when aborted in PD (sgl-project#17483)
  Refactoring Mooncake TE as a shared distributed component (sgl-project#17810)
  [ModelOPT] Support Qwen 3 Next Coder NVFP4 (sgl-project#18224)
  Update author information in pyproject.toml (sgl-project#18453)
  [Kimi-K2.5] Fix missing `quant_config` in `KimiK25` (sgl-project#18440)
  Add tensor parallelism support to LFM2 ShortConv layers (sgl-project#17777)
  [diffusion] chore: revise process title (sgl-project#18446)
  Fix TRT-LLM MLA backend applying k_scale to BF16 KV cache in BMM1 (sgl-project#18396)
  [diffusion] refactor: group component loaders under the component_loaders/ directory (sgl-project#18438)
  [ModelOpt] Fix broken Qwen3-235B-A22B-Instruct-2507-NVFP4 launch (sgl-project#18189)
  [diffusion] feat: support efficient sequence shard (sgl-project#18161)
  [CI] fix: notebook ci may not working (sgl-project#18417)
  fix: sync server_args.kv_cache_dtype when detecting FP8 KV cache (sgl-project#18394)
  [Fix] Fix backend selection after flashinfer version update (sgl-project#18364)
  [diffusion] platform: support WAN/FLUX/Qwen-Image/Qwen-Image-edit on Ascend (sgl-project#13662)
  fix: fix NVFP4 Kimi-K2.5 weight mapping and exclude list (sgl-project#18370)
  [diffusion] feat: support saving videos directly on the server to avoid the overhead of tensor transfer (sgl-project#18253)
  [diffusion] fix: respect dist_timeout option (sgl-project#18386)
  [Doc] Fix outdated `--fp4-gemm-backend` documentation (sgl-project#18350)
  [diffusion] fix: remove unnecessary norm_type argument from GLM-Image dits (sgl-project#18382)
  ...
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.

[Bug] /tag-and-rerun-ci does not work as expected

3 participants