Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it a bash script to fix job control on CI #2

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

EliahKagan
Copy link
Owner

@EliahKagan EliahKagan commented Dec 5, 2023

Shell job control is mainly for interactive use, and shells vary in the situations where it is supported. In the noninteractive session on CI, the set -m command in the run-experiment script failed on Ubuntu, where /bin/sh is dash, but succeeded on macOS, where /bin/sh is (I think) bash 3.2. This change makes it work on both.

Besides its somewhat unusual use of job control, this script otherwise currently relies on no "bash-isms".

(SSHing in for tmate was never affected by this, but the main point of CI is noninteractive use, so I want that to work on both systems.)

Shell job control is mainly for interactive use, and shells vary in
the situations where it is supported. In the noninteractive session
on CI, the "set -m" command in the run-experiment script failed on
Ubuntu, where /bin/sh is dash, but succeeded on macOS, where
/bin/sh is (I think) bash 3.2. This change makes it work on both.

Besides its somewhat unusual use of job control, this script
otherwise currently relies on no "bash-isms".

(SSHing in for tmate was never affected by this, but the main point
of CI is noninteractive use, so I want that to work on both
systems.)
@EliahKagan EliahKagan merged commit d37ef88 into main Dec 5, 2023
8 checks passed
@EliahKagan EliahKagan deleted the ci-job-control branch December 5, 2023 01:43
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.

1 participant