Skip to content

Commit f1ffdff

Browse files
committed
run schema-registry-start as root
1 parent 8d9e6c8 commit f1ffdff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci_build_test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
needs:
3636
- workflow_approval
3737
steps:
38-
- name: Checkout
38+
- name: Checkout
3939
uses: actions/checkout@v3
4040
with:
4141
ref: ${{github.event.pull_request.head.sha}}
@@ -245,7 +245,7 @@ jobs:
245245
cd /tmp && wget https://packages.confluent.io/archive/${{ matrix.confluent_major_version }}/confluent-community-${{ matrix.confluent_package_version }}.tar.gz
246246
sudo tar xzf confluent-community-${{ matrix.confluent_package_version }}.tar.gz
247247
cd confluent-${{ matrix.confluent_package_version }}
248-
bin/schema-registry-start ./etc/schema-registry/schema-registry.properties &
248+
sudo bin/schema-registry-start ./etc/schema-registry/schema-registry.properties &
249249
250250
- name: Register the protobuf schema
251251
run: |
@@ -377,7 +377,7 @@ jobs:
377377
export PYTHONWARNINGS="ignore:Unverified HTTPS request"
378378
echo "Running functional tests....."
379379
python -m pytest --log-level=INFO
380-
380+
381381
- uses: actions/upload-artifact@v4
382382
if: failure()
383383
with:

test/lib/eventproducer_connector_upgrade.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def check_events_from_topic(target):
3535
class_name = "kafka.tools.GetOffsetShell"
3636
else:
3737
class_name = "org.apache.kafka.tools.GetOffsetShell"
38-
output1 = subprocess.getoutput(f" echo $(/usr/local/kafka/bin/kafka-run-class.sh ${class_name} --broker-list 'localhost:9092' --topic kafka_connect_upgrade --time -1 | grep -e ':[[:digit:]]*:' | awk -F ':' '{sum += $3} END {print sum}')")
39-
output2 = subprocess.getoutput(f"echo $(/usr/local/kafka/bin/kafka-run-class.sh ${class_name} --broker-list 'localhost:9092' --topic kafka_connect_upgrade --time -2 | grep -e ':[[:digit:]]*:' | awk -F ':' '{sum += $3} END {print sum}')")
38+
output1 = subprocess.getoutput(f"echo $(/usr/local/kafka/bin/kafka-run-class.sh {class_name} --broker-list 'localhost:9092' --topic kafka_connect_upgrade --time -1 | grep -e ':[[:digit:]]*:' | awk -F ':' '{sum += $3} END {print sum}')")
39+
output2 = subprocess.getoutput(f"echo $(/usr/local/kafka/bin/kafka-run-class.sh {class_name} --broker-list 'localhost:9092' --topic kafka_connect_upgrade --time -2 | grep -e ':[[:digit:]]*:' | awk -F ':' '{sum += $3} END {print sum}')")
4040
time.sleep(5)
4141
if (int(output1)-int(output2))==target:
4242
logger.info("Events in the topic :" + str(int(output1)-int(output2)))

0 commit comments

Comments
 (0)