1
0
Fork 0
mirror of https://github.com/NixOS/ofborg synced 2024-10-18 14:56:36 -04:00
Commit graph

1438 commits

Author SHA1 Message Date
Cole Helbling eb120ff74c build: send Ack if HEAD failed to fetch
Nothing we can do.
2024-02-01 20:14:09 -08:00
Cole Helbling f6159fbdd2 clone: also cleanup checkout with git gc 2024-02-01 20:14:09 -08:00
Cole Helbling bd6b7f8846 Support multiple evaluators on a single machine 2024-02-01 20:14:09 -08:00
Sergei Trofimovich 7db074df7b ofborg/src/maintainers.nix: look up files pointed by "pos" attribute
Sometimes most of attributes for a package are defined outside the file
that defines it. Examples are `openjdk` and `nix`.

At least `openjdk` defined `pos` attribute to guide `nix edit` to open
the right file. Let's extend `ofborg` to do the same.

Before the change (with `pos` applied to `nix_2_3`):

    $ printf '[["nix_2_3"]]' > attrs.json; \
      printf '["pkgs/tools/package-management/nix/default.nix"]' > paths.json; \
      nix-instantiate --eval maintainers.nix --arg changedattrsjson ./attrs.json --arg changedpathsjson ./paths.json
    { }

After the change:

    $ printf '[["nix_2_3"]]' > attrs.json; \
      printf '["pkgs/tools/package-management/nix/default.nix"]' > paths.json; \
      nix-instantiate --eval maintainers.nix --arg changedattrsjson ./attrs.json --arg changedpathsjson ./paths.json
    { flokli = <CODE>; raitobezarius = <CODE>; }
2024-01-16 10:19:23 -08:00
Cole Helbling de415d3729 eval/nixpkgs: add note about why the extra curly braces are necessary 2023-09-15 11:19:19 -07:00
Ryan Hendrickson e043e3d9dd Update README.md
Co-authored-by: Artturi <Artturin@artturin.com>
2023-09-15 11:19:19 -07:00
Ryan Hendrickson 7101ab45ba eval/nixpkgs: parse Bash-braces in commits
Add support for expanding the Bash-like brace syntax.
2023-09-15 11:19:19 -07:00
Lily Foster 653829c95e clone: more forcefully clean clones of untracked files and empty dirs 2023-09-14 23:05:17 +02:00
Lily Foster cda5aa2ac7 eval/nixpkgs: eval package list once with aliases 2023-06-16 12:40:06 -07:00
Lily Foster 74f38efa7e eval/nixpkgs,outpaths: disable aliases by default
Co-Authored-By: Artturin <Artturin@artturin.com>
2023-06-16 12:40:06 -07:00
Cole Helbling 0f34038feb Emergency domain migration, nix.ci -> ofborg.org 2023-04-08 09:35:42 -07:00
Cole Helbling e0ccca94f9 log_message_collector: open log handle to ensure log file exists
This fixes the test in the previous commit.
2023-03-28 08:50:16 -07:00
Cole Helbling 64af23ec6c log_message_collector: assert that the log file exists if it has only started
This will fail, because that is currently not the case. However, the
following commit will make the tests pass.
2023-03-28 08:50:16 -07:00
Cole Helbling cf2c6712bd config: convert PEM to DER format on the fly
hubcaps requires a DER formatted key, but their instructions for
converting PEM to DER didn't work for me. So, we rely on rustls-pemfile
to parse the PEM key into DER bytes and hand that to hubcaps.
2023-02-14 12:59:49 -08:00
Naïm Favier 2beea85aed use nixosTests for tests
The current approach runs e.g. `nix-build nixos/release.nix -A tests.installer`,
which is a no-op because `tests.installer` is a set of sets of
derivations (e.g. `tests.installer.simple.x86_64-linux`).

Use `nixosTests` instead, which doesn't have this extra nesting.
2023-01-03 07:42:21 -08:00
Cole Helbling 6d5ad2f34b nix: use extra-experimental-features instead
If we ever set experimental-features in the machines' configs, this
could break things, so let's guard against that.
2022-12-22 11:03:28 -08:00
Cole Helbling bc70305de9 nix: rustfmt 2022-12-22 11:03:28 -08:00
Cole Helbling 686d469dba nix: forbid url literals in Operation::Instantiate as well 2022-12-22 11:03:28 -08:00
Artturin 9194ace589 nix: run all operations with "--option extra-experimental-features 'no-url-literals'" 2022-12-22 11:03:28 -08:00
Artturin 12f7ba6a3d flake: add nixpkgs-for-php
last nixpkgs version that has php74 is 22.05

error: php74 has been dropped due to the lack of maintanence from upstream for future releases

there's hardly any testing possible with php so i won't mess with it
2022-12-22 07:59:08 -08:00
Artturin 0bae3a0259 bump nixpkgs to 22.11 2022-12-22 07:59:08 -08:00
Artturin 0260aa1cea clone: force checkout
cole-h > Somehow, some evaluators have had dirty git checkouts, causing them to continually crash.
2022-12-21 12:18:59 -08:00
Cole Helbling 6daa9f8f94 Enable tokio1 compatibility
Fixes the following issue:

    thread 'main' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', /build/cargo-vendor-dir/hyper-0.14.23/src/client/connect/dns.rs:121:24
2022-12-03 13:50:13 -08:00
Artturin 14015d0d0d address review 2022-12-03 12:00:40 -08:00
Artturin 6ebf32f30a use upstream hubcaps 2022-12-03 12:00:40 -08:00
Cole Helbling d56502e692
Merge pull request #622 from Artturin/updates2 2022-11-13 07:56:19 -08:00
Naïm Favier 76c57fb495 Revert "ofborg: post a finished check if evaluation starts"
This reverts commit 16355e10b4.
2022-11-11 10:36:37 -08:00
Artturin 33aaa40870 eval/nixpkgs: automatically add cross-compilation label 2022-11-11 10:35:38 -08:00
Artturin 0ef997b143 run 'cargo upgrade --incompatible --package log' and remove unused #[macro_use] import 2022-11-10 19:02:44 +02:00
Artturin d917f2f3dd run 'cargo upgrade --incompatible --package lapin'
.basic_publish now takes a &[u8] instead of Vec<u8>
https://docs.rs/lapin/1.10.0/lapin/struct.Channel.html#method.basic_publish
https://docs.rs/lapin/latest/lapin/struct.Channel.html#method.basic_publish
2022-11-10 18:52:15 +02:00
Artturin 03904a5d2f run 'cargo upgrade --incompatible --package uuid' 2022-11-10 08:49:31 +02:00
Artturin 80db7e831e run 'cargo upgrade --incompatible --package tracing-subscriber' and add
necessary feature for EnvFilter
2022-11-10 08:48:30 +02:00
Artturin 91cf8e1bf3 run 'cargo upgrade --incompatible --package tempfile' 2022-11-10 08:46:46 +02:00
Artturin f32e521c16 run 'cargo upgrade --incompatible --package sys-info' 2022-11-10 08:46:08 +02:00
Artturin a6ee33a540 run 'cargo upgrade --incompatible --package md5' 2022-11-10 08:45:13 +02:00
Artturin c27d62b5c4 update async-std pin 2022-11-10 08:29:21 +02:00
Artturin 39b4412941 pin hyper 2022-11-10 08:22:48 +02:00
Artturin e1ff628c1a run 'cargo upgrade' 2022-11-10 07:50:10 +02:00
Artturin 0db5ebd427 run 'cargo clippy --fix' 2022-11-02 00:53:43 +02:00
Artturin 261607a76d run 'cargo update' 2022-11-01 21:58:51 +02:00
Cole Helbling a328bf8aeb Use flake-compat for shell.nix, default.nix
This also means we can drop the entire `nix` subdirectory as well as the
`release.nix` file (since we have `hydraJobs` in our flake).
2022-10-28 09:59:38 -07:00
Cole Helbling f7b2c00dae *: make clippy happy 2022-10-28 09:59:38 -07:00
Cole Helbling 6329009182 flake: init 2022-10-28 09:59:38 -07:00
Cole Helbling c81e72cc04 eval/nixpkgs: more logging re: maintainers 2022-06-06 14:46:15 -07:00
Cole Helbling e56a1e18ec tagger: aarch64-darwin is a known architecture
Prevents 'Unknown arch: "aarch64-darwin"' from cluttering up the logs.
2022-05-20 08:25:06 -07:00
Cole Helbling f3dd1a5a3a Revert "disallow aliases in the nixpkgs-tarball eval"
This reverts commit 2a4e559fcf.
2022-04-22 10:27:19 -07:00
Artturin 2a4e559fcf disallow aliases in the nixpkgs-tarball eval
this allows ofborg to still check the aliases.nix file for errors
unlike https://github.com/NixOS/ofborg/pull/594 which would have
disabled aliases in outpaths.nix

errors in the alias.nix file are caught by outpaths.nix eval so we can
disable aliases here
2022-04-22 08:26:10 -07:00
Artturin 6dd36a8827 update ci deps
i suggest enabling dependabot
2022-04-19 11:04:16 -07:00
Artturin b8077fc935 buildresult.rs: use skipped instead of neutral for a skipped job
doesn't make much sense for a skipped job to be neutral
2022-04-19 11:04:16 -07:00
Jörg Thalheim db5293a4fb eval aarch64-darwin rather than i686-linux
I don't think anyone still runs nixpkgs-review on 32-bit x86.
2022-03-24 13:38:24 -07:00