Skip to content

Update main 270426#20

Closed
aivanni wants to merge 1 commit into
mainfrom
update-main-270426
Closed

Update main 270426#20
aivanni wants to merge 1 commit into
mainfrom
update-main-270426

Conversation

@aivanni
Copy link
Copy Markdown
Collaborator

@aivanni aivanni commented Apr 27, 2026

No description provided.

* Fixes to lerobot finetuning workload

* pin lerobot default version and extra packages
Copilot AI review requested due to automatic review settings April 27, 2026 09:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the robotics-finetune-lerobot Helm workload configuration to better control LeRobot installation/runtime behavior (pinning LeRobot source, adjusting training defaults, and tightening a few chart/runtime details).

Changes:

  • Pin LeRobot install behavior via default extras and an optional git ref, plus improve package installation commands in the entrypoint.
  • Adjust default training hyperparameters and metadata label defaults in values.yaml / overrides.
  • Fix emptyDir.sizeLimit YAML structure and add a brief compatibility note to the README.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
workloads/robotics-finetune-lerobot/helm/values.yaml Sets default LeRobot extras + git ref and updates training/metadata defaults.
workloads/robotics-finetune-lerobot/helm/templates/_helpers.tpl Corrects emptyDir volume sizeLimit placement under emptyDir:.
workloads/robotics-finetune-lerobot/helm/overrides/pi05-kettle.yaml Expands LeRobot extras used by the pi05-kettle override.
workloads/robotics-finetune-lerobot/helm/mount/entrypoint.sh.tpl Improves apt usage, uses shallow clone, adds optional checkout, and requires hfFinetunedModelId.
workloads/robotics-finetune-lerobot/helm/README.md Adds compatibility note and fixes a small grammar issue.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +9 to +13
git clone --depth 1 https://github.com/huggingface/lerobot.git
cd lerobot
{{- if .Values.setup.lerobotGitRef }}
git checkout {{ .Values.setup.lerobotGitRef }}
{{- end }}
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

git clone --depth 1 will usually prevent git checkout {{ .Values.setup.lerobotGitRef }} from working when lerobotGitRef is a specific commit SHA (not the repo’s current HEAD), causing the entrypoint to fail by default (since values.yaml now sets a SHA). Consider either (a) not using a shallow clone when lerobotGitRef is set, or (b) fetching that ref explicitly (e.g., git fetch --depth 1 origin <ref>) before checkout.

Copilot uses AI. Check for mistakes.
git clone --depth 1 https://github.com/huggingface/lerobot.git
cd lerobot
{{- if .Values.setup.lerobotGitRef }}
git checkout {{ .Values.setup.lerobotGitRef }}
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

{{ .Values.setup.lerobotGitRef }} is interpolated into a shell command unquoted. If the value contains whitespace or shell metacharacters it can break the script (and can be used for command injection if values are not fully trusted). Quote the ref and pass it as a single argument (e.g., git checkout -- "<ref>").

Suggested change
git checkout {{ .Values.setup.lerobotGitRef }}
git checkout -- {{ .Values.setup.lerobotGitRef | quote }}

Copilot uses AI. Check for mistakes.
@Gastron
Copy link
Copy Markdown
Collaborator

Gastron commented Apr 29, 2026

Superseded by newer update

@Gastron Gastron closed this Apr 29, 2026
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.

3 participants