Commit graph

21927 commits

Author SHA1 Message Date
4f5a3e751a
test 2025-08-13 20:40:49 +02:00
Florian Klink
6b75eb0f2c docs(ops/machines/snix-cache): document hostName
Change-Id: Ic07983938174277a1bef765a4b14a3f22bd08c76
Reviewed-on: https://cl.snix.dev/c/snix/+/30679
Tested-by: besadii
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Autosubmit: Florian Klink <flokli@flokli.de>
2025-08-11 19:23:55 +00:00
Florian Klink
0beb9f6d5c refactor(ops/nixos): rename nixosSnixCacheSystem to snixCacheSystem
This is defined at the `ops.machines.snix-cache`, let's keep the naming
consistent and short.

Change-Id: Ifb6f0779ee098b7a5c65d3e3989cbf98323e16d0
Reviewed-on: https://cl.snix.dev/c/snix/+/30678
Autosubmit: Florian Klink <flokli@flokli.de>
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: besadii
2025-08-11 19:23:55 +00:00
Ilan Joselevich
189cb17e34 feat(snix/{castore,store}): Upgrade all redb file formats
In version 2.6.0 of redb a new file format was released. It will end up
being the only supported format in version 3.0.0. With this change we
prepare for v3 by migrating all databases to the new format.

Change-Id: I297a7d70e00e872d9354d1fc7acb277c83d76c71
Reviewed-on: https://cl.snix.dev/c/snix/+/30661
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-11 19:21:24 +00:00
Ilan Joselevich
bd4c4bb5f0 chore(snix): Upgrade redb to 2.6.2
In a follow-up CL I will update to use the new database file format.

Change-Id: I7b228546eed9194601de57ffb7d3b2c94c5c2803
Reviewed-on: https://cl.snix.dev/c/snix/+/30659
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-11 19:21:24 +00:00
Ilan Joselevich
974a705e6b feat(ops/nixos): Add nixosSnixCacheSystem CI target
Change-Id: Icaa5717fb9eafacebe0fce238f636e7ae40d9aa5
Reviewed-on: https://cl.snix.dev/c/snix/+/30667
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
2025-08-11 10:52:27 +00:00
Ilan Joselevich
b62838cc75 fix(ops/nixos): Include in CI
Machines created with third_party.nixos would not be added to the
buildkite pipeline because they are not derivations.

Closes: https://git.snix.dev/snix/snix/issues/80
Change-Id: I1e107b83e352244b229e498adc00df373742fb1a
Reviewed-on: https://cl.snix.dev/c/snix/+/30666
Reviewed-by: Florian Klink <flokli@flokli.de>
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: besadii
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
2025-08-11 10:52:08 +00:00
Ilan Joselevich
370c63fadb chore: Update .git-blame-ignore-revs
Adds the nixpkgs-fmt -> nixfmt commit

Change-Id: Ic3630fa5c274d5f333a2ceecde5a85b3ae809b92
Reviewed-on: https://cl.snix.dev/c/snix/+/30672
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
2025-08-11 10:51:28 +00:00
Florian Klink
c23d7b011e chore(3p/sources/nix-gerrit): bump nix-gerrit
The current bazel fetcher doesn't work if run on a machine without any
IPv4 addresses (v4 connectivity provided by 6to4 and NAT64).

Change-Id: I2418ef35efcf6629cbd3a4b0d988c1a3c4add8f0
Reviewed-on: https://cl.snix.dev/c/snix/+/30673
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
2025-08-10 23:21:45 +00:00
Oleksandr Knyshuk
bd6cfb1e33 docs(eval): update compile_if_else docstring for JumpIfCatchable opcode
Reflects control flow changes after cl/10288, documenting the new
JumpIfCatchable instruction and updated branching logic for catchable
defaults in conditional expressions.

Change-Id: I6a6a6964b84ae42e35ccb84851c7993619516d0b
Reviewed-on: https://cl.snix.dev/c/snix/+/30656
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
Reviewed-by: Oleksandr Knyshuk <olk@disr.it>
Autosubmit: Oleksandr Knyshuk <olk@disr.it>
2025-08-10 18:48:32 +00:00
rszyma
3475e61487 fix(snix/boot/tests): fix comment
Change-Id: I342e81b04445b6122e71b563964e452f6bad537a
Reviewed-on: https://cl.snix.dev/c/snix/+/30676
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-10 17:31:53 +00:00
rszyma
a27823acd5 fix(snix/boot/tests): fix otlp error
Fixes a non-critical error when running a boot test.
All boot tests worked before too, so it was nothing more than a noise,
though I think worth addressing anyway.

> mg build //snix/boot/tests:docs-persistent

2025-08-10T11:59:31.068658Z ERROR opentelemetry_sdk:  name="BatchSpanProcessor.ExportError" error="Operation failed: status: Unavailable, message: \"tcp connect error: Connection refused (os error 111)\", details: [], metadata: MetadataMap { headers: {} }"
failed to shutdown tracing: Operation failed: errs: [Err(InternalFailure("Operation failed: status: Unavailable, message: \"tcp connect error: Connection refused (os error 111)\", details: [], metadata: MetadataMap { headers: {} }"))]

Change-Id: I2722f814f7cfea42e50efe71106e6809ea66ef81
Reviewed-on: https://cl.snix.dev/c/snix/+/30675
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-10 17:31:53 +00:00
rszyma
449446a5a7 fix(snix/boot/tests): add name attr to mkBootTest
Previously when running all boot integration tests with
`mg build //snix/boot:tests`, and one of them failing, it was not clear
which one failed, because on failed test derivation name shown used the
same suffix for all tests. Now, for a cost of a bit more boilerplate,
test derivation name contains its name, so it's immediately obvious.

Change-Id: If8766e12048a50f21d61c615239ee62b3361ac2f
Reviewed-on: https://cl.snix.dev/c/snix/+/30674
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-08-10 17:31:53 +00:00
Ilan Joselevich
91d02d8c84 style: Switch to nixfmt from nixpkgs-fmt
Most of the ecosystem has moved to this formatter,
and many people configured their editors to autoformat it with this formatter.

Closes: https://git.snix.dev/snix/snix/issues/62
Change-Id: Icf39e7836c91fc2ae49fbe22a40a639105bfb0bd
Reviewed-on: https://cl.snix.dev/c/snix/+/30671
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
2025-08-10 13:40:23 +00:00
Ilan Joselevich
3443e6bd08 chore(snix/verify-lang-tests): Update to latest nix version
Change-Id: Id19e08929b437662d1055d7e53a4617c1607e472
Reviewed-on: https://cl.snix.dev/c/snix/+/30670
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-08-10 12:37:22 +00:00
Mai
ab55d7d893 fix(snix/tracing): Remove direct dependency on indicatif
Change-Id: I59ff99fce2351cdcf329e6d4c8333be45c7efff3
Reviewed-on: https://cl.snix.dev/c/snix/+/30669
Tested-by: besadii
Autosubmit: Mai <interacsion@protonmail.com>
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-09 21:56:50 +00:00
Ilan Joselevich
39138fef7b chore(third_party/sources): Update nix-gerrit
This fixes a build failure.

Change-Id: Icb18edf69f995fb8791e626057feddd3c397b884
Reviewed-on: https://cl.snix.dev/c/snix/+/30668
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-08-09 20:01:38 +00:00
Ilan Joselevich
1a6af7fd25 fix(ops/machines/snix-cache): fix eval by updating srvos
SrvOS was oudated and still using ther zstd nginx settings which are no
longer recommended to use. This made eval fail with an assertion.

Change-Id: If5edf99247e0500f6d23325a4f2dd34cb31d8252
Reviewed-on: https://cl.snix.dev/c/snix/+/30664
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-07 16:01:31 +00:00
Brian Olsen
5421c364ce chore(nix-compat): Remove old TODO comment
See https://cl.snix.dev/c/snix/+/30652/comment/1e485186_124672c2/

Change-Id: I95c1eded63bd2ae0b59c3a8eb6b90bb904bf3cf1
Reviewed-on: https://cl.snix.dev/c/snix/+/30653
Reviewed-by: Florian Klink <flokli@flokli.de>
Autosubmit: Brian Olsen <brian@maven-group.org>
Tested-by: besadii
2025-08-05 22:43:26 +00:00
Brian Olsen
e5177ae930 feat(nix-compat): Use serde_with for HashAlgo serialization
We already have serde_with in the workspace and using it cuts down
on code lines (very slightly).

This also adds a FromStr implementation for HashAlgo in addition to
the existing TryFrom<&str>.

Change-Id: I1b525d7391f3881d54cef0c74d22198ad394f47d
Reviewed-on: https://cl.snix.dev/c/snix/+/30652
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
Autosubmit: Brian Olsen <brian@maven-group.org>
2025-08-05 22:23:54 +00:00
Brian Olsen
6187029077 feat(nix-compat): Add serde feature flag
This makes serde features optional behind a flag that is not enabled
by default. So Deserialize and Serialize implementations and anything
that deals with JSON.

Change-Id: I04830aa3883da13ea99a4a51b28981e8a5ecd426
Reviewed-on: https://cl.snix.dev/c/snix/+/30660
Autosubmit: Brian Olsen <brian@maven-group.org>
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-08-05 22:04:21 +00:00
Mai
2a29b90c7f feat(snix/castore): Add daemon subcommand
Change-Id: I315c473385d40999f69084d525e36d8eda82d15c
Reviewed-on: https://cl.snix.dev/c/snix/+/30654
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-08-05 21:42:56 +00:00
Oleksandr Knyshuk
0ff37a7217 feat(builtins/placeholder): enforce derivation output‐name rules
- factor out output‐name checks into `nix_compat::derivation::validate_output_name`
- re-export `validate_output_name` in `nix-compat/src/derivation/mod.rs`
- import and invoke `validate_output_name` in `builtins.placeholder`
- add Nix tests to cover empty, reserved “drv”, invalid chars, and valid names

Closes #38.

Change-Id: I6a6a6964a720fee8110606b11cb3a30f0d8b23f8
Reviewed-on: https://cl.snix.dev/c/snix/+/30655
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
Autosubmit: Oleksandr Knyshuk <olk@disr.it>
2025-08-05 17:08:04 +00:00
Brian Olsen
a1cfdeb0ef fix(nix-compat-derive-tests): Get rid of compile-tests flag
Because we are now using mkCargoBuild to build this crate in CI we can
get rid of the compile-tests flag and always run the compile tests.
This is because the trybuild crate works when using the the same build
method we used for rustdoc an clippy.

Change-Id: I3f168a987a09bf6f3e3e7c1ab3aaa1acd9d010cf
Reviewed-on: https://cl.snix.dev/c/snix/+/30651
Reviewed-by: Florian Klink <flokli@flokli.de>
Autosubmit: Brian Olsen <brian@maven-group.org>
Tested-by: besadii
2025-08-04 22:33:38 +00:00
Brian Olsen
9743771f1a chore: Use mkCargoBuild for nix-compat-derive-tests
When using mkCargoBuild we can in a later CL enable the compile tests
and get rid of the feature flag in the nix-compat-derive-tests crate.

Change-Id: Ieeb991b65beb6bf19a01d62a935b6ffaf3d405d8
Reviewed-on: https://cl.snix.dev/c/snix/+/30650
Autosubmit: Brian Olsen <brian@maven-group.org>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-04 22:33:38 +00:00
Brian Olsen
4a70e43022 fix(build): Add small doc struct to make rustdocs work on MacOS
This just adds a dummy struct of OCIBuildService to make rustdoc build
work on non-linux targets.

Change-Id: Iea958d9ed7ac0720ffe199c5c201e7a2edbba3ed
Reviewed-on: https://cl.snix.dev/c/snix/+/30649
Autosubmit: Brian Olsen <brian@maven-group.org>
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-08-04 22:33:38 +00:00
Brian Olsen
d7808ea630 chore: Add target for doc tests
This just adds a nix attribute for running rustdoc tests.

Change-Id: I3bf2699ef03c6b7cafc0b76b32660b142cbd972c
Reviewed-on: https://cl.snix.dev/c/snix/+/30648
Tested-by: besadii
Autosubmit: Brian Olsen <brian@maven-group.org>
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-04 22:28:07 +00:00
Brian Olsen
a82bd9137e chore: Refactor common cargo build derivations into own function
This creates a mkCargoBuild function of the shared bits from clippy and
rust-docs uses it for those targets.

Change-Id: I44f9f2b319ea4ef1d1236feabdf726f0256d5d70
Reviewed-on: https://cl.snix.dev/c/snix/+/30647
Reviewed-by: Florian Klink <flokli@flokli.de>
Autosubmit: Brian Olsen <brian@maven-group.org>
Tested-by: besadii
2025-08-04 22:28:07 +00:00
Mai
8e609804b9 fix(snix/castore,snix/store): Create parent directory when creating redb services
Change-Id: I0b3083cbbb865d4b724d2b30305c10f2a779bce4
Reviewed-on: https://cl.snix.dev/c/snix/+/30646
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-04 22:11:30 +00:00
Mai
05a9715a20 refactor(snix/castore): Use ServiceUrls in snix-castore command parsing
Change-Id: Ia7a6b5de215e8bd9b9f6987ae7b22b2f485bd61a
Reviewed-on: https://cl.snix.dev/c/snix/+/30644
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-08-04 22:03:39 +00:00
Mai
d14693ca80 feat(snix/castore): Change default blob and directory service locations to /var/lib/snix-castore
Change-Id: Id9d06c72a61bb51f2f960b0f76ff7e7b6965033f
Reviewed-on: https://cl.snix.dev/c/snix/+/30643
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-04 22:03:39 +00:00
Oleksandr Knyshuk
2b03762a05 fix(ops/forgejo): update forgejo to 12.0.1, re-vendor gerrit patches, and fix emoji links
- Update Forgejo from 11.0.1 to 12.0.1, match upstream (see #80, cl 30121).
- Re-vendor and refresh Gerrit integration patches from lix to restore compatibility (patches broke @ cl 30628).
- Update dead emoji asset links to new locations, borrowed from lix infra (old URLs 404'd).
- Fixes build failure for ops.nixos.public01System (#169).

Context:
- Forgejo build broke after nixpkgs channel bump (cl 30628) due to outdated patches (#169).
- Emoji assets previously fetched from volpeon.ink are now archived or moved; new URLs and hashes are from lix infra.
- Gerrit patches are yoinked from lix again to restore code review tab and Gerrit CL linking (thanks emilylange).

Closes: #169
Refs: #80

Change-Id: I6a6a696423a6360b4056892e171df2baf6fa7206
Reviewed-on: https://cl.snix.dev/c/snix/+/30645
Tested-by: besadii
Autosubmit: Oleksandr Knyshuk <olk@disr.it>
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-04 21:04:59 +00:00
Axel Karjalainen
4aa1137d8e refactor(snix/eval,snix/glue): add snix_eval::try_cek! macros
Fixes #146

Change-Id: I971fac0d9d18e4ea73a527e499ac7ac213658477
Reviewed-on: https://cl.snix.dev/c/snix/+/30638
Reviewed-by: Florian Klink <flokli@flokli.de>
Autosubmit: Axel Karjalainen <axel@axka.fi>
Tested-by: besadii
2025-08-04 15:34:31 +00:00
Oleksandr Knyshuk
8d0ae4f7ae feat(ops/gerrit-webhook-to-irccat): notify when CLs are undrafted
- Extend the notification template to handle `wip-state-changed` events where a change is undrafted (i.e., `.Change.Wip` is false or not present).
- Add test cases for undrafting (should notify) and re-drafting (should not notify).
- Ensure correct handling of `.Changer.Username` for undraft notifications.
- Update Go module dependencies for test coverage. (`go mod tidy`)

This allows the IRC bot to notify when a change is moved out of
WIP/draft state, improving visibility for ready-for-review CLs.

Fixes #167.

Change-Id: I6a6a69642369726c3bd9f523ae025c34dba8c4aa
Reviewed-on: https://cl.snix.dev/c/snix/+/30641
Reviewed-by: Oleksandr Knyshuk <olk@disr.it>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-04 12:50:22 +00:00
Starnick4444
2a1cd31d52 chore: finish migration to 2024 edition
Closes #114
Removes the per-crate rustfmt configs, sets default edition to 2024.
This should fix the formatting issues between some editors and CI.

Change-Id: I9bb3a5f49f8ba2c8a616f29e87b7f8093187a165
Reviewed-on: https://cl.snix.dev/c/snix/+/30595
Autosubmit: Bence Nemes <nemes.bence1@gmail.com>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-03 20:10:05 +00:00
Oleksandr Knyshuk
bfdef33483 chore(turbofetch): update zstd dependency to 0.13
Update the zstd crate from version 0.9.0 to 0.13.0, removing the TODO
comment blocking the upgrade. The dependency update also includes
related bumps to zstd-safe and zstd-sys crates, along with the
addition of pkg-config as a new transitive dependency.

Change-Id: I6a6a696459075f5ee56f448e87286b6ec39b26d3
Reviewed-on: https://cl.snix.dev/c/snix/+/30640
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-03 14:28:40 +00:00
Starnick4444
40ab29c05a chore(eval): upgrade to 2024 edition
Part of #114
There were a lot of warnings about drop order change. They are triggered
by NixString's custom drop, but the drop doesn't have side effects so
they can be ignored.

Change-Id: I19071de0fd39b8f0d19abc917d1d89d1cf26de40
Reviewed-on: https://cl.snix.dev/c/snix/+/30592
Reviewed-by: Florian Klink <flokli@flokli.de>
Autosubmit: Bence Nemes <nemes.bence1@gmail.com>
Reviewed-by: Domen Kožar <domen@cachix.org>
Tested-by: besadii
2025-08-03 14:19:04 +00:00
Starnick4444
beca8c8a4c refactor(eval): add get_env to Io trait
Abstracts enviornment access to the IO trait.
It also replaces the unsafe set_var in the test harness.

Change-Id: I3908f2d3cc4392ad2f5bc843c4de63382b692dfd
Reviewed-on: https://cl.snix.dev/c/snix/+/30639
Autosubmit: Bence Nemes <nemes.bence1@gmail.com>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-08-03 09:49:10 +00:00
Axel Karjalainen
a1b1348979 fix(web/building): mg link
Change-Id: I22ca3d3960d23d5dfc1e20140c28de79896926aa
Reviewed-on: https://cl.snix.dev/c/snix/+/30636
Tested-by: besadii
Autosubmit: Axel Karjalainen <axel@axka.fi>
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-07-31 21:57:59 +00:00
Florian Klink
fb6d9f5114 chore(3p/nixpkgs): bump channels (2025-07-31)
Change-Id: I1ae84e743281125ecbdc98cdb4f2adf5a96905a7
Reviewed-on: https://cl.snix.dev/c/snix/+/30628
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
Autosubmit: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-07-31 15:56:27 +00:00
Florian Klink
b0edb870ee chore(3p/agenix): bump
This was still using substituteAll, which got removed in the following
nixpkgs bump.

Change-Id: Ia07e2fce8a405973234f2c0d247579f68679446c
Reviewed-on: https://cl.snix.dev/c/snix/+/30629
Autosubmit: Florian Klink <flokli@flokli.de>
Tested-by: besadii
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
2025-07-31 15:44:56 +00:00
Florian Klink
87411772d7 fix(snix/castore): allow result_large_err for redb create_schema
Passing around boxed errors here would be way more annoying, and we call
this once during database initialization.

Change-Id: I04e65dcc6fbdec591ef553bac9825f51a7d47991
Reviewed-on: https://cl.snix.dev/c/snix/+/30633
Autosubmit: Florian Klink <flokli@flokli.de>
Tested-by: besadii
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
2025-07-31 15:44:56 +00:00
Florian Klink
c32a23bf63 fix(snix/tracing): fix clippy::result_large_err lint
We still need to unbox before calling ::with_interceptor, the proper fix
will be in https://github.com/hyperium/tonic/issues/2253.

Change-Id: I6de13de79e8ffd9d2f75268b7b232c2f6c91202d
Reviewed-on: https://cl.snix.dev/c/snix/+/30632
Tested-by: besadii
Autosubmit: Florian Klink <flokli@flokli.de>
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
2025-07-31 15:33:25 +00:00
Florian Klink
74264569ee fix(snix/[ca]store): restore client trace propagation
This broke in cl/11976 and cl/11983, the ::with_interceptor() calls
went missing.

Change-Id: Ic78a88d6c102d79da58fe45d5e595d3879c12af7
Reviewed-on: https://cl.snix.dev/c/snix/+/30631
Tested-by: besadii
Autosubmit: Florian Klink <flokli@flokli.de>
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
2025-07-31 15:13:22 +00:00
Florian Klink
a9d5c184d5 refactor(snix): address upcoming clippy lints
This uses variables inside `format!()` strings directly,
and switches to using `std::io::Error::other(e.to_string())`
instead of std::io::Error::new(io::ErrorKind::Other, e.to_string()).

It also found an unnecessary `mut` in the test harness.

Change-Id: I406c709091e87ec64bfbdbcdc7f460af9b83d3bc
Reviewed-on: https://cl.snix.dev/c/snix/+/30630
Autosubmit: Florian Klink <flokli@flokli.de>
Tested-by: besadii
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
2025-07-31 15:01:21 +00:00
Axel Karjalainen
632bc09350 fix(web/about): add missing "reach out" link
Change-Id: I1a7a0ee88a30379b9c4b18ff0a304d5deb3b1648
Reviewed-on: https://cl.snix.dev/c/snix/+/30627
Autosubmit: Axel Karjalainen <axel@axka.fi>
Tested-by: besadii
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-07-31 09:12:47 +00:00
Florian Klink
a2ace425cb feat(ops/machines/*01): install kitty terminfo
Change-Id: If9e2ca897e52ae9aa4da033b52dee6f17e66f636
Reviewed-on: https://cl.snix.dev/c/snix/+/30623
Autosubmit: Florian Klink <flokli@flokli.de>
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
Tested-by: besadii
2025-07-29 11:47:25 +00:00
Florian Klink
723ef9146b fix(ops/gerrit-webhook-to-irccat): fix json parsing
patchset and change numbers are numbers in the JSON, trying to deserialize them into a string fails:

Jul 28 20:34:03 gerrit01 gerrit-webhook-to-irccat[2430441]: time=2025-07-28T20:34:03.675Z level=WARN msg="failed to parse body" error="json: cannot unmarshal number into Go struct field PatchSet.patchSet.number of type string"

Update our library dependency to a version containing the fixed types.

Also add tests for the three messages we care about.

Change-Id: Iac44e6ad01a8590b4cafa4d301c9f45000f335d0
Reviewed-on: https://cl.snix.dev/c/snix/+/30624
Tested-by: besadii
Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz>
Reviewed-by: Jade Lovelace <jade@lix.systems>
Autosubmit: Florian Klink <flokli@flokli.de>
Reviewed-by: Florian Klink <flokli@flokli.de>
2025-07-29 11:47:24 +00:00
Florian Klink
a1aa231b3f refactor(snix/clippy): stop allowing blocks_in_conditions
This was a workaround, the workaround is not needed anymore.

Change-Id: I4a839f3733ec6cb0a26ba87dadafe304ff5ccfbe
Reviewed-on: https://cl.snix.dev/c/snix/+/30603
Autosubmit: Florian Klink <flokli@flokli.de>
Reviewed-by: Yureka <snix@yuka.dev>
Tested-by: besadii
2025-07-29 10:19:46 +00:00
Florian Klink
90eabc9ae0 chore(snix): format TOML files
Change-Id: I4c5bf0a378c69a2a22097000583b1abcee089190
Reviewed-on: https://cl.snix.dev/c/snix/+/30602
Tested-by: besadii
Autosubmit: Florian Klink <flokli@flokli.de>
Reviewed-by: Yureka <snix@yuka.dev>
2025-07-29 10:18:46 +00:00