Skip to content

RFC: nixos/release: Make aarch64-linux a supported system again - #193600

Merged
mweinelt merged 8 commits into
NixOS:masterfrom
mweinelt:release-small-aarch64
Oct 11, 2022
Merged

mweinelt merged 8 commits into
NixOS:masterfrom
mweinelt:release-small-aarch64

Conversation

@mweinelt

@mweinelt mweinelt commented Sep 29, 2022 •

Copy link
Copy Markdown
Member

The aarch64-linux builders on hydra have had a good track in the last year or so and I think it's a good idea to include them in the supported systems again.

This happens in preparation of improving the distributing of the installer ISOs for aarch64-linux systems and advertise them more prominently on the homepage.

Description of changes

This is an educated guess of what is needed to improve aarch64-linux support. Ideally we could leave out aarch64-specific channels starting with the 22.11 release cycle.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions Bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Sep 29, 2022
@mweinelt
mweinelt force-pushed the release-small-aarch64 branch 2 times, most recently from 77cac1f to 3cc186a Compare September 29, 2022 23:09
@mweinelt
mweinelt force-pushed the release-small-aarch64 branch 2 times, most recently from a7c7a82 to 5621631 Compare September 29, 2022 23:15
@mweinelt mweinelt changed the title RFC: nixos/release-small: Add aarch64-linux to supportedSystems RFC: nixos/release: Make aarch64-linux a supported system again Sep 29, 2022
@mweinelt
mweinelt force-pushed the release-small-aarch64 branch from 3d62395 to 88c6ddc Compare September 29, 2022 23:22
@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Sep 29, 2022

@samueldr samueldr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that the only reason it's not is that the previous hydra evaluator had trouble with it enabled, I think it should be done.

The evaluator was re-written since.

@mweinelt
mweinelt force-pushed the release-small-aarch64 branch 2 times, most recently from d208361 to 5ea7447 Compare September 29, 2022 23:54
@github-actions github-actions Bot added the 8.has: module (update) This PR changes an existing module in `nixos/` label Sep 29, 2022
@vcunat

vcunat commented Sep 30, 2022 •

Copy link
Copy Markdown
Member

I think we should unify this with stable releases. There we have limited support in the main jobset+channel and an additional aarch64-linux jobset+channel. I'm not saying it needs to be that way, but I can't see why handle stable and unstable differently.

@samueldr

Copy link
Copy Markdown
Member

I'm not even sure why there are different jobsets. It causes issues when the updates are out of sync and you want to update the channel for a mixed deployment.

@mweinelt

mweinelt commented Oct 1, 2022 •

Copy link
Copy Markdown
Member Author

@vcunat Are you saying I should create the same changeset for release-22.05? Or even backport this one, once merged.

n.b.: Built the aarch64-linux GNOME iso and tested it successfully via QEMU.

@vcunat

vcunat commented Oct 1, 2022

Copy link
Copy Markdown
Member

22.05 will end relatively soon, so I think we can keep that one as it is. But for future I believe it would make sense to unify the approaches in unstable and stable (stable e.g. since 22.11, if we decide soon).

As the build farm is now, with on-demand scaling of builders for both *-linux, I think it should be fine to include both platforms in the main big channel. (and hope there won't be difficult regressions specific to aarch64-linux) But if we go that way, I see no sense in keeping the nixos-22.11-aarch64 jobset and channel, except perhaps as redirect. I mean, if we wanted a separate channel in addition to one with both platforms, it would surely be for x86_64, right? (that would open the question of which should be the default, too)

@samueldr

samueldr commented Oct 1, 2022

Copy link
Copy Markdown
Member

I mean, if we wanted a separate channel in addition to one with both platforms, it would surely be for x86_64, right? (that would open the question of which should be the default, too)

In my opinion, if it was to happen, we'd want the "unqualified" channel to wait for all systems, and as many qualified channel names as we have supported systems. Weird in-betweens with only one arch exposed this way might be confusing for end-users.

Though I don't think there is any need for per-system channels, but I also don't have any data proving it either way.

@vcunat

vcunat commented Oct 1, 2022

Copy link
Copy Markdown
Member

I wouldn't be keen on creating so many jobs(ets), as the central Hydra element isn't very efficient there. Caching a build from another jobset apparently needs nontrivial work, e.g. after staging-next merge it can take several hours to just do that for those roughly 240k jobs we have in the jobsets attached to the master branch.

@samueldr

samueldr commented Oct 1, 2022

Copy link
Copy Markdown
Member

I'm not either. We probably don't need them.

I'm mostly saying that if we ended-up needing them, we'd need to have one for each supported arch, no bizarro in-between.

@mweinelt

mweinelt commented Oct 1, 2022

Copy link
Copy Markdown
Member Author

Thinking of the added eval cost alone makes me dizzy.

@vcunat

vcunat commented Oct 2, 2022

Copy link
Copy Markdown
Member

-small won't work as suggested in this PR, because some of the channel-critical tests won't evaluate:

in job ‘nixos.tests.installer.separateBoot.aarch64-linux’:
error: Non-EFI boot methods are only supported on i686 / x86_64

in job ‘nixos.tests.installer.lvm.aarch64-linux’:
error: Non-EFI boot methods are only supported on i686 / x86_64

in job ‘nixos.tests.installer.simple.aarch64-linux’:
error: Non-EFI boot methods are only supported on i686 / x86_64

Comment thread nixos/release-small.nix Resolved
@mweinelt
mweinelt force-pushed the release-small-aarch64 branch from 196c6ea to e92e6df Compare October 2, 2022 15:10
@mweinelt

mweinelt commented Oct 8, 2022

Copy link
Copy Markdown
Member Author

Maybe we should test this branch on Hydra job(s) before merging, so that we don't immediately block the channel(s).

@vcunat What's the hold up here?

@vcunat

vcunat commented Oct 8, 2022

Copy link
Copy Markdown
Member

Oh, I didn't understand that you want it already. Let's start with small:
https://hydra.nixos.org/jobset/nixos/pr-193600-aarch64-support#tabs-errors

@mweinelt

mweinelt commented Oct 8, 2022

Copy link
Copy Markdown
Member Author

My hope is that we can test drive this early enough so we can get comfortable with it on unstable and then make an informed decision around channel creation time.

@mweinelt
mweinelt force-pushed the release-small-aarch64 branch from e92e6df to 583da40 Compare October 8, 2022 19:23
Comment thread nixos/release-small.nix Resolved
@mweinelt
mweinelt force-pushed the release-small-aarch64 branch from ee383a1 to fd760d0 Compare October 8, 2022 21:57
@mweinelt

This comment was marked as duplicate.

@mweinelt
mweinelt force-pushed the release-small-aarch64 branch from fd760d0 to ccde8b9 Compare October 9, 2022 15:38
@vcunat

vcunat commented Oct 10, 2022

Copy link
Copy Markdown
Member

I assume that the jobset is just for evaluation checks, so I cancelled the builds.

@mweinelt
mweinelt force-pushed the release-small-aarch64 branch from 3517a43 to a758228 Compare October 10, 2022 18:44
@mweinelt

Copy link
Copy Markdown
Member Author

-small won't work as suggested in this PR, because some of the channel-critical tests won't evaluate:

in job ‘nixos.tests.installer.separateBoot.aarch64-linux’:
error: Non-EFI boot methods are only supported on i686 / x86_64

in job ‘nixos.tests.installer.lvm.aarch64-linux’:
error: Non-EFI boot methods are only supported on i686 / x86_64

in job ‘nixos.tests.installer.simple.aarch64-linux’:
error: Non-EFI boot methods are only supported on i686 / x86_64

They are not part of the tested set, so primarily noise. I'm not sure how I could match the system in this attribute set:

https://github.com/NixOS/nixpkgs/blob/a7582289f5df0ae48af4b6d291da2c0684b73d2c/nixos/release-small.nix#L48-L53

I think it could be ok to leave this as is.

I assume that the jobset is just for evaluation checks, so I cancelled the builds.

Yeah, eval seems to have worked just fine. Is this good enough as is?

@vcunat vcunat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see anything blocking this PR.

@bobby285271 bobby285271 added the 12.approvals: 2 This PR was reviewed and approved by two persons. label Oct 11, 2022
The aarch64-linux builders on hydra have had a good track in the last
year or so and I think it's a good idea to include them in the default
-small jobset.

This happens in preparation of improving the distribution of the
installer ISOs for aarch64-linux systems and advertise them more
prominently on the homepage.
The builders have had a good track record in the last year so this is
worth a try.
The vmware guest module asserts on this exact condition, so let's only
enable it on that condition.
Tries to find a target specific makefile for aarch64 which does not
exist.
@mweinelt
mweinelt force-pushed the release-small-aarch64 branch from a758228 to d97e915 Compare October 11, 2022 13:33
@mweinelt

mweinelt commented Oct 11, 2022 •

Copy link
Copy Markdown
Member Author

Reverted a spurious change in release.nix, where I removed system = "x86_64-linux" from a pkgs import.

@mweinelt
mweinelt merged commit 4fc3852 into NixOS:master Oct 11, 2022
@mweinelt
mweinelt deleted the release-small-aarch64 branch October 11, 2022 13:36
@vcunat

vcunat commented Oct 12, 2022 •

Copy link
Copy Markdown
Member

I realized a bit late, but... I think the worst about this PR are concerns about evaluation performance on Hydra. (I don't consider that a deal-breaker, though.) The evals including many NixOS tests are expensive and while we've apparently solved memory issues, eval now took more than an hour: https://hydra.nixos.org/eval/1783395

@vcunat

vcunat commented Oct 12, 2022

Copy link
Copy Markdown
Member

Actually, on a quick glance during performing the evaluation, the rhea machine had a few peaks of RAM usage above 95%, so I hope we won't be running into this again. You know, packages and tests get added continuously, so that by itself makes the requirements grow over time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants