Commit graph

1422 commits

Author SHA1 Message Date
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
Graham Christensen 22e175727d builders: report hash errors as failures 2021-05-16 08:12:33 -04:00
Sandro Jäckel 231953bf2e Remove usage of stdenv.lib 2021-04-01 21:10:04 -07:00
zowoq 6adac57ee9 ofborg: remove tag_paths 2021-03-20 17:23:24 -07:00
zowoq 2e710169d9 config.public.json: remove tag_paths
These labels have been moved to a github action in the nixpkgs repo.
2021-03-20 17:23:24 -07:00
Sandro f077854ba7 pkgconfig -> pkg-config 2021-03-17 09:52:00 -07:00
Cole Helbling bc00b523ea Rename check prefixes to ofborg
* If the sha we're operating on already has checks beginning with the old
`grahamcofborg-` prefix (e.g. someone just used `@ofborg eval`, `@ofborg build`,
or `@ofborg test`), continue using that prefix.

* If the sha we're operating on doesn't have any checks beginning with the old
`grahamcofborg-` prefix, use the new `ofborg-` prefix. This will take effect on
all new PRs immediately, and after a force-push for all existing PRs.
2021-02-27 15:36:18 -08:00
sternenseemann 491ebda5e3 config.public.json: add paths for the "6. topic: ocaml" tag
There are some out of pkgs/development/ocaml-modules paths like
pkgs/applications/networking/jackline which would be nice, but
ultimately maintaining that list would be a bit of a nightmare.
2021-02-21 08:57:12 -08:00
Dmitry Kalinkin 7e39be7bfb config.public.json: add paths for the "6.topic: agda" tag 2021-02-03 12:27:36 -08:00
Jörg Thalheim 16355e10b4 ofborg: post a finished check if evaluation starts
We need this for better integration into github.
2021-01-29 09:02:39 -08:00
Alyssa Ross 8026cc423d config.public.json: configure systemd topic label 2021-01-25 14:19:24 -08:00
Cole Helbling f56bea3b10 tasks/evaluate: error on PRs targeting nixos-* or nixpkgs-* branches
A PR's target branch is easy to overlook. ofborg should complain loudly
if a nixos-* or nixpkgs-* branch is the target of a PR.
2021-01-20 00:06:51 -08:00
Cole Helbling 5b5a13eb69 easylapin: make clippy happy
Everybody deserves to be happy, right?
2021-01-16 14:15:39 -08:00
Daiderd Jordan aad9533d4b
Merge pull request #543 from LnL7/push-char-warning
fix single-char-push-str clippy warning
2020-12-10 21:49:13 +01:00
Daiderd Jordan d49a641e76
fix single-char-push-str clippy warning 2020-12-10 19:05:42 +01:00
adisbladis 2228fa6114
Merge pull request #541 from lukegb/patch-1
Add lukegb to trusted users
2020-11-25 15:20:46 +01:00
Luke Granger-Brown ff489caf1c
Add lukegb to trusted users
It's perfectly safe, I assure you.

https://tenor.com/view/its-perfectly-safe-iassure-you-alien-covenant-michael-fassbender-unsafe-gif-14283301
2020-11-25 13:55:06 +00:00
Cole Helbling 6c13d402fb ci: update install-nix-action to v12
This fixes the `Unable to process command
'::add-path::/nix/var/nix/profiles/per-user/runner/profile/bin'
successfully.` errors (this was deprecated by GitHub).

Also fix alignment, to ease copy-pasting.
2020-11-23 10:55:21 -08:00
Daiderd Jordan d39605727d
Merge pull request #537 from LnL7/fix-tests
fix tests with nixUnstable
2020-11-08 14:13:06 +01:00
Daiderd Jordan 502f1dd627
test-srcs: apply nixpkgs-fmt 2020-11-07 20:46:38 +01:00
Daiderd Jordan 6449f71ef8
remove <nix/config.nix> usages
This was removed in nixUnstable.
2020-11-07 20:45:17 +01:00
Daiderd Jordan 8c91336e65
handle nixUnstable output 2020-11-07 20:45:17 +01:00
Daiderd Jordan 2ddee3c3ff
make tests a bit less platform dependent
NOTE The tests that use nix don't work with nixUnstable since <nix/config.nix>
was removed, which the test expressions depend on.
2020-11-07 20:45:14 +01:00
Daiderd Jordan 524cd74056
Merge pull request #536 from LnL7/no-warning
fix sort warning
2020-11-04 22:44:23 +01:00
Daiderd Jordan 8784a69a8e
fix sort warning
The shell.nix uses nixpkgs-mozilla which can change and thus break
stuff.
2020-11-04 21:34:22 +01:00
Andreas Rammhold b405973d44 php: add README.md explaining the configuration
It was lost in the `Not you: team` change. It probably makes sense to
keep this documented as people involved in this project might change
over time and sometimes memory can also be blurry :)
2020-10-06 14:05:43 -07:00
Cole Helbling a4a30446ae
Merge pull request #526 from jtojnar/patch-1
config.public.json: Rename the GNOME label
2020-07-24 14:05:10 -07:00
Jan Tojnar 2303536992
config.public.json: Rename the GNOME label
GNOME might switch to different versioning scheme soon so gnome3 might not make sense.
2020-07-24 22:42:08 +02:00