-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
spider: init at 2.33.11 #389848
spider: init at 2.33.11 #389848
Conversation
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. Thanks.
pkgs/by-name/sp/spider/package.nix
Outdated
fetchFromGitHub, | ||
lib, | ||
nix-update-script, | ||
openssl, | ||
pkg-config, | ||
rust-jemalloc-sys, | ||
rustPlatform, | ||
stdenv, | ||
sqlite, | ||
versionCheckHook, | ||
zstd, |
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.
Please, sort the inputs in the order of apparition in the derivation (except lib
which should remain at the top).
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.
Is this written somewhere? because I think alphabetical order is easy to read/find and to add new as needed, so pretty logical.
Probably only chinese people would not agree.
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.
No, I don't think it is written in an official document.
It is just significantly more consensual within the code base.
Now, if you prefer having it this way, I will not block this PR for this reason.
pkgs/by-name/sp/spider/package.nix
Outdated
pkg-config, | ||
rust-jemalloc-sys, | ||
rustPlatform, | ||
stdenv, |
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.
stdenv, |
unused.
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.
most of the package is taken from nix-init
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.
nix-init
does not put lib
at the top?
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.
the alphabetical order around the package was my doing when I removed some deprecated darwin features and added a some for checks
nix-init
added stdenv
which I did not see it's not used
definitely needs an update
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.
Ok understood. nix-init
would need to be updated indeed.
The "apparition ordering" is way more common across the nixpkgs
code base. This is why I asked you to adopt it.
|
That is quite weird to fail on darwin because I built it fine on aarch64-darwin.
|
I keep getting those failures on the darwin community builders:
I tried to add |
That seems to be the case. I tried enabling it with the following:
Neither have changed sandbox to true
I'm guessing I should add those failing tests to checkFlags list. EDIT: Need to reboot system for changes to |
Add your user to
The @ means a group. |
pkgs/by-name/sp/spider/package.nix
Outdated
# Network and io_uring not available in sandbox | ||
checkFlags = [ | ||
"--skip=website::crawl" |
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.
# Network and io_uring not available in sandbox | |
checkFlags = [ | |
"--skip=website::crawl" | |
checkFlags = [ | |
# Network and io_uring not available in sandbox | |
"--skip=website::crawl" |
nit
pkgs/by-name/sp/spider/package.nix
Outdated
"--skip=page::test_status_code" | ||
"--skip=pdl_is_fresh" | ||
"--skip=verify_revision_available" | ||
]; |
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.
]; | |
] ++ lib.optionals stdenv.isDarwin [ | |
# Fail in the darwin sandbox with: | |
# Attempted to create a NULL object. | |
"--skip=website::not_crawl_blacklist" | |
"--skip=website::test_crawl_budget" | |
"--skip=website::test_crawl_subscription" | |
"--skip=website::test_link_duplicates" | |
]; |
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.
Why did you add more tests than the one listed in my comment? Were they failing too?
Also, I think that it is relevant to mention that it is a sandbox limitation. You have only written the error message.
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.
Yes, they were failing. I added everything until the package built.
I thought it was obvious those were fails in the darwin sandbox because of the ++ lib.optionals stdenv.isDarwin
Sandbox limitation: Attempted to create a NULL object
would probably be a better message, right? just like io_uring which is available outside the sandbox
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.
Sandbox limitation: Attempted to create a NULL object
This would be clearer indeed.
It is not enough to add The weird thing is that even ofborg doesn't have the sandbox enabled since it built the package just fine: |
No, ofborg does not enable the darwin sandbow indeed. So many things would be broken otherwise... |
|
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, thanks
Resolves #388120
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.