-
Notifications
You must be signed in to change notification settings - Fork 160
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
tests: Lift exclusive: false
on tests that actually mutate system
#1948
Conversation
I'm planning a PR to coreos-assembler to inject `ProtectSystem=strict` on tests that say `exclusive: false` to *actively enforce* their read only nature. These tests do mutate the system, and are hence not exclusive.
|
I'd say the tag means what we choose it to mean.
Ah...wow really? OK yes I see that documented, but AFAICS it hasn't been used? It seems very fragile to me to try to do that, because it requires global knowledge. Let's take the The I think my core argument here is: it's not worth the potential for obscure bugs with the current definition of |
What I described above is the meaning behind it today.
No it's not used today, but that's mostly because we haven't combed through our tests more. We still have an action item for that: #1229 Also I don't really know what you mean by global knowledge. All you need to know is if two tests conflict, which you can easily find out by running the test suite. Then test A names test B as a conflict (or vice versa, or both) and never have the problem again.
We haven't had major problems with it. |
Kicking tests out of |
Wasn't the idea behind those non exclusive test to be able to split to single ro test into multiple ones without a significant cost? |
OK instead of trying to change the meaning of I'll do a separate PR to switch over tests to use |
That was a huge motivator. We had a large file that had 20+ tests in it and we wanted to separate those into their own test files (with rationale and reasoning and git history and all) without requiring to run on 20+ VMs.
I'm not sure which side you are arguing for here. Are you arguing for a new flag that says "Yes, I'm not exclusive, but I need some RW access?" |
I see good arguments on both sides 🙂 |
I'm planning a PR to coreos-assembler to inject
ProtectSystem=strict
on tests that sayexclusive: false
to actively enforce their read only nature.
These tests do mutate the system, and are hence not exclusive.