ci.yml: Update checkout action to v7, don't check out all history #321

Manually merged
kparal merged 1 commit from change/optimize_checkout into develop 2026-08-06 10:47:33 +00:00
Owner

We only need the last commit to run the tests.

Related: quality/tickets#928

We only need the last commit to run the tests. Related: https://forge.fedoraproject.org/quality/tickets/issues/928
kparal self-assigned this 2026-08-05 07:31:06 +00:00
ci.yml: Update checkout action to v7, don't check out all history
Some checks failed
Run tests and linters / test (pull_request) Failing after 2m28s
85a176b768
We only need the last commit to run the tests.

Related: quality/tickets#928
kparal requested review from jgroman 2026-08-05 07:31:11 +00:00
Author
Owner

Hmm, I have exactly the same ruff locally in my venv:

Collecting ruff
  Downloading ruff-0.16.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.5 MB)

and ruff check passes. But in the CI test it fails.

Hmm, I have exactly the same ruff locally in my venv: ``` Collecting ruff Downloading ruff-0.16.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.5 MB) ``` and `ruff check` passes. But in the [CI test](https://forge.fedoraproject.org/quality/blockerbugs/actions/runs/112/jobs/0/attempt/1) it fails.
test reverting ci.yml
Some checks failed
Run tests and linters / test (pull_request) Failing after 2m26s
6ddeca1a7b
kparal changed title from ci.yml: Update checkout action to v7, don't check out all history to WIP: ci.yml: Update checkout action to v7, don't check out all history 2026-08-05 08:15:02 +00:00
Author
Owner

Well, the problem is clearly not caused by this PR.

Well, the problem is clearly not caused by this PR.
Author
Owner

Sigh, this is the reason:

Ruff now enables 413 rules by default, up from 59 in previous versions.
https://astral.sh/blog/ruff-v0.16.0#migrating-to-v016

I wasn't using the latest version correctly. Now I can reproduce the issue.

Found 369 errors.

I'm not amused.

Sigh, this is the reason: > Ruff now enables 413 rules by default, up from 59 in previous versions. https://astral.sh/blog/ruff-v0.16.0#migrating-to-v016 I wasn't using the latest version correctly. Now I can reproduce the issue. > Found 369 errors. I'm not amused.
Author
Owner

Filed #322 to deal with ruff. I'll revert this PR to its original state. I believe it can be accepted even before #322 is sorted out.

Filed #322 to deal with ruff. I'll revert this PR to its original state. I believe it can be accepted even before #322 is sorted out.
kparal force-pushed change/optimize_checkout from 6ddeca1a7b
Some checks failed
Run tests and linters / test (pull_request) Failing after 2m26s
to 85a176b768
Some checks failed
Run tests and linters / test (pull_request) Failing after 2m28s
2026-08-05 08:40:04 +00:00
Compare
kparal changed title from WIP: ci.yml: Update checkout action to v7, don't check out all history to ci.yml: Update checkout action to v7, don't check out all history 2026-08-05 08:58:46 +00:00
kparal force-pushed change/optimize_checkout from 85a176b768
Some checks failed
Run tests and linters / test (pull_request) Failing after 2m28s
to 8083446687
All checks were successful
Run tests and linters / test (pull_request) Successful in 2m28s
2026-08-05 12:37:34 +00:00
Compare
kparal manually merged commit 8083446687 into develop 2026-08-06 10:47:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quality/blockerbugs!321
No description provided.