Commit graph

1449 commits

Author SHA1 Message Date
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
Cole Helbling ec9e8096e1 tasks/eval: test the other silly example titles 2022-03-16 12:48:49 -07:00
Cole Helbling 008c9c5728 tasks/eval: use regex to match labels on word boundary
This prevents a PR named "libsdl: xyz" being tagged as "6.topic: bsd".

This is slightly more robust than simply checking if the strings
"bsd" or "darwin" or "macos" are present in the title.
2022-03-16 12:48:49 -07:00
Alyssa Ross accd873d62 Label PRs with "bsd" in the title 2022-03-16 12:48:49 -07:00
Alyssa Ross 01a69183ef Refactor title-based labelling
This will make it easier to add new topic labels.
2022-03-16 12:48:49 -07:00
Winter Cute c158642647 fix devshell on darwin 2022-03-15 17:59:14 -07:00
Graham Christensen 97d2c2d623
Merge pull request #592 from cole-h/rosetta
Support building x86_64 packages on aarch64-darwin
2022-03-07 12:27:32 -05:00
Cole Helbling 62da9b6e3d config: accept list of systems as well as single string 2022-03-05 12:46:22 -08:00
Cole Helbling f1258f77ab bin/stats: use whoami() to identify rabbitmq 2022-03-05 12:46:20 -08:00
Cole Helbling 3d7a81300b bin/mass-rebuilder: use whoami() to identify rabbitmq 2022-03-05 12:46:18 -08:00
Cole Helbling b60e30cd42 bin/log-message-generator: rm
This is unused.
2022-03-05 12:46:14 -08:00
Cole Helbling 7c2410f11f Support building x86_64 packages on aarch64-darwin
Thanks to Rosetta 2, we can build x86 packages on aarch64-darwin
machines (although, it's not perfect).

This adds a new configuration option -- `additional_build_systems` --
which will cause the builder to spawn additional async tasks for each
additional build system.
2022-02-25 12:16:25 -08:00
Cole Helbling 19c6ecb744 tasks/evaluate: use error macro for error output 2022-02-17 12:01:27 -08:00
Cole Helbling 0a682f561c Bump hubcaps fork again to use u64 over u32 for CheckSuite ids 2021-12-29 13:06:00 -08:00
Cole Helbling c16f183447 Bump hubcaps fork to fix "invalid value: integer 4660755204, expected i32"
....I hope.
2021-12-29 11:17:11 -08:00
Graham Christensen 998adc8e2a Support aarch64-darwin 2021-11-12 14:01:12 -08:00
Cole Helbling e64d033fb6 Use environment variable for git committer in tests, too 2021-11-12 08:30:30 -08:00
Alyssa Ross 4a56d518c9 Use environment variable for git author in tests
This way it doesn't have to be repeated every time.
2021-11-12 08:30:30 -08:00
Alyssa Ross 02396b2a1b Don't use global git config in tests
The tests were failing for me because I have git configured to use
"main" instead of "master" as the default initial branch name for new
repositories.  Having the tests use global git configuration from
developer systems is just asking for trouble with non-reproducibility,
but fortunately git gives us a mechanism to disable it.

This also means we don't need to worry about GPG any more.
2021-11-12 08:30:30 -08:00
Graham Christensen 9ded230796
Merge pull request #584 from cole-h/update
Update nixpkgs to nixos-unstable-small
2021-11-12 09:13:53 -05:00
Cole Helbling a692003bda Update nixpkgs to nixos-unstable-small 2021-11-11 16:14:04 -08:00
Cole Helbling 26330ecb99 Add Security to buildInputs
For some reason, the overlay at nix/overlay.nix doesn't appear to be respected
(or, maybe `defaultCrateOverrides` isn't being respected). Either way, this is
necessary for darwin builds to succeed.
2021-07-07 14:46:49 -07:00
Cole Helbling 0d5bae416f Remove update-crates.sh script
This has been superceded by just invoking `cargo update` in the regular
development shell (now that we've switched to using `buildRustPackage` instead
of `crate2nix`).
2021-07-07 12:19:54 -07:00
Andreas Rammhold 804bb34181 Move from crate2nix to buildRustPackage based on the Cargo.lock
Nixpkgs recently gained the ability to fetch cargo dependencies based on
the Cargo.lock file which means we can get rid of all the generated Nix
expressions. The only downside to that is that we are now building
everything in one go and do not have the semi-incremental builds as we
had before.
2021-07-07 12:19:54 -07:00
Andreas Rammhold 179f1fc018 Update rust dependencies 2021-07-07 12:19:54 -07:00
Andreas Rammhold 986be3ceb7 Remove the usage of the mozilla rust overlay
By switching to the tools bundled within nixpkgs we can provide a much
more "pure" development environment that doesn't randomly change over
time.

Previously we would be using the latest and greatest version of the
formatting and linting tools while our development environment only
offered whatever was in the (old) nixpkgs pin. Nowadays we have all the
tools we need in nixpkgs and can thus use those instead. By following
nixpkgs more closely we can make sure to make use of those tools in this
project as well. Hopefully removing the "yearly churn" of doing big
migrations.

For the meantime I allowed the upper case acronyms check (and a few
other minor lints) in the clippy configuration. This will allow a
smoother transition towards the newer clippy code that is decoupled from
the actual linting changes.
2021-07-07 12:19:54 -07:00
Andreas Rammhold b29f146bd7 Remove the oldpkgs GLIBC hack
It has been almost three years since this was introduced for the sake of
fixing builds on TravisCI. The project since moved to GitHub Actions and
this shouldn't be required anymore.
2021-07-07 12:19:54 -07:00
Andreas Rammhold de74c9e88c Fix the php packaging for the latest nixpkgs revision
Nixpkgs has dropped PHP 7.2. Updating to PHP 7.4 should be painless as
our usage of PHP is very limited.
2021-07-07 12:19:54 -07:00
Andreas Rammhold 0120549043 Update nixpkgs to latest nixos-unstable revision 2021-07-07 12:19:54 -07:00
Cole Helbling 11d08c75e3 config: disable_trusted_users is optional 2021-05-20 12:59:37 -07:00
Cole Helbling 517a32a84d
Merge pull request #564 from cole-h/disable-trusted-users 2021-05-17 14:08:48 -07:00
Cole Helbling 0e1ca6ea2f
Fix inconsistent_struct_constructor clippy lint 2021-05-17 13:49:53 -07:00
Cole Helbling e8f0cec6db
Fix filter_map_identity clippy lint 2021-05-17 13:49:11 -07:00
Andreas Rammhold 1b07e3afec
Fix upper_case_acronyms clippy lint
This is perhaps a bit controversial. The only acronym that I allowed is
the NixOS acronym all the others are required to follow the clippy
naming conventions.
2021-05-17 13:48:22 -07:00
Andreas Rammhold 2d7758dc3b
Fix the from_over_into clippy lint 2021-05-17 13:46:59 -07:00
Andreas Rammhold ba9efad152
Fix the vec_init_then_push clippy lint 2021-05-17 13:46:32 -07:00
Andreas Rammhold a91c6c5b12
Fix the clippy ptr_arg lint 2021-05-17 13:45:55 -07:00
Cole Helbling 36fc9ab70d
nix: use formatted panic 2021-05-17 13:36:23 -07:00
Cole Helbling 452ee25294
Disable trusted users for now
The current darwwin builder is reset very, very frequently (mostly due to its
storage constraints necessitating it), so there's much less of a reason to limit
the people who can utilize it. (Enabling it for everybody will also guarantee
more frequent resets, as well.)

However, it is kept as an option so that it can be re-enabled some time in the
future, if anything were to happen.
2021-05-17 13:20:13 -07:00
Graham Christensen d934ebe9af
Merge pull request #560 from NixOS/builders-hash-mismatch
builders: report hash errors as failures
2021-05-16 09:02:49 -04:00