Skip to content

Commit 685cf3e

Browse files
committed
sysbench: fix PostgreSQL git clone network connectivity issues
Add retry mechanism and shallow clone to handle intermittent network failures during PostgreSQL repository cloning. The git clone was failing with "RPC failed; curl 18 Transferred a partial file" errors due to the large repository size and network timeouts. Changes: - Add depth: 1 for shallow clone to reduce transfer size - Add retry logic (3 attempts with 5-second delays) - Add proper success condition checking This resolves sysbench workflow failures during PostgreSQL setup. Generated-by: Claude AI Signed-off-by: Daniel Gomez <[email protected]>
1 parent e46620a commit 685cf3e

File tree

1 file changed

+5
-0
lines changed
  • playbooks/roles/sysbench/tasks/postgresql-native

1 file changed

+5
-0
lines changed

playbooks/roles/sysbench/tasks/postgresql-native/main.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@
3232
dest: "{{ sysbench_postgresql_repo_path }}"
3333
update: true
3434
version: "{{ _sysbench_postgresql_ref.stdout }}"
35+
depth: 1
3536
environment:
3637
GIT_SSL_NO_VERIFY: "true"
38+
retries: 3
39+
delay: 5
40+
register: git_result
41+
until: git_result is succeeded
3742

3843
- name: Get number of processing units available
3944
tags: ["always"]

0 commit comments

Comments
 (0)