-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve speed of tests #133
Conversation
Other platforms need not unnecessarily build these packages
We can improve the build time by disabling check for grafana instead. |
I tried that, it was still taking a while to build locally. These broken packages should be a temp issue, so I'd say let's just use older nixpkgs until they fix it upstream. We benefit from official cache. |
Also less code is generally better. We don't want to maintain our own $package derivations. That's nixpkgs' job. |
|
||
# grafana is broken on aarch64-darwin, but works on older nixpkgs: | ||
# https://github.com/NixOS/nixpkgs/issues/273998 | ||
grafana = (builtins.getFlake "github:nixos/nixpkgs/b604023e0a5549b65da3040a07d2beb29ac9fc63").legacyPackages.${system}.grafana; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one line: we don't even have to add an extra flake input.
Okay, I will fix it upstream then. |
This speeds up build, because we no longer have to compile grafana locally and wait for eternity. cf. NixOS/nixpkgs#273998
We don't need per-file package overlays, since we don't envision having too many of them. Whenever possible, get them from nixpkgs, to keep our tests nimble.
Running
nixci
on my mac is extremely slow mainly due to grafana build. The slowness also translates to all of CI platforms.Tests should run swiftly as possible. Our project is not complicated. If something's fucked in nixpkgs, we shouldn't have to get hit by slow build times.