Skip to content

Commit

Permalink
fix create_sdk_pr.py (#33207)
Browse files Browse the repository at this point in the history
  • Loading branch information
adi88d committed Mar 4, 2024
1 parent d815653 commit a627428
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Tests/sdk_release/create_sdk_pr.py
Expand Up @@ -177,28 +177,6 @@ def main():
).get('id')

logging.info(f'SDK changelog workflow triggered successfully: {SDK_WORKFLOW_SUFFIX}{workflow_id}')
elapsed: float = 0
start = time.time()
while elapsed < TIMEOUT:
time.sleep(10)
response = requests.request('GET', url, headers=headers, verify=False)
if response.status_code != requests.codes.ok:
logging.error('Failed to retrieve SDK changelog workflow status')
logging.error(response.text)
sys.exit(1)

job_data = response.json().get('jobs', [])[0]
status = job_data.get('status')
if status == "completed":
logging.info("SDK changelog workflow completed")
break

logging.info(f'waiting to SDK changelog workflow to finish, current status: {status}')

elapsed = time.time() - start
if elapsed >= TIMEOUT:
logging.critical('Timeout reached while waiting for SDK changelog workflow to complete')
sys.exit(1)

# initialize timer
start = time.time()
Expand Down

0 comments on commit a627428

Please sign in to comment.