Use of YAML for defining complex tests (or Python...?)
Hi,
I noted with interest the rather complex .yaml file in this PR:
https://github.com/ceph/ceph-qa-suite/pull/428/files
...with the accompanying addition of loop constructs in this PR:
https://github.com/ceph/teuthology/pull/481
Teuthology YAML files appear to be at risk of becoming a fully fledged scripting language. Why not write python scripts instead, for the more complex tests (e.g. anything that would need the full_sequential or loop constructs)?
On the cephfs side, we hit the point where test procedures were complex enough to need their own mini-framework inside tasks/cephfs -- a similar structure could be useful for people working on other subsystems as well.
Cheers,
John
On 05/05/2015 13:35, John Spray wrote:> Hi,
Quoted 8 lines
I noted with interest the rather complex .yaml file in this PR:
https://github.com/ceph/ceph-qa-suite/pull/428/files...with the accompanying addition of loop constructs in this PR:
https://github.com/ceph/teuthology/pull/481Teuthology YAML files appear to be at risk of becoming a fully fledged scripting language. Why not write python scripts instead, for the more complex tests (e.g. anything that would need the
full_sequentialor loop constructs)?
I guess we should be careful to not abuse YAML where scripts would be more appropriate. I tend to agree with you: singleton-nomsgr/all/11429.yaml should be a script.
My 2cts
Quoted 9 lines
On the cephfs side, we hit the point where test procedures were complex enough to need their own mini-framework inside tasks/cephfs -- a similar structure could be useful for people working on other subsystems as well.
Cheers,
JohnSignature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre