Skip to contentSkip to conversation

Use of YAML for defining complex tests (or Python...?)

DISCUSSION John Spray 2 participants 2 messages May 5, 2015

lore
Share & tools
lore

John Spray

author
#0 lore raw

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

#1 lore raw

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/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)?

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,
John

Signature · 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