Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 11, 2025

#15565 made oxc_ast_tools depend on local workspace versions of various crates. Add those crates to the watch list for "AST Changes" CI task, so if changes are made in them, ast_tools codegen will run to ensure generated code has been updated to reflect those changes.

In particular, this will prevent generated code getting out of sync when changes to minifier affect the generated code.

@github-actions github-actions bot added the A-ast-tools Area - AST tools label Nov 11, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review November 11, 2025 16:51
Copilot AI review requested due to automatic review settings November 11, 2025 16:51
@overlookmotel overlookmotel self-assigned this Nov 11, 2025
@overlookmotel overlookmotel force-pushed the 11-11-ci_ast_tools_run_ast_changes_ci_task_when_dependency_crates_change branch from 51525f7 to a304eeb Compare November 11, 2025 16:53
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 11, 2025

CodSpeed Performance Report

Merging #15603 will not alter performance

Comparing 11-11-ci_ast_tools_run_ast_changes_ci_task_when_dependency_crates_change (328991f) with main (68703b9)1

Summary

✅ 37 untouched

Footnotes

  1. No successful run was found on main (74033bd) during the generation of this report, so 68703b9 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Copilot finished reviewing on behalf of overlookmotel November 11, 2025 16:54
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 updates the "AST Changes" CI task to trigger when oxc_* dependency crates of ast_tools are modified, preventing generated code from getting out of sync when changes to dependencies (particularly the minifier) affect code generation.

  • Adds TOML parsing to read ast_tools Cargo.toml and extract oxc_* dependencies
  • Generates wildcard watch patterns (crates/{crate}/src/**) for each dependency
  • Updates CI watch list to include dependency crate paths

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tasks/ast_tools/src/output/yaml.rs Adds logic to parse Cargo.toml and extract oxc_* dependencies, generates watch paths for them
tasks/ast_tools/src/main.rs Updates generate_ci_filter to accept Codegen parameter and pass it to yaml_watch_list
tasks/ast_tools/Cargo.toml Adds toml workspace dependency for parsing Cargo.toml files
Cargo.toml Adds toml = "0.9.8" to workspace dependencies
Cargo.lock Adds toml crate and its dependencies (toml_datetime, toml_parser, toml_writer, winnow, serde_spanned)
.github/generated/ast_changes_watch_list.yml Generated output showing new wildcard patterns for dependency crates (oxc_allocator, oxc_ast, oxc_ast_visit, oxc_codegen, oxc_data_structures, oxc_minifier, oxc_parser, oxc_span, oxc_syntax)

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

@overlookmotel overlookmotel force-pushed the 11-11-ci_ast_tools_run_ast_changes_ci_task_when_dependency_crates_change branch from a304eeb to 328991f Compare November 11, 2025 17:37
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Nov 11, 2025
Copy link
Member Author

overlookmotel commented Nov 11, 2025

Merge activity

#15603)

#15565 made `oxc_ast_tools` depend on local workspace versions of various crates. Add those crates to the watch list for "AST Changes" CI task, so if changes are made in them, `ast_tools` codegen will run to ensure generated code has been updated to reflect those changes.

In particular, this will prevent generated code getting out of sync when changes to minifier affect the generated code.
@graphite-app graphite-app bot force-pushed the 11-11-ci_ast_tools_run_ast_changes_ci_task_when_dependency_crates_change branch from 328991f to fc439ed Compare November 11, 2025 17:49
@graphite-app graphite-app bot merged commit fc439ed into main Nov 11, 2025
21 checks passed
@graphite-app graphite-app bot deleted the 11-11-ci_ast_tools_run_ast_changes_ci_task_when_dependency_crates_change branch November 11, 2025 17:55
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast-tools Area - AST tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants