ck icon indicating copy to clipboard operation
ck copied to clipboard

[CK2/CM] Converting inputs to env variables for scripts

Open arjunsuresh opened this issue 2 years ago • 2 comments

As per convention we are mostly using only env variables to pass in information to any CM script and these variables are in capital letters. When the number of inputs are large this may not be convenient for users to type in such inputs as env variables. It makes sense to have a list of inputs per script which will be automatically converted to env variables with a predefined prefix. For example,

--output_dir -> CM_OUTPUT_DIR
--rerun -> CM_RERUN
--count -> CM_MLPERF_QUERY_COUNT

These mappings can be specified in the meta description of the script.

arjunsuresh avatar Sep 21 '22 08:09 arjunsuresh

That's a good idea, Arjun! I believe we can define such inputs in meta of a given script, right?

gfursin avatar Sep 21 '22 10:09 gfursin

yes Grigori. By adding in _cm.json we are documenting them also :)

arjunsuresh avatar Sep 21 '22 11:09 arjunsuresh