Skip to content

[linux_job_v3] Pin shell: bash on run steps using bashisms#8130

Open
huydhn wants to merge 1 commit into
mainfrom
huydo/linux-job-v3-shell-bash
Open

[linux_job_v3] Pin shell: bash on run steps using bashisms#8130
huydhn wants to merge 1 commit into
mainfrom
huydo/linux-job-v3-shell-bash

Conversation

@huydhn
Copy link
Copy Markdown
Contributor

@huydhn huydhn commented May 30, 2026

The Clean workspace (set -euxo pipefail) and Prepare artifacts for upload ([[ … ]]) steps had no explicit shell:, so in a container job they run under the default sh. On images where /bin/sh is dash (Ubuntu/Debian), set -o pipefail fails with Illegal option -o pipefail; RHEL-family images (/bin/sh → bash) masked it.

Pinning shell: bash on those steps makes them independent of the container's /bin/sh.

Repro: a v3 job on an Ubuntu-based image fails at Clean workspace (torchtitan#3464); the same workflow on almalinux-builder passes.

The Clean workspace (set -euxo pipefail) and Prepare artifacts ([[ ]]) steps
had no explicit shell, so they ran under the container default sh. On images
where /bin/sh is dash (e.g. Ubuntu), set -o pipefail fails with 'Illegal
option'. RHEL-family images (sh -> bash) masked this. Pin shell: bash.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
torchci Ignored Ignored Preview May 30, 2026 8:32am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 30, 2026
@huydhn huydhn requested review from atalman and malfet May 30, 2026 08:15
@huydhn huydhn changed the title [linux_job_v3] Pin shell: bash on run steps using bashisms [linux_job_v3] Make run steps work in non-root / dash-default containers May 30, 2026
@huydhn huydhn force-pushed the huydo/linux-job-v3-shell-bash branch from ab784c5 to 96d967a Compare May 30, 2026 08:36
@huydhn huydhn changed the title [linux_job_v3] Make run steps work in non-root / dash-default containers [linux_job_v3] Pin shell: bash on run steps using bashisms May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant