Repository navigation
Description
Break up monoliths
For instance, image-metadata-check can fail for a number of reasons, some of them happening frequently, others less so.
Splitting this testcase up will make many things easier, such as diagnosing failures, generating meaningful statistics, etc.
Make testcases unambiguous
The meaning of standard-images-check depends on the context, namely, the version of the scope SCS-compatible IaaS that it is used in. Most other testcases, however, are (coincidentally) not context-dependent. Still, in any case the compliance monitor will store a test result for each combination of scope version and testcase, which means unnecessary duplication for those unambiguous testcases.
Making testcases unambiguous will make speaking about the results less cumbersome, as well as navigating the compliance monitor UI. When we also break up the monolithic testcases such as standard-images-check, we may not even need to introduce versions (standard-images-check-1 for scope version 4, standard-images-check-2 for scope version 5).
Concrete example and further steps
I have created a very good draft of the new yaml file for SCS-compatible IaaS here: https://github.com/SovereignCloudStack/standards/blob/feat/rework_testcases/Tests/scs-compatible-iaas.yaml
Note that this file no longer describes how the testcases can be performed (e.g., what scripts to run, etc.). This is already in line with #942.
In the end, we need the following:
- document new format in scs-0003
- adapt scs-compatible-kaas.yaml to new format
- change tooling to work with new format, not least the database schema of compliance monitor
HOWEVER, the main goal of this issue is to discuss and organize the work on a high level, so maybe it's more like an epic.
It would be good to decompose the overall task in way that isolates breaking changes well. For instance, let's try to make the Pull Request that revamps the compliance monitor's database scheme as small as possible. The issue #942 is an example where I factored a task out of this whole epic, and other issues should follow.
Background
quoting from something that I had prepared for SIG Std/Cert, but that wasn't discussed for lack of time:
- testcases?
- for the sake of certification, we can decompose a standard into a set of testcases
- each testcase can be reported on individually
- some testcases are required for certification (requirements), others aren't (recommendations)
- problem: ambiguity and duplication
- we treat each new version of a certificate scope as a separate testcase namespace, so a testcase
standard-images-checkcan and does mean different things for v4 vs. v5.1 of SCS-compatible IaaS- so
standard-images-check(without the context v4 or v5.1) is ambiguous, which makes navigating the compliance monitor tedious (as well as everyday conversations)
- so
- however, most testcases stay the same because v5.1 mainly extends v4, so many standards are unchanged
- unfortunately, the test result is recorded in a duplicated manner: the same result is recorded once for v4 of the scope and once for v5.1 -- this makes verifying FAIL results laborious
- we treat each new version of a certificate scope as a separate testcase namespace, so a testcase
- proposal:
- abandon the namespace behavior and make testcase names unique
- introducing, e.g., 'standard-images-check-v4' and 'standard-images-check-v5'
- abandon the namespace behavior and make testcase names unique
- problem: monolithic testcases
- for historic reasons, we usually have just one single testcase (monolith) for a standard that encompasses all its requirements
- problem: no recommendations visible
- problem: it's all or nothing, even though 90 % of the standard could be satisfied
- it could be cool to see WHICH standard flavors or images are missing, and we could in theory make each one a testcase of its own
- problem: when the standard changes from one version to the next, so does the testcase
- if each standard flavor had its own testcase, then no versioning would be required: only adding or removing testcases
- ideal granularity?
- so fine that we minimize the need for versioning
- if we anticipate that some assertion could be changed from requirement to recommendation, then this might be a candidate for a separate testcase
- so coarse that the number of testcases is not overwhelming
- "all SCS flavors have at least the amount of vCPUs that is advertised"
- "all SCS flavors have at least the amount of RAM that is advertised"
- "all SCS flavors have at least the amount of disk that is advertised"
- we could partition the SCS flavors, for instance names of even length vs. odd length, doubling the number of testcases
- so fine that we minimize the need for versioning
- proposal:
- make testcases more granular, but avoid the rabbithole of finding just the right granularity
- for instance: resist the temptation to predict the future too much; a bit of versioning is probably okay
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
mbuechse commentedon Jun 5, 2025
The ambiguity example that I named here,
standard-images-check, is indeed the only case of an ambiguous testcase! Therefore I suggest that we use this one as a pilot to untie the Gordian knot:entropy-check, which has been half-decomposed for a long time now).The first step is still a bit tough, because scs-0104-v1 only defines the format of a yaml file, so the standard is always used in conjunction with such a yaml file, and this is impractical. Therefore I suggest changing the standard in such a way that the YAML file more or less becomes an implementation detail of the test, mainly specifying official image sources.
On second thought, scs-0104-v1 is causing so much trouble for so little gain that I strongly suggest we stop enforcing it for existing versions of the certification scope, and we replace it with a new version for future versions.
mbuechse commentedon Jan 21, 2026
FYI this is going to become much easier after #1053, because the ambiguous testcase (standard-images-check) will be gone.
Re-engineer testcases and results handling
Re-engineer testcases and results handling (#1061)