Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fail tests if xtask modifies files #19315

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snprajwal
Copy link
Contributor

cargo test -p xtask regenerates bindings with xtask. If any of these changes are relevant to a PR, they should a part of the PR. This change causes the CI to fail if a commit does not include the corresponding changes to generated files.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 7, 2025
`cargo codegen` regenerates bindings with xtask. If any of these changes are relevant to a PR,
they should a part of the PR. This change causes the CI to fail if a commit does not include the
corresponding changes to generated files.

Signed-off-by: Prajwal S N <[email protected]>
@snprajwal
Copy link
Contributor Author

Relevant question: we unconditionally generate docs for assists, but do not generate docs for diagnostics when using --check with cargo codegen. I can't seem to understand why only one of them is restricted this way, when both appear under features in the docs. Would it make sense to enable diagnostic docs generation without --check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants