Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16989

Add environment variables to CircleCI config generation script

    XMLWordPrintableJSON

Details

    Description

      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:

      generate.sh -m \
        -e DTEST_REPO=git://github.com/adelapena/cassandra-dtest.git \
        -e DTEST_BRANCH=CASSANDRA-8272 
      

      Or we could set the test multiplexer for repeating a specific test with HIGHRES:

      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
      

      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.

      Attachments

        Issue Links

          Activity

            People

              adelapena Andres de la Peña
              adelapena Andres de la Peña
              Andres de la Peña
              Berenguer Blasi, Ekaterina Dimitrova, Ruslan Fomkin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m