[ 
https://issues.apache.org/jira/browse/CASSANDRA-16989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17419377#comment-17419377
 ] 

Andres de la Peña commented on CASSANDRA-16989:
-----------------------------------------------

[This tiny PR|https://github.com/apache/cassandra/pull/1217] adds the {{-e}} 
option described above to the generation script.

Note that the {{-e}} option is only allowed if any of the {{-l}}/{{-m}}/{{-h}} 
flags added by CASSANDRA-16871 are used. I understand that the usage of the 
script without flags is reserved for generating the default config that will be 
committed to the main branches, and in that case we want {{config-2_1.yml}} to 
be consistent with the four generated {{config.yml}} files.

> Add environment variables to CircleCI config generation script
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-16989
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16989
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Andres de la Peña
>            Assignee: Andres de la Peña
>            Priority: Normal
>
> The purpose of this ticket is adding arguments to the CircleCI config 
> generation script allowing to set the values specific environment variables 
> such as {{DTEST_REPO}} or {{DTEST_BRANCH}} in the generated 
> {{.circleci/config.yml}} file. For example, we could generate a CircleCI 
> config file with MIDRES specifying a dtest repo and branch by running:
> {code}
> generate.sh -m \
>   -e DTEST_REPO=git://github.com/adelapena/cassandra-dtest.git \
>   -e DTEST_BRANCH=CASSANDRA-8272 
> {code}
> Or we could set the test multiplexer for repeating a specific test with 
> HIGHRES:
> {code}
> generate.sh -h \
>   -e REPEATED_UTEST_TARGET=testsome \
>   -e REPEATED_UTEST_CLASS=org.apache.cassandra.cql3.ViewTest \
>   -e REPEATED_UTEST_METHODS=testCompoundPartitionKey,testStaticTable \
>   -e REPEATED_UTEST_COUNT=100
> {code}
> This can be useful on its own so we don't have to manually edit the 
> {{config-2_1.yml}}/{{config.yml}}, and it can also be useful for automation 
> scripts manipulating these files.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to