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

cassandane: infer needs from wants/magic #5037

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

elliefm
Copy link
Contributor

@elliefm elliefm commented Sep 16, 2024

No description provided.

This should let us reduce a lot of test setup clutter!
one problem is that the missing features test happens very early!
if we get wants from :want_foo then those have already been processed

but if we get wants from ordinary magic (e.g. :Replication), that
magic doesn't get invoked until _create_instances() is run, and at
that point it's too late to start adding stuff to the needs hash,
the skip_missing_features filter has already run!

can we _run_magic() earlier, perhaps?

the alternative is needing to add a bunch of :want_replica and such
to tests that previously implicitly got that by having "replication"
in their name or ":Replication" in their attributes.
this allows the want->needs mappings to work, but all the "magic attribute
sets config..." logging now happens at cassandane startup instead of when
the test actually runs, which is pretty annoying

XXX for some reason this makes a lot of tests fail with "mailbox already
exists" when setting up the cassandane user. have no idea why!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant