Next big step for SPLENT
Where SPLENT could go next. These are three proposals, not mutually exclusive, and none of the commands they sketch exists yet.
Where SPLENT stands
| Area | What exists |
|---|---|
| Variability | Modular features, a UVL model per line, pre-flight checks over the model, the contracts and the infrastructure |
| Extension | Refinement between features, with service and template overrides, model extension and hook replacement |
| Lifecycle | Install, migrate, roll back and uninstall a feature, and deploy in one command |
| Delivery | Production images with health checks, CI that checks each change against the line, upgrades as pull requests, and deploying as a feature of the line |
| Configuration | The configurator, which validates a selection and emits the commands that build it |
| Analysis | spl:configurations, every valid selection of a line, and feature:impact, what a feature depends on and what depends on it in one product |
Option A. Testing every configuration
product:validate proves a configuration is satisfiable, not that it works. A product:test-matrix command would derive a sample of the line’s valid configurations and run their tests.
# Features Unit Integ Func
------------------------------------------------------------------
1 notes, landing, cache pass pass pass
2 notes, landing, mailer, reports, digest pass FAIL skip
└─ integration: test_digest_schedule FAILED (cache required)
Root cause: splent_feature_digest requires cache at runtime (not declared in UVL).
It finds what no model analysis finds, such as a dependency the UVL does not capture, or a conflict only some combinations show.
splent product:test-matrix [--strategy pairwise|all|random] [--max N] [--level unit|integration|functional]
- Sample configurations from the UVL with Flamapy, pairwise by default.
- Derive each one in isolation and run
feature:testat the chosen level. - Collect the results and find patterns, such as every configuration with X and without Y failing.
- Diff a failing configuration against passing ones to isolate the feature responsible.
The pieces exist (Flamapy, spl:configurations, product:derive, feature:test), so what remains is orchestration, about 850 lines and one command.
Option B. The impact of a release across products
Before a feature is released, one view of every product it would break, from their pre-flight checks and tests.
Impact analysis for splent_feature_notes (v1.2.7 to v1.2.8)
Product UVL Contracts Tests Verdict
----------------------------------------------------------
my_product pass pass pass safe
research_portal pass pass FAIL broken
It matters once several products share features, and it follows from A.
Option C. Deriving from the browser
A Derive button in the configurator that builds the product on a server, or hands over its bundle and image, for people who do not use a terminal. It is the most visible option and the least urgent.
Recommendation
Option A first. The pieces exist, nobody else has it, it finds real bugs, it is publishable, and developers would run it whenever they add a feature or change a contract. Then B, and C when the audience grows beyond developers.