You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add solver input to make enabling test/benchmark stanzas automatic rather than just manual #2903
Currently in the solver we have flags and stanzas which have significant similarities.
Flags guard arbitrary additional dependencies and can either be specified up front manually or they can be variables that are solved for. Stanzas guard additional dependencies (for tests and benchmarks) and whether they are enabled or disabled is specified up front.
The task is to add an automatic mode to the stanzas case. That is, just like flags, whether a stanzas is enabled or not could be specified up front or it could be solved for.
This shouldn't be too hard since stanzas and flags are already treated very similarly in the solver, and flags already have this feature, so it should be a matter of some copying to add the feature to stanzas too.
The motivation is that some new code wants to run the solver in a way to enable testsuites and benchmarks if possible, but turn them off if not possible (and sometimes manually force enable/disable).
I'm confused. I thought that the purpose of #3092 was indeed to enable this, but that it was never the intention to enable tests/benchmarks completely automatically. Instead, I think the idea is to run the solver in such a way that it tries to find an install plan that would be compatible with enabling tests and benchmarks. If you then later decide to enable them (which still has to be done manually), then ideally, you'll just end up installing a few additional packages, rather than a completely different set of packages.
So the motivation, as far as I understood dcoutts, was to gain a certain amount of stability between enabling and disabling tests/benchs and the respective install plans, not to actually enable them fully automatically.
Activity
kosmikus commentedon Oct 29, 2015
This is probably relatively easy, so it might be interesting for someone who wants to gain more experience in hacking on the solver.
dcoutts commentedon Nov 2, 2015
See PR #2907
sebright commentedon Jan 29, 2016
Was this fixed in #3092?
ezyang commentedon Mar 31, 2016
@GrayJay I don't think so, at the very least you need to add a command line to toggle behavior.
sebright commentedon Jun 17, 2016
@dcoutts Do you know what else needs to be done for this issue?
kosmikus commentedon Jul 4, 2016
I'm confused. I thought that the purpose of #3092 was indeed to enable this, but that it was never the intention to enable tests/benchmarks completely automatically. Instead, I think the idea is to run the solver in such a way that it tries to find an install plan that would be compatible with enabling tests and benchmarks. If you then later decide to enable them (which still has to be done manually), then ideally, you'll just end up installing a few additional packages, rather than a completely different set of packages.
So the motivation, as far as I understood dcoutts, was to gain a certain amount of stability between enabling and disabling tests/benchs and the respective install plans, not to actually enable them fully automatically.
dcoutts commentedon Aug 31, 2016
Yes it was.