fix(ci): install pre-commit via apt #1786

Merged
aahlenst merged 2 commits from clouds666/runner:fix-pre-commit-job into main 2026-10-31 09:23:38 +00:00
Member

I noticed that the CI job checking pre-commit has some trouble installing the pre-commit command (https://code.forgejo.org/forgejo/runner/actions/runs/24035/jobs/7/attempt/1).

Checklist

Compliance

  • bug fixes
    • PR: fix(ci): install pre-commit via apt
I noticed that the CI job checking pre-commit has some trouble installing the pre-commit command (https://code.forgejo.org/forgejo/runner/actions/runs/24035/jobs/7/attempt/1). ## Checklist ### Compliance - [x] I confirm that I make this contribution in accordance with [Forgejo's AI Agreement](https://codeberg.org/forgejo/governance/src/commit/9084720dc6a7fbf1d3f358919d46bd6adfb55287/AIAgreement.md). <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/1786): <!--number 1786 --><!--line 0 --><!--description Zml4KGNpKTogaW5zdGFsbCBwcmUtY29tbWl0IHZpYSBhcHQ=-->fix(ci): install pre-commit via apt<!--description--> <!--end release-notes-assistant-->
install pre-commit via apt
Some checks failed
pr-checklist / warn-user (pull_request_target) Has been skipped
checks / validate pre-commit-hooks file (pull_request) Successful in 41s
checks / Build Forgejo Runner (pull_request) Successful in 51s
checks / validate mocks (pull_request) Successful in 52s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 32s
checks / Build unsupported platforms (pull_request) Successful in 1m20s
issue-labels / release-notes (pull_request_target) Successful in 5s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 10m5s
checks / Run integration tests with Docker (docker-stable) (pull_request) Has been cancelled
checks / Run integration tests with Podman (pull_request) Has been cancelled
7f63189e2f
Author
Member
The installation was successful in the CI: https://code.forgejo.org/forgejo/runner/actions/runs/24040/jobs/7/attempt/1
clouds666 changed title from WIP: fix(ci): install pre-commit via apt to fix(ci): install pre-commit via apt 2026-10-30 11:37:08 +00:00
aahlenst left a comment

Thanks for noticing 👍

Thanks for noticing 👍
@ -368,3 +368,2 @@
apt-get update -qq
apt-get install -y -qq python3-pip
python3 -m pip install 'pre-commit>=3.2.0'
apt-get install -y -qq pre-commit
Member

Would you mind replacing both -qq with -q (only one q)?

See the note about -qq in https://manpages.debian.org/trixie/apt/apt-get.8.en.html.

Would you mind replacing both `-qq` with `-q` (only one q)? See the note about `-qq` in https://manpages.debian.org/trixie/apt/apt-get.8.en.html.
Author
Member

sure!

sure!
replace -qq with -q
Some checks failed
cascade / debug (pull_request_target) Has been skipped
test-multi-platform / Build Forgejo Runner (pull_request) Has been skipped
test-multi-platform / Build unsupported platforms (pull_request) Has been skipped
test-multi-platform / Run exec tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-latest) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Docker (docker-stable) (pull_request) Has been skipped
test-multi-platform / Run integration tests with Podman (pull_request) Has been skipped
test-multi-platform / validate mocks (pull_request) Has been skipped
test-multi-platform / validate pre-commit-hooks file (pull_request) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 8s
checks / validate mocks (pull_request) Successful in 33s
checks / validate pre-commit-hooks file (pull_request) Successful in 37s
checks / Build Forgejo Runner (pull_request) Successful in 46s
checks / Build unsupported platforms (pull_request) Successful in 38s
checks / Run exec tests with Docker (docker-latest) (pull_request) Successful in 47s
checks / Run integration tests with Docker (docker-latest) (pull_request) Successful in 12m33s
checks / Run integration tests with Podman (pull_request) Successful in 13m22s
checks / Run integration tests with Docker (docker-stable) (pull_request) Successful in 15m5s
test-multi-platform / arm64 (pull_request) Has been skipped
cascade / end-to-end (pull_request_target) Failing after 16s
cascade / forgejo (pull_request_target) Failing after 33s
985351a9c6
aahlenst approved these changes 2026-10-30 14:11:36 +00:00
aahlenst left a comment

Thanks, @clouds666!

Thanks, @clouds666!
viceice approved these changes 2026-10-31 08:02:49 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
3 participants
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
forgejo/runner!1786
No description provided.