Skip to content

Update generated lints#21998

Merged
lnicola merged 2 commits intomasterfrom
ci/gen-lints
Apr 10, 2026
Merged

Update generated lints#21998
lnicola merged 2 commits intomasterfrom
ci/gen-lints

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions bot commented Apr 8, 2026

Weekly lint updates for crates/ide-db/src/generated/lints.rs.

Closes #21947

@github-actions github-actions bot added the A-infra CI and workflow issues label Apr 8, 2026
@lnicola
Copy link
Copy Markdown
Member

lnicola commented Apr 8, 2026

CC @dybucc

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 8, 2026
@dybucc
Copy link
Copy Markdown
Contributor

dybucc commented Apr 8, 2026

I guess it works based on the fact it has a similar diff to the one I submitted
in #21947? I'll close that PR now if this seems satisfactory.

@lnicola
Copy link
Copy Markdown
Member

lnicola commented Apr 8, 2026

I'm not at the computer right now, but we might need to adjust the CI workflow, because it didn't fire.

@dybucc
Copy link
Copy Markdown
Contributor

dybucc commented Apr 8, 2026

You mean automatically? I don't think it's meant to run outside the scheduled
Saturday night cron setting, unless a manual workflow run is triggered.

@lnicola
Copy link
Copy Markdown
Member

lnicola commented Apr 8, 2026

No, I mean the usual CI workflow: https://github.com/rust-lang/rust-analyzer/blob/master/.github/workflows/ci.yaml. We check for if: github.repository == 'rust-lang/rust-analyzer', but I don't know why that wouldn't work for this PR. It's stuck at conclusion, but the other jobs didn't run.

@ShoyuVanilla
Copy link
Copy Markdown
Member

I guess we should explicitly designate token as sth other than default GITHUB_TOKEN?
https://github.com/peter-evans/create-pull-request?tab=readme-ov-file#token

@lnicola
Copy link
Copy Markdown
Member

lnicola commented Apr 8, 2026

Would that help? The workflow filed the PR, so I don't think it's a permissions issue.

@ShoyuVanilla
Copy link
Copy Markdown
Member

ShoyuVanilla commented Apr 8, 2026

Yeah, AFAIK everything triggered with GITHUB_TOKEN cannot trigger CI

@ShoyuVanilla
Copy link
Copy Markdown
Member

To elaborate more,

  • Creating PRs/commits with GITHUB_TOKEN have no problem
  • But they can't trigger GH Actions

@lnicola
Copy link
Copy Markdown
Member

lnicola commented Apr 10, 2026

We've lost our Clippy lints.

@dybucc
Copy link
Copy Markdown
Contributor

dybucc commented Apr 10, 2026

Not really sure what you mean, beyond the fact that the
workflows-rust-analyzer bot seems to have taken over the PR, and that the
apparent fix in #22004 has been discarded, for some reason.

@lnicola
Copy link
Copy Markdown
Member

lnicola commented Apr 10, 2026

The URL at

"curl https://rust-lang.github.io/rust-clippy/stable/lints.json --output {lints_json}"
is now a 404, which causes at least one test (hover_clippy_lint) to fail, because it no longer finds the lint. I didn't check your branch, but the diff here has:

+pub const CLIPPY_LINTS: &[Lint] = &[];
+pub const CLIPPY_LINT_GROUPS: &[LintGroup] = &[];

cargo codegen doesn't complain because the code is not using curl -f.

@dybucc
Copy link
Copy Markdown
Contributor

dybucc commented Apr 10, 2026

Then I guess this PR is unrelated to this issue. Still, it seems like the
gh-pages branch in clippy's repo had the lints.json file removed from beta
on March 6th [1], so maybe it's been altogether removed and clippy lints have
to be fetched in some other way.

cmd!(
sh,
"curl https://rust-lang.github.io/rust-clippy/stable/lints.json --output {lints_json}"
"curl -f https://raw.githubusercontent.com/rust-lang/rust-clippy/21fd71e3fe6eb063cfb619ecc37b1023f5283894/beta/lints.json --output {lints_json}"
Copy link
Copy Markdown
Member

@lnicola lnicola Apr 10, 2026

Choose a reason for hiding this comment

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

View changes since the review

Changed this to take the last working version.

@lnicola lnicola added this pull request to the merge queue Apr 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Apr 10, 2026
@lnicola lnicola added this pull request to the merge queue Apr 10, 2026
Merged via the queue into master with commit 9eb97ea Apr 10, 2026
18 checks passed
@lnicola lnicola deleted the ci/gen-lints branch April 10, 2026 17:58
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 10, 2026
@ShoyuVanilla
Copy link
Copy Markdown
Member

Not really sure what you mean, beyond the fact that the workflows-rust-analyzer bot seems to have taken over the PR, and that the apparent fix in #22004 has been discarded, for some reason.

That PR was wrong and #22011 does the thing correctly 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-infra CI and workflow issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants