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

smc-fuzzer: init at 0-unstable-2020-12-23 #332586

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

hraban
Copy link
Member

@hraban hraban commented Aug 5, 2024

Description of changes

smc-fuzzer "https://github.com/theopolis/smc-fuzzer/" is originally written to fuzz the SMC chip on apple laptops, but it's actually quite useful if you just want to have bona fide interaction with the SMC.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

@hraban hraban force-pushed the smc-fuzzer branch 2 times, most recently from c1651c2 to ec3a609 Compare August 5, 2024 22:55
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Aug 5, 2024
@hraban hraban requested a review from Enzime August 5, 2024 22:57
pkgs/by-name/sm/smc-fuzzer/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/sm/smc-fuzzer/package.nix Show resolved Hide resolved
pkgs/by-name/sm/smc-fuzzer/package.nix Outdated Show resolved Hide resolved
Copy link
Contributor

@SigmaSquadron SigmaSquadron left a comment

Choose a reason for hiding this comment

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

Looks good, though I do have a few nit-picks:

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change necessary? Seems a bit off-topic for a package addition.

Copy link
Member Author

Choose a reason for hiding this comment

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

totally unnecessary I just came across it and thought I'd clean up while I saw it. I created a separate commit for it but I can also create a new PR if that's better.

I used to be stricter about creating separate PRs for every little change but I kinda got told off by other nixpkgs maintainers for it so I'm a bit more lenient now.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a committer, so I don't know how they feel about it, but it doesn't make sense to me to bundle completely unrelated changes in one PR. Separating changes makes it easier to review and merge them too, as a minor alphabetical reordering like this one wouldn't need to wait for the main package commit to pass reviews.

Copy link
Member Author

@hraban hraban Aug 10, 2024

Choose a reason for hiding this comment

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

I'm gonna stick with the feedback I got from the nixpkgs maintainer at the time which was the opposite of this, but if a maintainer comes in and dictates otherwise I'll change my mind.

Tbh I kind of agree with them: it's easier, I'm an unpaid volunteer so fewer PRs = less work, it's also less work to review, there is zero rush for this to get merged so the actual value of "not having to wait" is zero. 🤷 If I'm being honest with myself: at this point if I had to create a separate PR for every little change I'd just stop contributing little changes.

(s/maintainer/committer/ but you get the idea)

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fair, and I'd approve either solution anyway. We should really have a CI check for a sorted all-packages.nix (or better yet: no all-packages.nix at all!) so contributors don't need to worry about it.

Copy link
Member

@AndersonTorres AndersonTorres Aug 10, 2024

Choose a reason for hiding this comment

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

I will not complain about such a minor, cosmetic thing.

However I should say it is mostly unneeded because:

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair point--removed. Thank you.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's fair, and I'd approve either solution anyway. We should really have a CI check for a sorted all-packages.nix (or better yet: no all-packages.nix at all!) so contributors don't need to worry about it.

This is also a good point you're right

pkgs/by-name/sm/smc-fuzzer/package.nix Show resolved Hide resolved
pkgs/by-name/sm/smc-fuzzer/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/sm/smc-fuzzer/package.nix Show resolved Hide resolved
@hraban hraban force-pushed the smc-fuzzer branch 2 times, most recently from 965826b to ce6e055 Compare August 5, 2024 23:57
@hraban
Copy link
Member Author

hraban commented Aug 5, 2024

Thanks for your reviews @AndersonTorres and @SigmaSquadron 👍

@hraban hraban changed the title smc-fuzzer: new package smc-fuzzer: init at 0-unstable-2020-12-23 Aug 5, 2024
Copy link
Member

@AndersonTorres AndersonTorres left a comment

Choose a reason for hiding this comment

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

I can't test Apple things, but LGTM

@SigmaSquadron SigmaSquadron added the 12.approvals: 2 This PR was reviewed and approved by two reputable people label Aug 6, 2024
@wegank wegank removed the 12.approvals: 2 This PR was reviewed and approved by two reputable people label Aug 10, 2024
@SuperSandro2000 SuperSandro2000 merged commit 35ff178 into NixOS:master Sep 3, 2024
27 checks passed
@hraban hraban deleted the smc-fuzzer branch September 3, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants