coreos-assembler icon indicating copy to clipboard operation
coreos-assembler copied to clipboard

kola: Add `isolation=readonly|dynamicuser`

Open cgwalters opened this issue 3 years ago • 3 comments

EDIT: I apologize for the tone in this PR that started from me; it was absolutely unnecessary. Again, I apologize.


Part of my battle against duplicative comments in our kola tests. We have a few tests that write a comment like this:

 # - exclusive: false
 #   - This test doesn't make meaningful changes to the system and
 #     should be able to be combined with other tests.

Of course, this comment is already redundant because the meaning of the exclusive tag is defined canonically in coreos-assembler (here) and copy-pasting that into every test that uses it would be pointlessly verbose.

But - we can do one better. Instead of having a test flag which is mainly an "I promise not to mutate the system in a way which could interfere with other tests", let's add a field that enforces this. Then it doesn't need to be commented; we have a variety of tests which are just "system inspection" (e.g. query rpmdb) and run just fine with DynamicUser=yes and hence cannot affect the system, and hence are inherently isolated from other concurrent tests.


cgwalters avatar Aug 31 '22 20:08 cgwalters

Depends https://github.com/coreos/fedora-coreos-config/pull/1948

cgwalters avatar Aug 31 '22 20:08 cgwalters

This is great! Edit: Turns out it's not as simple as that.

travier avatar Sep 01 '22 09:09 travier

@cgwalters: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-merge-robot avatar Sep 08 '22 00:09 openshift-merge-robot

Closing this. I don't think it's a priority right now. If we want to implement the suggested changes from the discussion let's start with an issue explaining the proposal.

dustymabe avatar Apr 18 '24 18:04 dustymabe