Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/download-codet5-model-relentless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ jobs:

- name: Ensure git-lfs (retry up to 5x)
run: |

sudo apt-get update -y
Copy link

Copilot AI Sep 19, 2025

Choose a reason for hiding this comment

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

The sudo apt-get update -y command is executed twice - once standalone on line 15 and again within the retry loop on line 20. This is inefficient and should be consolidated into a single execution before the retry loop.

Copilot uses AI. Check for mistakes.
for i in {1..5}; do
sudo apt-get install -y git-lfs && git lfs install --system && break

for i in {1..5}; do
Comment on lines +17 to 19
Copy link

Copilot AI Sep 19, 2025

Choose a reason for hiding this comment

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

Duplicate retry loops for git-lfs installation. The first loop (lines 16-17) is incomplete and missing the echo/sleep statements, while the second loop (lines 19-20) duplicates the same logic. Remove the incomplete first loop and keep only the complete second loop.

Suggested change
sudo apt-get install -y git-lfs && git lfs install --system && break
for i in {1..5}; do

Copilot uses AI. Check for mistakes.
sudo apt-get update -y && sudo apt-get install -y git-lfs && git lfs install --system && break

echo "git-lfs install failed (attempt $i), retrying..."
sleep 5
done
Expand All @@ -35,6 +41,10 @@ jobs:
if [ "$(ls -A ./codet5-small)" == "" ]; then
echo "Trying curl fallback..."
curl -L https://huggingface.co/Salesforce/codet5-small/resolve/main/pytorch_model.bin -o ./codet5-small/pytorch_model.bin || true

curl -L https://huggingface.co/Salesforce/codet5-small/resolve/main/config.json -o ./codet5-small/config.json || true
curl -L https://huggingface.co/Salesforce/codet5-small/resolve/main/tokenizer.json -o ./codet5-small/tokenizer.json || true
curl -L https://huggingface.co/Salesforce/codet5-small/resolve/main/tokenizer_config.json -o ./codet5-small/tokenizer_config.json || true
fi
fi

Expand Down
Loading