-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
enable nixos tests for fetchGit #9808
base: master
Are you sure you want to change the base?
Conversation
f951601
to
0463441
Compare
Discussed during the Nix maintainers meeting today. We'll close that one because it's imposing a too big overhead on the CI. @roberth will look at improving the CI situation (implement #7674 )
|
@thufschmitt By "that one", do you mean this one? Looks like it adds about 4 minutes to the ubuntu-latest job. Running some VM test would be useful, but I don't know if the |
We can probably minimize the added time by making the attributes available to 'nix flake check', then we don't have to go through an additional evaluation and fetching cycle |
@DavHau do you want to give this a stab? I might indeed help. Also, looking at the CI logs, I see this:
It looks like
I've restarted the workflow. If that's indeed what's taking most of the time, the new run should be noticeably faster since Gitea will now be in the CI's cachix cache. |
Yes, gitea on that nixpkgs release has been marked insecure, therefore it's not cached on hydra. |
03207dd
to
bbb99a8
Compare
Alright, I made this a flake check and also added the remote builder test. The total overhead introduced by this PR now seems to be between 2-3 minutes. You could also set up larger github runners which would reduce the time of all checks to a fraction. Currently the runners have only 2 cores, but you could get up to 64. |
I'm confused here. Are you saying that merging everything into
Yes, I'd very much like us to do that. This was abandoned in the past because of a proposal to directly get Hydra as the CI (but that never happens), but we should certainly revisit it. @roberth also offered to set up Hercules CI here, but we can have beefier GH runners as a stop-gap measure in the meantime any way. |
It might have increased from 1 min to 2-3 min because I also enabled the remote builder test. |
It seems like the nixos tests don't terminate properly some times and then the runner times out. Not sure why. |
bbb99a8
to
335441f
Compare
Oh the remote builder job failed on hydra as well, so it doesn't seem to be a problem with the github runners. I now remove the remote builders job again, as it should not be the purpose of this PR to fix it. |
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.
LGTM
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-01-19-nix-team-meeting-minutes-116/38837/1 |
The timeout issue still occurs. Not sure how to deal with it. |
335441f
to
314a70c
Compare
All tests are green now |
314a70c
to
c74106e
Compare
c74106e
to
8ccc4c2
Compare
Motivation
Support fetchTree stabilization by running the relevant nixos tests for each PR
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.