neoave / mrack

Multicloud use-case based multihost async provisioner for CIs and testing during development
Apache License 2.0
12 stars 14 forks source link

fix(beaker): suppress 10_avc_check restraint plugin #290

Closed pvoborni closed 5 months ago

pvoborni commented 6 months ago

fix(beaker): suppress 10_avc_check restraint plugin

It has happpened that this plugin sometimes ran after the dummy task, it reported fail that there was some AVC (probabaly from other thing) which then failed the job and thus mrack treated this as a provisioning failure.

This patch instructs restraint to not run this plugin and thus avoid this situation.

test: speed-up tests by mocking gethostbyaddr

Tests that are using mrack outputs are slowed down by socker.gethostbyaddr for adhoc IP addresses. This resolution mostly fails and the test is slow (multiple seconds timeout for single IP).

With this, all python tests are executed within 1.5s.

Notes The other patch was created so that I can run the tests locally effectively.

dav-pascual commented 5 months ago

LGTM