Skip to content

Commit 94b7364

Browse files
authored
Fix semaphore for producer ducktape tests + clean up files that should've been removed (#2081)
* update * use warning for producer validate * remove unnecessary assert
1 parent 6331a1a commit 94b7364

File tree

6 files changed

+22
-734
lines changed

6 files changed

+22
-734
lines changed

.semaphore/semaphore.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ blocks:
287287
- name: ARCH
288288
value: x64
289289
- name: BENCHMARK_BOUNDS_CONFIG
290-
value: tests/ducktape/benchmark_bounds.json
290+
value: tests/ducktape/producer_benchmark_bounds.json
291291
- name: BENCHMARK_ENVIRONMENT
292292
value: ci
293293
prologue:
@@ -299,80 +299,80 @@ blocks:
299299
# Setup Python environment
300300
- sem-version python 3.9
301301
- python3 -m venv _venv && source _venv/bin/activate
302-
302+
303303
# Install ducktape framework and additional dependencies
304304
- pip install ducktape psutil
305-
305+
306306
# Install existing test requirements
307307
- pip install -r requirements/requirements-tests-install.txt
308-
308+
309309
# Build and install confluent-kafka from source
310310
- lib_dir=dest/runtimes/$OS_NAME-$ARCH/native
311311
- tools/wheels/install-librdkafka.sh "${LIBRDKAFKA_VERSION#v}" dest
312312
- export CFLAGS="$CFLAGS -I${PWD}/dest/build/native/include"
313313
- export LDFLAGS="$LDFLAGS -L${PWD}/${lib_dir}"
314314
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/$lib_dir"
315315
- python3 -m pip install -e .
316-
316+
317317
# Store project root for reliable navigation
318318
- PROJECT_ROOT="${PWD}"
319-
319+
320320
# Start Kafka cluster and Schema Registry using dedicated ducktape compose file (KRaft mode)
321321
- cd "${PROJECT_ROOT}/tests/docker"
322322
- docker-compose -f docker-compose.ducktape.yml up -d kafka schema-registry
323-
323+
324324
# Debug: Check container status and logs
325325
- echo "=== Container Status ==="
326326
- docker-compose -f docker-compose.ducktape.yml ps
327327
- echo "=== Kafka Logs ==="
328328
- docker-compose -f docker-compose.ducktape.yml logs kafka | tail -50
329-
329+
330330
# Wait for Kafka to be ready (using PLAINTEXT listener for external access)
331331
- |
332332
timeout 1800 bash -c '
333333
counter=0
334-
until docker-compose -f docker-compose.ducktape.yml exec -T kafka kafka-topics --bootstrap-server localhost:9092 --list >/dev/null 2>&1; do
334+
until docker-compose -f docker-compose.ducktape.yml exec -T kafka kafka-topics --bootstrap-server localhost:9092 --list >/dev/null 2>&1; do
335335
echo "Waiting for Kafka... (attempt $((counter+1)))"
336-
336+
337337
# Show logs every 4th attempt (every 20 seconds)
338338
if [ $((counter % 4)) -eq 0 ] && [ $counter -gt 0 ]; then
339339
echo "=== Recent Kafka Logs ==="
340340
docker-compose -f docker-compose.ducktape.yml logs --tail=10 kafka
341341
echo "=== Container Status ==="
342342
docker-compose -f docker-compose.ducktape.yml ps kafka
343343
fi
344-
344+
345345
counter=$((counter+1))
346346
sleep 5
347347
done
348348
'
349349
- echo "Kafka cluster is ready!"
350-
350+
351351
# Wait for Schema Registry to be ready
352352
- echo "=== Waiting for Schema Registry ==="
353353
- |
354354
timeout 300 bash -c '
355355
counter=0
356-
until curl -f http://localhost:8081/subjects >/dev/null 2>&1; do
356+
until curl -f http://localhost:8081/subjects >/dev/null 2>&1; do
357357
echo "Waiting for Schema Registry... (attempt $((counter+1)))"
358-
358+
359359
# Show logs every 3rd attempt (every 15 seconds)
360360
if [ $((counter % 3)) -eq 0 ] && [ $counter -gt 0 ]; then
361361
echo "=== Recent Schema Registry Logs ==="
362362
docker-compose -f docker-compose.ducktape.yml logs --tail=10 schema-registry
363363
echo "=== Schema Registry Container Status ==="
364364
docker-compose -f docker-compose.ducktape.yml ps schema-registry
365365
fi
366-
366+
367367
counter=$((counter+1))
368368
sleep 5
369369
done
370370
'
371371
- echo "Schema Registry is ready!"
372-
372+
373373
# Run standard ducktape tests with CI bounds
374374
- cd "${PROJECT_ROOT}" && PYTHONPATH="${PROJECT_ROOT}" python tests/ducktape/run_ducktape_test.py
375-
375+
376376
# Cleanup
377377
- cd "${PROJECT_ROOT}/tests/docker" && docker-compose -f docker-compose.ducktape.yml down -v || true
378378
- name: "Packaging"

tests/ducktape/benchmark_bounds.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)