feat(ci): Add a workflow to update flake hashes #947

Merged
nex merged 2 commits from Shuroii/continuwuity:flake-updater into main 2025-09-17 22:13:46 +00:00
Contributor

This workflow is intended to be ran as dispatch whenever the rocksdb fork changes!
Other than that, it'll run on any toolchain changes (rust-toolchain.toml, Cargo.lock, Cargo.toml) and update the relevant hash accordingly.

This workflow is intended to be ran as dispatch whenever the rocksdb fork changes! Other than that, it'll run on any toolchain changes (rust-toolchain.toml, Cargo.lock, Cargo.toml) and update the relevant hash accordingly.
Author
Contributor

This is built to work on #945 so maybe wait on that to get merged before merging this. It won't actually break without that getting merged, but it will run a nix build without first ensuring it won't actually build continuwuity, which might not be desirable.

This is built to work on https://forgejo.ellis.link/continuwuation/continuwuity/pulls/945 so maybe wait on that to get merged before merging this. It won't actually *break* without that getting merged, but it will run a `nix build` without first ensuring it won't actually build continuwuity, which might not be desirable.
Author
Contributor

Oh, one more thing; if this is ran as a dispatch on main, it'll fail to commit. Only run this on branches that have an open pull request! I can make it make a PR like renovate, where it'll edit an existing one if it finds one, but that means making this workflow at least twice the size, as well as giving it an auth token.

Oh, one more thing; if this is ran as a dispatch on main, it'll fail to commit. Only run this on branches that have an open pull request! I can make it make a PR like renovate, where it'll edit an existing one if it finds one, but that means making this workflow at least twice the size, as well as giving it an auth token.
Shuroii requested review from Jade 2025-08-28 17:29:57 +00:00
Jade force-pushed flake-updater from fd01c49099
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 16s
to 6c69c3e51b
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
2025-08-31 11:34:04 +00:00
Compare
Shuroii force-pushed flake-updater from 6c69c3e51b
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
to 3216817273
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Update flake hashes / update-flake-hashes (pull_request) Failing after 0s
2025-09-02 13:21:22 +00:00
Compare
Shuroii force-pushed flake-updater from a743c4fd3c
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Update flake hashes / update-flake-hashes (pull_request) Failing after 0s
to 10630214d8
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
2025-09-02 13:30:26 +00:00
Compare
Author
Contributor

@tcpipuk do you happen to know the version of the runner? For some reason it's not recognizing the forgejo environment namespace and I got some weird errors regarding it not recognizing something as simple as

- name: Show diff
  run: git diff flake.nix

where it errors at run:.
My workflow doesn't appear to pass schema validation here despite it doing so on my runner (v9.1.1).

@tcpipuk do you happen to know the version of the runner? For some reason it's not recognizing the `forgejo` environment namespace and I got some weird errors regarding it not recognizing something as simple as ```YAML - name: Show diff run: git diff flake.nix ``` where it errors at `run:`. My workflow doesn't appear to pass schema validation here despite it doing so on my runner (v9.1.1).
Shuroii changed title from WIP: feat(ci): Add a workflow to update flake hashes to feat(ci): Add a workflow to update flake hashes 2025-09-06 18:24:57 +00:00
Shuroii force-pushed flake-updater from 10630214d8
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
to 0396aa2cdb
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 6s
Checks / Prek / Pre-commit & Formatting (pull_request) Failing after 19s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 41s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 1m24s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 1m19s
Release Docker Image / merge (pull_request) Has been skipped
2025-09-06 20:12:15 +00:00
Compare
tcpipuk force-pushed flake-updater from 0396aa2cdb
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 6s
Checks / Prek / Pre-commit & Formatting (pull_request) Failing after 19s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 41s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 1m24s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 1m19s
Release Docker Image / merge (pull_request) Has been skipped
to 4454cec4aa
Some checks failed
Release Docker Image / define-variables (pull_request) Successful in 10s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 1m46s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 1m45s
Release Docker Image / merge (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m0s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 12m10s
2025-09-07 09:37:54 +00:00
Compare
Owner

Sorry, the CI checks should be more reliable now we're not relying on GitHub!

The runner version is v9.1.1 (you can see it at the top of every Actions run in the "Set up job" step)

Sorry, the CI checks should be more reliable now we're not relying on GitHub! The runner version is v9.1.1 (you can see it at the top of every Actions run in the "Set up job" step)
tcpipuk force-pushed flake-updater from 4454cec4aa
Some checks failed
Release Docker Image / define-variables (pull_request) Successful in 10s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 1m46s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 1m45s
Release Docker Image / merge (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m0s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 12m10s
to 4a57b3fe4c
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 14s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 36s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 2m12s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 2m17s
Release Docker Image / merge (pull_request) Has been skipped
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 4m17s
2025-09-07 15:40:02 +00:00
Compare
Owner

Ah, the reason the build is failing is that you don't have access to the secret. I assume there has been a recent change in Forgejo permissions because we weren't having these issues before!

I've created #989 which I think should resolve this, just waiting for checks to pass (it won't 100% confirm whether it'll work for you, but I can at least ensure it won't break main branch before letting it loose!)

Ah, the reason the build is failing is that you don't have access to the secret. I assume there has been a recent change in Forgejo permissions because we weren't having these issues before! I've created #989 which I think should resolve this, just waiting for checks to pass (it won't 100% confirm whether it'll work for you, but I can at least ensure it won't break main branch before letting it loose!)
tcpipuk force-pushed flake-updater from 4a57b3fe4c
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 14s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 36s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 2m12s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 2m17s
Release Docker Image / merge (pull_request) Has been skipped
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 4m17s
to b5fae111a4
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 9s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m8s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 2m7s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 1m30s
Release Docker Image / merge (pull_request) Has been skipped
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 5m24s
2025-09-07 17:18:17 +00:00
Compare
tcpipuk force-pushed flake-updater from b5fae111a4
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 9s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m8s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 2m7s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 1m30s
Release Docker Image / merge (pull_request) Has been skipped
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 5m24s
to c01c941bda
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 7s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 37s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 5m16s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 9m33s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 9m38s
Release Docker Image / merge (pull_request) Has been skipped
2025-09-07 17:49:53 +00:00
Compare
Owner

Alright, nearly there... I think #992 solves the one remaining issue with building a Docker image without logging into a Docker registry 😅

Alright, nearly there... I think #992 solves the one remaining issue with building a Docker image without logging into a Docker registry 😅
tcpipuk force-pushed flake-updater from c01c941bda
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 7s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 37s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 5m16s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 9m33s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 9m38s
Release Docker Image / merge (pull_request) Has been skipped
to 62c8cf5825
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 57s
Release Docker Image / define-variables (pull_request) Successful in 2s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 4m40s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 5m37s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 5m24s
Release Docker Image / merge (pull_request) Has been skipped
2025-09-07 19:56:16 +00:00
Compare
tcpipuk force-pushed flake-updater from 62c8cf5825
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 57s
Release Docker Image / define-variables (pull_request) Successful in 2s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 4m40s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 5m37s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 5m24s
Release Docker Image / merge (pull_request) Has been skipped
to ce68de93f7
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 7s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 39s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 4m29s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Successful in 6m2s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Successful in 5m56s
Release Docker Image / merge (pull_request) Successful in 2s
2025-09-07 20:40:31 +00:00
Compare
Owner

There we go! Completed artifacts on the CI run 👌

There we go! Completed artifacts on the CI run 👌
Owner

To test this, rebase #946 on top of it I think (or the other way around)

To test this, rebase https://forgejo.ellis.link/continuwuation/continuwuity/pulls/946 on top of it I think (or the other way around)
Shuroii force-pushed flake-updater from ce68de93f7
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 7s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 39s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 4m29s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Successful in 6m2s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Successful in 5m56s
Release Docker Image / merge (pull_request) Successful in 2s
to f57c660ad6
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 2s
Update flake hashes / update-flake-hashes (pull_request) Failing after 0s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m19s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 1m52s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 1m23s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 26s
Release Docker Image / merge (pull_request) Has been skipped
2025-09-11 12:38:32 +00:00
Compare
Contributor

Got to rebase this again :3

Got to rebase this again :3
nex force-pushed flake-updater from f57c660ad6
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Release Docker Image / define-variables (pull_request) Successful in 2s
Update flake hashes / update-flake-hashes (pull_request) Failing after 0s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m19s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 1m52s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 1m23s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 26s
Release Docker Image / merge (pull_request) Has been skipped
to cf47986507
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 58s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 5m35s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 5m57s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 7m33s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 5s
Release Docker Image / Create Max-Perf Manifest (pull_request) Has been cancelled
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Has been cancelled
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Has been cancelled
2025-09-17 20:50:53 +00:00
Compare
nex self-assigned this 2025-09-17 21:01:49 +00:00
nex force-pushed flake-updater from cf47986507
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 58s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 5m35s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 5m57s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 7m33s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 5s
Release Docker Image / Create Max-Perf Manifest (pull_request) Has been cancelled
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Has been cancelled
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Has been cancelled
to 9142978a15
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 44s
Release Docker Image / Build linux-amd64 (release) (pull_request) Successful in 6m27s
Release Docker Image / Build linux-arm64 (release) (pull_request) Successful in 6m31s
Release Docker Image / Create Multi-arch Release Manifest (pull_request) Successful in 4s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m14s
Release Docker Image / Build linux-arm64 (max-perf) (pull_request) Successful in 12m16s
Release Docker Image / Build linux-amd64 (max-perf) (pull_request) Successful in 12m21s
Release Docker Image / Create Max-Perf Manifest (pull_request) Successful in 4s
Documentation / Build and Deploy Documentation (push) Successful in 23s
Checks / Prek / Pre-commit & Formatting (push) Successful in 46s
Release Docker Image / Build linux-amd64 (release) (push) Successful in 7m3s
Release Docker Image / Build linux-arm64 (release) (push) Has been cancelled
Checks / Prek / Clippy and Cargo Tests (push) Has been cancelled
Release Docker Image / Create Multi-arch Release Manifest (push) Has been cancelled
Release Docker Image / Build linux-amd64 (max-perf) (push) Has been cancelled
Release Docker Image / Build linux-arm64 (max-perf) (push) Has been cancelled
Release Docker Image / Create Max-Perf Manifest (push) Has been cancelled
2025-09-17 21:37:52 +00:00
Compare
nex approved these changes 2025-09-17 22:13:41 +00:00
nex merged commit 9142978a15 into main 2025-09-17 22:13:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 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
continuwuation/continuwuity!947
No description provided.