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

Feature Request: run autopkgtest tests post-build #13

Open
hlieberman opened this issue Jul 4, 2020 · 3 comments
Open

Feature Request: run autopkgtest tests post-build #13

hlieberman opened this issue Jul 4, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@hlieberman
Copy link
Contributor

In the same vein as #9, it would be super awesome to run the autopkgtest suite after the build. (Probably using the autopkgtest-virt-null backend, since we're already inside an ephemeral container, so adding another layer of containerization is probably not worth it).

@ximion ximion added the enhancement New feature or request label Jul 5, 2020
@ximion
Copy link
Member

ximion commented Jul 5, 2020

This is definitely on the roadmap and a thing I wanted to do for quite a while :-)
It hasn't been a high priority yet though (and I haven't looked into what is required to properly support autopkgtest - when it's added, we would highly likely want to integrate this with Laniakea and have the tests run regularly on e.g. PureOS packages via debspawn. But even without that, being able to run it locally for regular packaging would be very neat).

@hlieberman
Copy link
Contributor Author

hlieberman commented Jul 6, 2020 via email

@ximion
Copy link
Member

ximion commented Aug 8, 2020

Because it's using
autopkgtest-virt-null, autopkgtest makes an assumption that the tests have
VM level isolation, rather than the container level isolation that they
actually do. This means some tests will either flake, fail, or potentially
cause undefined behavior that could affect the host.

That pretty much was the reason why I didn't touch this yet. But I think it may be possible to detect whether a certain test requires VM-level isolation and then skip it when run inside of the container (if that's not possible, I think such a feature would be useful in autopkgtest).

eichin added a commit to eichin/thok-kphotoalbum-grep that referenced this issue Sep 14, 2024
Since I still use debspawn, I can't use autopkgtest, see lkhq/debspawn#13
so instead, just add cram3 &c to the build-deps and use pybuild --test-custom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants