Skip to content

Retry LK CLI installs in CI - #248

Open
alan-george-lk wants to merge 2 commits into
mainfrom
alan/feature-lk-cli-retries
Open

Retry LK CLI installs in CI#248
alan-george-lk wants to merge 2 commits into
mainfrom
alan/feature-lk-cli-retries

Conversation

@alan-george-lk

@alan-george-lk alan-george-lk commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Prevent flaky tests (specifically nightly) around failing to install LK CLI.

@alan-george-lk
alan-george-lk marked this pull request as ready for review September 1, 2026 17:07

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

retry_delay_seconds=3
if [[ "$RUNNER_OS" == "Linux" ]]; then
curl -sSL https://get.livekit.io/cli | bash
curl -sSL --retry "$retry_count" --retry-delay "$retry_delay_seconds" https://get.livekit.io/cli | bash

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Linux installation failures remain unretried

On Linux, curl --retry retries only the installer-script download, while any failure inside the downloaded installer ends the job immediately.

Suggested change
curl -sSL --retry "$retry_count" --retry-delay "$retry_delay_seconds" https://get.livekit.io/cli | bash
for attempt in $(seq 0 "$retry_count"); do
if curl -sSL --retry "$retry_count" --retry-delay "$retry_delay_seconds" https://get.livekit.io/cli | bash; then
break
fi
if [[ "$attempt" == "$retry_count" ]]; then
exit 1
fi
sleep "$retry_delay_seconds"
done
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

curl -sSL --retry "$retry_count" --retry-delay "$retry_delay_seconds" https://get.livekit.io/cli | bash
elif [[ "$RUNNER_OS" == "macOS" ]]; then
brew install livekit-cli
for attempt in $(seq 0 "$retry_count"); do

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brew already tried to install 3 times, so i dont think we need this chunk

--repo livekit/livekit-cli \
--pattern "*_windows_amd64.zip" \
--output "$RUNNER_TEMP/lk.zip"
for attempt in $(seq 0 "$retry_count"); do

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why arent we using winget here?
https://github.com/livekit/livekit-cli#windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants