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

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

I have just added a {{generate.sh -d}} option to preview the new or modified 
tests that will be selected and run on CircleCI. It needs the base branch as an 
argument because we don't know what remotes the users will have in their local 
machines, and we probably don't want to mess with their repos by adding nor 
fetching remotes. Using [the same test 
commit|https://github.com/adelapena/cassandra/commit/6639cc5d1c39080da271ef8a5c8d8366a5b713af]
 that we have used in the examples above, the output looks like:
{code}
$ .circleci/generate.sh -d apache/trunk
New or modified tests compared to apache/trunk:
unit_tests_repeat:
  org.apache.cassandra.cql3.functions.NewTimeFctsTest
  org.apache.cassandra.cql3.functions.RenamedCastFctsTest
  org.apache.cassandra.cql3.functions.TimeFctsTest
utests_compression_repeat:
  org.apache.cassandra.cql3.functions.NewTimeFctsTest
  org.apache.cassandra.cql3.functions.RenamedCastFctsTest
  org.apache.cassandra.cql3.functions.TimeFctsTest
utests_system_keyspace_directory_repeat:
  org.apache.cassandra.cql3.functions.NewTimeFctsTest
  org.apache.cassandra.cql3.functions.RenamedCastFctsTest
  org.apache.cassandra.cql3.functions.TimeFctsTest
utests_long_repeat:
  org.apache.cassandra.db.commitlog.BatchCommitLogStressTest
  org.apache.cassandra.db.commitlog.GroupCommitLogStressTest
  org.apache.cassandra.db.commitlog.NewBatchCommitLogStressTest
  org.apache.cassandra.db.commitlog.PeriodicCommitLogStressTest
  org.apache.cassandra.db.commitlog.RenamedCommitLogStressTest
utests_stress_repeat:
  org.apache.cassandra.stress.generate.RenamedDistributionSequenceTest
  org.apache.cassandra.stress.settings.NewOptionReplicationTest
  org.apache.cassandra.stress.settings.OptionReplicationTest
utests_fqltool_repeat:
  org.apache.cassandra.fqltool.FQLReplayTest
  org.apache.cassandra.fqltool.NewFQLReplayTest
  org.apache.cassandra.fqltool.RenamedFQLCompareTest
simulator_dtests_repeat:
  org.apache.cassandra.simulator.test.NewShortPaxosSimulationTest
  org.apache.cassandra.simulator.test.RenamedMonitorMethodTransformerTest
  org.apache.cassandra.simulator.test.TrivialSimulationTest
jvm_dtests_repeat:
  org.apache.cassandra.distributed.test.NewBooleanTest
  org.apache.cassandra.distributed.test.QueriesTableTest
  org.apache.cassandra.distributed.test.RenamedGroupByTest
jvm_dtests_vnode_repeat:
  org.apache.cassandra.distributed.test.NewBooleanTest
  org.apache.cassandra.distributed.test.QueriesTableTest
  org.apache.cassandra.distributed.test.RenamedGroupByTest
jvm_upgrade_dtests_repeat:
  org.apache.cassandra.distributed.upgrade.MixedModeMessageForwardTest
  org.apache.cassandra.distributed.upgrade.NewMixedModeAvailabilityV3XOneAllTest
  org.apache.cassandra.distributed.upgrade.RenamedMixedModeWritetimeOrTTLTest
{code}
Note that the actual diff is done on CircleCI, and this is only a preview mode 
for local use. The reason for doing the diff on Circle is that using the 
{{generate.sh}} script is optional, and users can directly use the provided 
{{config.yml}} files.

> CircleCI: Automatically detect and repeat new or modified JUnit tests
> ---------------------------------------------------------------------
>
>                 Key: CASSANDRA-17939
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17939
>             Project: Cassandra
>          Issue Type: Task
>          Components: CI
>            Reporter: Andres de la Peña
>            Priority: Normal
>             Fix For: 3.0.x, 3.11.x, 4.0.x, 4.x
>
>
> The purpose of this ticket is adding a new CircleCI job that automatically 
> detects new or modified test classes and runs them repeatedly. That way we 
> wouldn't need to manually specify those tests with {{.circleci/generate.sh}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to