Skip to content

chore(ci): skip benchmark workflows on draft PRs#7611

Merged
graphite-app[bot] merged 1 commit intomainfrom
copilot/fix-benchmark-action-trigger
Dec 21, 2025
Merged

chore(ci): skip benchmark workflows on draft PRs#7611
graphite-app[bot] merged 1 commit intomainfrom
copilot/fix-benchmark-action-trigger

Conversation

Copy link
Contributor

Copilot AI commented Dec 21, 2025

Benchmark workflows should not run on draft PRs to save CI resources.

Changes to benchmark-rust.yml

  • Added ready_for_review to pull_request event types so workflow triggers when draft is marked ready
  • Added if: github.event.pull_request.draft != true to codspeed-benchmark job
  • Updated benchmark-rust job condition to include draft check

No changes needed for benchmark-node.yml as it only triggers on push to main and workflow_dispatch.

Original prompt

Could you make the benchamrk node and rust action only run when they're ready, which means they're not draft


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@netlify
Copy link

netlify bot commented Dec 21, 2025

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit fc539bb
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/694822f9b2a01e00088a06a0

Copilot AI changed the title [WIP] Update benchmark action to run only when ready Skip benchmark workflows on draft PRs Dec 21, 2025
Copilot AI requested a review from hyf0 December 21, 2025 12:23
@hyf0 hyf0 marked this pull request as ready for review December 21, 2025 13:59
Copilot AI review requested due to automatic review settings December 21, 2025 13:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes CI resource usage by preventing benchmark workflows from running on draft pull requests. The workflows will now only execute when PRs are ready for review.

  • Added ready_for_review event type to trigger benchmarks when drafts are marked ready
  • Added draft PR checks to both benchmark jobs to prevent execution on drafts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

hyf0 commented Dec 21, 2025

Merge activity

@github-actions
Copy link
Contributor

github-actions bot commented Dec 21, 2025

Benchmarks Rust

  • target: main(a5124fa)
  • pr: copilot/fix-benchmark-action-trigger(fc539bb)
group                                                        pr                                     target
-----                                                        --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol              1.00     65.4±2.50ms        ? ?/sec    1.00     65.1±1.47ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap    1.00     70.0±1.44ms        ? ?/sec    1.02     71.6±1.81ms        ? ?/sec
bundle/bundle@rome_ts                                        1.00    107.3±3.00ms        ? ?/sec    1.02    109.5±2.44ms        ? ?/sec
bundle/bundle@rome_ts-sourcemap                              1.00    120.1±2.58ms        ? ?/sec    1.01    121.6±1.99ms        ? ?/sec
bundle/bundle@threejs                                        1.00     39.2±0.68ms        ? ?/sec    1.01     39.5±0.64ms        ? ?/sec
bundle/bundle@threejs-sourcemap                              1.00     42.8±0.61ms        ? ?/sec    1.01     43.2±0.62ms        ? ?/sec
bundle/bundle@threejs10x                                     1.00    394.7±4.40ms        ? ?/sec    1.01    399.2±6.04ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                           1.00    455.6±4.80ms        ? ?/sec    1.01    458.0±4.88ms        ? ?/sec
scan/scan@rome_ts                                            1.00     84.6±1.49ms        ? ?/sec    1.01     85.1±1.78ms        ? ?/sec
scan/scan@threejs                                            1.02     29.1±1.71ms        ? ?/sec    1.00     28.4±0.46ms        ? ?/sec
scan/scan@threejs10x                                         1.00    299.7±5.20ms        ? ?/sec    1.00    299.6±6.96ms        ? ?/sec

@hyf0 hyf0 changed the title Skip benchmark workflows on draft PRs chore(ci): skip benchmark workflows on draft PRs Dec 21, 2025
Benchmark workflows should not run on draft PRs to save CI resources.

### Changes to `benchmark-rust.yml`

- Added `ready_for_review` to pull_request event types so workflow triggers when draft is marked ready
- Added `if: github.event.pull_request.draft != true` to `codspeed-benchmark` job
- Updated `benchmark-rust` job condition to include draft check

No changes needed for `benchmark-node.yml` as it only triggers on push to main and workflow_dispatch.

<!-- START COPILOT CODING AGENT SUFFIX -->

<!-- START COPILOT ORIGINAL PROMPT -->

<details>

<summary>Original prompt</summary>

> Could you make the benchamrk node and rust action only run when they're ready, which means they're not draft

</details>

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.
@graphite-app graphite-app bot force-pushed the copilot/fix-benchmark-action-trigger branch from bb0f921 to fc539bb Compare December 21, 2025 16:40
@graphite-app graphite-app bot merged commit fc539bb into main Dec 21, 2025
35 of 36 checks passed
@graphite-app graphite-app bot deleted the copilot/fix-benchmark-action-trigger branch December 21, 2025 16:51
shulaoda added a commit that referenced this pull request Dec 22, 2025
## [1.0.0-beta.56] - 2025-12-22

### 💥 BREAKING CHANGES

- rename `MIXED_EXPORT` error to `MIXED_EXPORTS` (#7565) by @sapphi-red

### 🚀 Features

- rename `id` property to `exporter` in CIRCULAR_REEXPORT error (#7592) by @sapphi-red
- add `ids` property to `CIRCULAR_DEPENDENCY` error (#7591) by @sapphi-red
- node/dev: expose `devMode.lazy` (#7549) by @hyf0
- set log and pos properties for `parseAst` function errors (#7568) by @sapphi-red
- set log and pos properties for logs (#7567) by @sapphi-red
- test-dev-sever: support to manually configure port, run tests in concurrent (#7576) by @hyf0
- add `exporter` property to `MISSING_EXPORT` error (#7564) by @sapphi-red
- add `id` property to `PARSE_ERROR` error (#7563) by @sapphi-red
- support ImporterId hook filter (#7540) by @IWANABETHATGUY

### 🐛 Bug Fixes

- types: better "go to definition" experience for interface `OutputPlugin` (#7610) by @KazariEX
- `postBanner` content should be placed after shebang (#7583) by @btea
- use sanitized filename for preserve modules chunk name (#7603) by @IWANABETHATGUY
- correct filter out unused cjs namespace  (#7602) by @IWANABETHATGUY
- watch: property respect `notify.pollInternal` and `notify.compareContents` (#7595) by @sapphi-red
- make `cleanDir` work with default output directory (#7579) by @shulaoda
- merge `MISSING_NAME_OPTION_FOR_UMD_EXPORT` error to `MISSING_NAME_OPTION_FOR_IIFE_EXPORT` error (#7566) by @sapphi-red
- dev/hmr: ensure cjs modules with no exports reference correct `module` identifier (#7544) by @leegeunhyeok

### 🚜 Refactor

- remove `stable_id` field from `PARSE_ERROR` error (#7593) by @sapphi-red
- make include_runtime_symbol reuseable after linking stage (#7580) by @IWANABETHATGUY
- rust/dev: construct the bundler within itself (#7553) by @hyf0
- rust/watcher: polish API of `Watcher` struct (#7551) by @hyf0
- use `LinkingMetadata::stmt_info_included` to check if a stmt_info is included (#7572) by @IWANABETHATGUY
- use `LinkingMetadata::is_included` to check if a module is included (#7571) by @IWANABETHATGUY
- store module and stmt_info is included info to module meta (#7570) by @IWANABETHATGUY
- make include_* method reunsable after linking stage (#7552) by @IWANABETHATGUY
- rust/watcher: construct the bundler within watcher itself (#7550) by @hyf0
- extract make include_runtime_symbol reusable (#7546) by @IWANABETHATGUY

### ⚙️ Miscellaneous Tasks

- renovate: add `kill-port` in `ignoreDeps` in renovate.json (#7619) by @sapphi-red
- deps: update rust crates (#7617) by @renovate[bot]
- deps: update npm packages (#7616) by @renovate[bot]
- deps: update github-actions (#7615) by @renovate[bot]
- ci: skip benchmark workflows on draft PRs (#7611) by @Copilot
- deps: update dependency rolldown-plugin-dts to ^0.19.0 (#7607) by @renovate[bot]
- deps: update dependency oxlint-tsgolint to v0.10.0 (#7601) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to v0.18.4 (#7599) by @renovate[bot]
- deps: update notify (#7594) by @sapphi-red
- test-dev-server: add retry mechanism to hmr-full-bundle-mode tests (#7588) by @Copilot
- deps: update napi to v3.7.1 (#7590) by @renovate[bot]
- add JSDoc documentation for memfs type (#7587) by @Copilot
- deps: update dependency oxlint to v1.34.0 (#7589) by @renovate[bot]
- move some tests in ignored-by-unsupported-features that are passing (#7569) by @sapphi-red
- deps: update dependency oxlint-tsgolint to v0.9.2 (#7582) by @renovate[bot]
- deps: update oxc resolver to v11.16.0 (#7574) by @renovate[bot]
- test/dev-server: don't run `pnpm install` during tests (#7560) by @hyf0
- test/dev-server: use `kill-port@1` to improve performance (#7575) by @hyf0
- normalize error object to make some Rollup tests pass (#7562) by @sapphi-red
- ci: separate dev-server(hmr) tests and normal tests (#7558) by @hyf0
- ci: make native rolldown build reusable (#7557) by @hyf0
- resolve some TODOs (#7561) by @sapphi-red

### ❤️ New Contributors

* @KazariEX made their first contribution in [#7610](#7610)
* @leegeunhyeok made their first contribution in [#7544](#7544)

Co-authored-by: shulaoda <165626830+shulaoda@users.noreply.github.com>
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.

4 participants