Skip to content
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

doc: minimal documentation of supported platforms #254741

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

asymmetric
Copy link
Contributor

@asymmetric asymmetric commented Sep 12, 2023

This commit adds minimal documentation of the supported platforms.

More exhaustive documentation would require producing a list of platforms for each of the 7 tiers. This was attempted in #245368, but it quickly became clear that that would be a long-term effort.

In the meantime, this commit adds the most important information to the manual.

Description of changes

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/)
  • 23.11 Release Notes (or backporting 23.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
  • Fits CONTRIBUTING.md.

@@ -0,0 +1,11 @@
# Platform Support {#appendix-platform-support}

Currently, the `x86_64-linux` platform receives the highest level of support, both in terms of CI and of developer attention.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If anyone has a better, equally succint definition of the level of support here, feel free to suggest.

@asymmetric asymmetric removed request for a user and 7c6f434c September 12, 2023 12:37
@asymmetric
Copy link
Contributor Author

CC'ing @7c6f434c and @amjoseph-nixpkgs as participants in #245368

@asymmetric asymmetric requested review from a team and removed request for infinisil September 12, 2023 12:38
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Sep 12, 2023
Copy link

@henrik-ch henrik-ch left a comment

Choose a reason for hiding this comment

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

lgtm

@delroth delroth added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Sep 12, 2023
Copy link
Member

@06kellyjac 06kellyjac left a comment

Choose a reason for hiding this comment

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

LGTM

Might be worth getting an updated platform list at some point

@delroth delroth added 12.approvals: 2 This PR was reviewed and approved by two reputable people and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Sep 12, 2023
Copy link
Member

@infinisil infinisil left a comment

Choose a reason for hiding this comment

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

I feel like this is missing a link to Hydra, but it's also really difficult to establish a good such link, because the nixpkgs Hydra project is not great to look at. Ideally we'd be able to express platform support as a percentage of packages that build successfully. But that's for the future.

doc/platform-support.appendix.md Outdated Show resolved Hide resolved
doc/platform-support.appendix.md Outdated Show resolved Hide resolved
doc/manual.md.in Outdated Show resolved Hide resolved
@asymmetric
Copy link
Contributor Author

@infinisil How strongly do you feel about your requests for changes? As it is, they are all part of a blocking review. For stylistic issues, it would be great if we could either:

  • Leave it up to the author
  • Justify with some consensus (ideally written down)
  • Make it clear that they are "nits"/personal opinion

@delroth delroth added 12.approvals: 1 This PR was reviewed and approved by one reputable person and removed 12.approvals: 2 This PR was reviewed and approved by two reputable people labels Sep 13, 2023
@7c6f434c
Copy link
Member

Ideally we'd be able to express platform support as a percentage of packages that build successfully.

More like percentages of some well-defined core package sets, so that technical trade-offs about building python3*Packages don't change the stats when not warranted.

@delroth delroth removed the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Sep 13, 2023
@infinisil
Copy link
Member

@infinisil How strongly do you feel about your requests for changes? As it is, they are all part of a blocking review.

The stylistic changes I don't care much about, but #254741 (comment) is more important.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-09-14-documentation-team-meeting-notes-80/33033/1

@asymmetric
Copy link
Contributor Author

Please review again. I've moved the chapter way up in the manual (in the position we discussed in the meeting).

I've decided not to add an appendix with an outdated platform list -- this will have to be done in a follow up PR, if someone has the resources to produce an up to date one.

@pennae
Copy link
Contributor

pennae commented Sep 30, 2023

@pennae the consensus is that it should be prominent, so not an appendix. If I made it an inline content of Using Nixpkgs, could I give it an anchor?

you can, but that would mean dropping the heading. if immediate prominence is the goal then sure, make it a chapter so it'll stand out—there's no reason we can't revise the structure later if a better place becomes evident. (personally we'd add that chapter at the end of the part and, as time comes, put porting/cross-compiling/etc information there)

@asymmetric
Copy link
Contributor Author

asymmetric commented Oct 1, 2023

But at least the definitions of the tiers could be copied to an appendix?

@7c6f434c my concern with doing that is: I think that unless the tiers are actually implemented1 in practice, there is little point in adding them to the manual, and could even be misleading.

It seems to me that there's at least some (and maybe a lot of) work that would need to be done "behind the scenes" before the tiers can be said to represent something actually existing2. At that point the definitions should definitely be added to the manual.

But that's work I realized I wasn't able to do (see #245368), so I'd prefer to keep these two aspects separated.

Footnotes

  1. By implemented I mean: followed by platform maintainers, reflected in organizational structure, CI

  2. It could also be that I'm wrong, and that the tiers are mostly implemented, which goes to show I'm not the right person to make the call of whether this should be included.

@asymmetric
Copy link
Contributor Author

I feel like this is missing a link to Hydra, but it's also really difficult to establish a good such link, because the nixpkgs Hydra project is not great to look at.

@infinisil there's a link to Hydra in the previous section, and tellingly, it points to the GitHub repo.

@7c6f434c
Copy link
Member

7c6f434c commented Oct 1, 2023

By implemented I mean: followed by platform maintainers, reflected in organizational structure, CI.

It kind of has nothing to reflect in CI, it works the other way round, no? At the end of the day, tiers are rules of arbitration of tradeoffs when platform maintainers and package maintainers have different interests. The rules take into account the CI situation.

Copy link
Contributor

@fricklerhandwerk fricklerhandwerk left a comment

Choose a reason for hiding this comment

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

@henrik-ch and me checked what it looks like, and we think it's fine having it as a top-level chapter. Some small wording suggestions, otherwise good to merge.

doc/using/platform-support.chapter.md Outdated Show resolved Hide resolved
doc/using/platform-support.chapter.md Outdated Show resolved Hide resolved
doc/using/platform-support.chapter.md Outdated Show resolved Hide resolved
@delroth delroth added the 12.approvals: 2 This PR was reviewed and approved by two reputable people label Oct 2, 2023
@asymmetric asymmetric dismissed infinisil’s stale review October 2, 2023 15:17

Concerns have been addressed.

Copy link
Member

@infinisil infinisil left a comment

Choose a reason for hiding this comment

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

Otherwise this looks good!

# Platform Support {#chap-platform-support}

Packages receive varying degrees of support, both in terms of maintainer attention and available computation resources for continuous integration (CI).
Below is a list of well-supported supported platforms:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Below is a list of well-supported supported platforms:
Here is the list of platforms with some support:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about these instead?

  • Here is the list of better supported platforms or
  • Here is the list of the best supported platforms

Copy link
Member

Choose a reason for hiding this comment

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

Either sounds good!

@delroth delroth added 12.approvals: 3+ This PR was reviewed and approved by three or more reputable people and removed 12.approvals: 2 This PR was reviewed and approved by two reputable people labels Oct 2, 2023
@infinisil
Copy link
Member

Did you want to squash the commits yourself? Otherwise I'll just squash them when merging

This commit adds minimal documentation of the supported platforms.
More exhaustive documentation would require producing a list of
platforms for each of the 7 tiers. This was attempted in NixOS#245368, but it
quickly became clear that that would be a long-term effort.

In the meantime, this commit adds the most important information to the
manual.

Co-authored-by: Valentin Gagarin <[email protected]>
@asymmetric
Copy link
Contributor Author

Yes, it was my intention to fixup before merging myself :)

@asymmetric asymmetric merged commit 79c21ab into NixOS:master Oct 2, 2023
5 checks passed
@asymmetric asymmetric deleted the doc-support-tiers-redux branch October 2, 2023 19:29
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2023

Backport failed for release-23.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally.

git fetch origin release-23.05
git worktree add -d .worktree/backport-254741-to-release-23.05 origin/release-23.05
cd .worktree/backport-254741-to-release-23.05
git checkout -b backport-254741-to-release-23.05
ancref=$(git merge-base 85ff1d16872969aef314e2577e2d0cfcf9b42114 b19e9bebdc8ee7dce5a4c40e510165f0011008b7)
git cherry-pick -x $ancref..b19e9bebdc8ee7dce5a4c40e510165f0011008b7

@asymmetric
Copy link
Contributor Author

Can't be backported because 23.05 still uses the XML setup for the manuals.

@infinisil
Copy link
Member

As also mentioned on Matrix, a manual backport would still be doable, however it's not very easy and this doesn't seem worth it, so not crucial.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/this-month-in-nix-docs-5-september-2023/33856/3

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-10-05-documentation-team-meeting-notes-84/33877/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: documentation 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux 12.approvals: 3+ This PR was reviewed and approved by three or more reputable people
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

10 participants