All of lore.kernel.org
 help / color / mirror / Atom feed
* Use of YAML for defining complex tests (or Python...?)
@ 2015-05-05 11:35 John Spray
  2015-05-05 12:15 ` Loic Dachary
  0 siblings, 1 reply; 2+ messages in thread
From: John Spray @ 2015-05-05 11:35 UTC (permalink / raw)
  To: Samuel Just, Zack Cerza; +Cc: ceph-devel@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Use of YAML for defining complex tests (or Python...?)
  2015-05-05 11:35 Use of YAML for defining complex tests (or Python...?) John Spray
@ 2015-05-05 12:15 ` Loic Dachary
  0 siblings, 0 replies; 2+ messages in thread
From: Loic Dachary @ 2015-05-05 12:15 UTC (permalink / raw)
  To: John Spray, Samuel Just, Zack Cerza; +Cc: ceph-devel@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]



On 05/05/2015 13:35, John Spray wrote:> 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)?

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

> 
> 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
> -- 
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-05 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 11:35 Use of YAML for defining complex tests (or Python...?) John Spray
2015-05-05 12:15 ` Loic Dachary

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.