Skip to content

Commit

Permalink
feature(unit_test): drop unnecessary experimental_features
Browse files Browse the repository at this point in the history
in a previous change, all experimental features which were previous
enabled by '--experimental' were re-enabled. this brings the test
to the state before scylla dropped the 'experimental' option. but
quite a few tests either does not exercise any of the experimental
or just need a certain one of them. so, in this change, we either
drop the full set of default-enabled experimental features or
just enable the one to be tested.

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored and fruch committed Sep 3, 2023
1 parent 0098722 commit 6c353ad
Show file tree
Hide file tree
Showing 24 changed files with 10 additions and 49 deletions.
3 changes: 0 additions & 3 deletions configurations/raft/enable_raft_experimental.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
append_scylla_yaml: |
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
- raft
4 changes: 0 additions & 4 deletions defaults/test_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ manager_scylla_backend_version: '2022'

scylla_repo_loader: 'https://s3.amazonaws.com/downloads.scylladb.com/rpm/centos/scylla-4.6.repo'

experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
round_robin: false

append_scylla_args: '--blocked-reactor-notify-ms 25 --abort-on-lsa-bad-alloc 1 --abort-on-seastar-bad-alloc --abort-on-internal-error 1 --abort-on-ebadf 1 --enable-sstable-key-validation 1'
Expand Down
4 changes: 0 additions & 4 deletions internal_test_data/complex_test_case_with_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ nemesis_interval: 5
user_prefix: 'longevity-50gb-4d-not-jenkins'
space_node_threshold: 644245094
ip_ssh_connections: 'private'
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
instance_provision: 'on_demand'


Expand Down
1 change: 0 additions & 1 deletion sdcm/fill_db_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ class FillDatabaseData(ClusterTester):
[[-4]]
],
'min_version': '1.7',
'skip_condition': "'experimental_features' in self.params",
'max_version': '',
'skip': ''},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ alternator_secret_access_key: 'password'
# Enable TTL feature in Scylla.
# Set 'alternator_ttl_period_in_seconds' to 1 hour for the TTL scan interval.
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
append_scylla_yaml: |
alternator_ttl_period_in_seconds: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ alternator_secret_access_key: 'password'
# Set 'alternator_ttl_period_in_seconds' to 1 hour for the TTL scan interval.
# Set 'gc_grace_seconds' for 8 minutes.
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
append_scylla_yaml: |
alternator_ttl_period_in_seconds: 240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ alternator_secret_access_key: 'password'
# TTL: 16 different ones. The longer is 10 days, the second longer is 2.5 hours
# GC Grace: 8 minutes
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
append_scylla_yaml: |
alternator_ttl_period_in_seconds: 240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ alternator_secret_access_key: 'password'
# (YCSB TTL parameter is set to 10 minutes)
# Set 'gc_grace_seconds' for 8 minutes,
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
append_scylla_yaml: |
alternator_ttl_period_in_seconds: 240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ alternator_secret_access_key: 'password'
# Set 'alternator_ttl_period_in_seconds' to 1 hour for the TTL scan interval.
# gc_grace_seconds: 2 hours.
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
append_scylla_yaml: |
alternator_ttl_period_in_seconds: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ alternator_secret_access_key: 'password'
# TTL (YCSB parameter): 8 minutes.
# gc_grace_seconds: 20 minutes
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
append_scylla_yaml: |
alternator_ttl_period_in_seconds: 600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ alternator_secret_access_key: 'password'
# Enable TTL feature in Scylla.
# Set 'alternator_ttl_period_in_seconds' to 7 minutes for the TTL scan interval.
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options
append_scylla_yaml: |
alternator_ttl_period_in_seconds: 420
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ user_prefix: 'alternator-streams-4h'
space_node_threshold: 64424
experimental_features:
- alternator-streams
- alternator-ttl
- keyspace-storage-options

alternator_port: 8080
dynamodb_primarykey_type: HASH
Expand Down
2 changes: 0 additions & 2 deletions test-cases/longevity/longevity-cdc-100gb-4h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ user_prefix: 'longevity-cdc-100gb-4h'
space_node_threshold: 64424

server_encrypt: true

experimental_features: []
1 change: 0 additions & 1 deletion test-cases/scale/scale-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ instance_type_db: 'm5d.large'

user_prefix: 'cluster-scale-test'
ssh_transport: 'libssh2'
experimental_features: []
use_legacy_cluster_init: true

nemesis_interval: 5
Expand Down
10 changes: 1 addition & 9 deletions unit_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,8 @@ def fixture_docker_scylla(request: pytest.FixtureRequest):
os.chdir(curr_dir)

ssl_dir = (Path(__file__).parent.parent / 'data_dir' / 'ssl_conf').absolute()
# experimental features previous enabled by '--experimental' umbrella flag, which
# was deprecated and removed, so let's specify them explictly. 'udf' should be
# enabled separately along with 'enable_user_defined_functions'
experimental_features = ['alternator-streams',
'alternator-ttl',
'keyspace-storage-options']
experimental_flags = ' '.join(f'--experimental-features {feature}'
for feature in experimental_features)
scylla = RemoteDocker(LocalNode("scylla", cluster), image_name=docker_version,
command_line=f"--smp 1 {experimental_flags} {alternator_flags}",
command_line=f"--smp 1 {alternator_flags}",
extra_docker_opts=(f'-p 8000 -p {BaseNode.CQL_PORT} --cpus="1" -v {entryfile_path}:/entry.sh'
f' -v {ssl_dir}:/etc/scylla/ssl_conf'
' --entrypoint /entry.sh'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]
}
],
"experimental_features": ["alternator-streams", "alternator-ttl", "keyspace-storage-options"],
"experimental_features": [],
"prometheus_address": "0.0.0.0",
"alternator_enforce_authorization": false,
"auto_bootstrap": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]
}
],
"experimental_features": ["alternator-streams", "alternator-ttl", "keyspace-storage-options"],
"experimental_features": [],
"prometheus_address": "0.0.0.0",
"alternator_enforce_authorization": false,
"auto_bootstrap": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"broadcast_rpc_address": "__NODE_PRIVATE_ADDRESS__",
"experimental_features": ["alternator-streams", "alternator-ttl", "keyspace-storage-options"],
"experimental_features": [],
"prometheus_address": "0.0.0.0",
"alternator_enforce_authorization": false,
"auto_bootstrap": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]
}
],
"experimental_features": ["alternator-streams", "alternator-ttl", "keyspace-storage-options"],
"experimental_features": [],
"prometheus_address": "0.0.0.0",
"alternator_enforce_authorization": false,
"auto_bootstrap": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]
}
],
"experimental_features": ["alternator-streams", "alternator-ttl", "keyspace-storage-options"],
"experimental_features": [],
"prometheus_address": "0.0.0.0",
"alternator_enforce_authorization": false,
"auto_bootstrap": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"broadcast_rpc_address": "__NODE_IPV6_ADDRESS__",
"experimental_features": ["alternator-streams", "alternator-ttl", "keyspace-storage-options"],
"experimental_features": [],
"prometheus_address": "__NODE_IPV6_ADDRESS__",
"enable_ipv6_dns_lookup": true,
"alternator_enforce_authorization": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]
}
],
"experimental_features": ["alternator-streams", "alternator-ttl", "keyspace-storage-options"],
"experimental_features": [],
"prometheus_address": "0.0.0.0",
"alternator_enforce_authorization": false,
"auto_bootstrap": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]
}
],
"experimental_features": ["alternator-streams", "alternator-ttl", "keyspace-storage-options"],
"experimental_features": [],
"prometheus_address": "0.0.0.0",
"alternator_enforce_authorization": false,
"auto_bootstrap": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"keyfile": "/etc/scylla/ssl_conf/db.key",
"truststore": "/etc/scylla/ssl_conf/cadb.pem"
},
"experimental_features": ["alternator-streams", "alternator-ttl", "keyspace-storage-options"],
"experimental_features": [],
"saslauthd_socket_path": "/run/saslauthd/mux",
"prometheus_address": "0.0.0.0",
"alternator_enforce_authorization": false,
Expand Down

0 comments on commit 6c353ad

Please sign in to comment.