Skip to content

ci(lint): run clippy in release mode#8541

Merged
graphite-app[bot] merged 1 commit intomainfrom
01-16-ci_lint_run_clippy_in_release_mode
Jan 17, 2025
Merged

ci(lint): run clippy in release mode#8541
graphite-app[bot] merged 1 commit intomainfrom
01-16-ci_lint_run_clippy_in_release_mode

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jan 16, 2025

CI Clippy task catch lint errors which only appear in release mode (e.g. the one fixed in #8539).

Add a profile for this. cargo clippy --profile dev-no-debug-assertions is about 35% faster than cargo clippy --release (and is slightly faster than plain cargo clippy) but catches the same problems.

This slows down the Clippy CI task, but it still remains faster than running conformance, so I don't think it's likely to slow down CI overall.

Copy link
Member Author

overlookmotel commented Jan 16, 2025


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 January 16, 2025 12:11
@overlookmotel overlookmotel force-pushed the 01-16-ci_lint_run_clippy_in_release_mode branch from da60a47 to 70ce295 Compare January 16, 2025 12:12
@overlookmotel overlookmotel changed the base branch from main to 01-16-refactor_transformer_class-properties_fix_lint_warning_in_release_mode January 16, 2025 12:12
@overlookmotel
Copy link
Member Author

overlookmotel commented Jan 16, 2025

Confirmed the Clippy CI task did error when this PR based on current main (i.e. before #8539 fixed the lint error):

https://github.com/oxc-project/oxc/actions/runs/12808503116/job/35711378282?pr=8541

@Boshen Is this worthwhile? Maybe we should only run it in pre-release process rather than on every PR?

@overlookmotel overlookmotel requested review from Boshen and removed request for Dunqing January 16, 2025 12:15
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 16, 2025

CodSpeed Performance Report

Merging #8541 will not alter performance

Comparing 01-16-ci_lint_run_clippy_in_release_mode (70ce295) with 01-16-refactor_transformer_class-properties_fix_lint_warning_in_release_mode (66bf735)

Summary

✅ 32 untouched benchmarks

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jan 17, 2025
Copy link
Member

Boshen commented Jan 17, 2025

Merge activity

  • Jan 17, 12:57 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jan 17, 12:57 AM EST: A user added this pull request to the Graphite merge queue.
  • Jan 17, 1:23 AM EST: A user merged this pull request with the Graphite merge queue.

CI Clippy task catch lint errors which only appear in release mode (e.g. the one fixed in #8539).

Add a profile for this. `cargo clippy --profile dev-no-debug-assertions` is about 35% faster than `cargo clippy --release` (and is slightly faster than plain `cargo clippy`) but catches the same problems.

This slows down the Clippy CI task, but it still remains faster than running conformance, so I don't think it's likely to slow down CI overall.
@Boshen Boshen force-pushed the 01-16-refactor_transformer_class-properties_fix_lint_warning_in_release_mode branch from 66bf735 to 72f425f Compare January 17, 2025 06:14
@Boshen Boshen force-pushed the 01-16-ci_lint_run_clippy_in_release_mode branch from 70ce295 to 1d4c7a1 Compare January 17, 2025 06:15
Base automatically changed from 01-16-refactor_transformer_class-properties_fix_lint_warning_in_release_mode to main January 17, 2025 06:21
@graphite-app graphite-app bot merged commit 1d4c7a1 into main Jan 17, 2025
18 checks passed
@graphite-app graphite-app bot deleted the 01-16-ci_lint_run_clippy_in_release_mode branch January 17, 2025 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants