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

test executables with timeout? #100431

Open
FRidh opened this issue Oct 13, 2020 · 3 comments
Open

test executables with timeout? #100431

FRidh opened this issue Oct 13, 2020 · 3 comments
Labels
0.kind: enhancement 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: qt/kde

Comments

@FRidh
Copy link
Member

FRidh commented Oct 13, 2020

Often we do not know whether an executable functions. We could run it in the checkPhase, but it needs to terminate as well.

Maybe we should test executables by running them briefly with timeout. This would especially be helpful to detect run-time issues with applications that use a search path for dependencies, such as Qt or Python. It could be implemented as a hook and feature an includeList or excludeList for specific executables in a derivation.

cc @doronbehar @ttuegel

@davidak
Copy link
Member

davidak commented Oct 13, 2020

We have a way to test packages, but it is not documented. See #73076 (comment)

See this example https://github.com/NixOS/nixpkgs/pull/75117/files

@FRidh
Copy link
Member Author

FRidh commented Oct 13, 2020

I am aware of that and this is not what I am describing here. I suggest having a hook where you can simply list executables to be tried.

@stale
Copy link

stale bot commented Jun 7, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: enhancement 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: qt/kde
Projects
None yet
Development

No branches or pull requests

2 participants