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

Test for tty before echo in /etc/profile.d scripts #1920

Conversation

dodecatheon
Copy link
Contributor

In spack-setup and ramble-setup modules, profile scripts have echo diag output to the terminal. This breaks some ssh and most scp connections.

Therefore, a test is added to ensure that tty output is available.

'test -t 1' is shell-agnostic and tests whether stdout is open.

@nick-stroud
Copy link
Collaborator

/gcbrun

@nick-stroud nick-stroud added the release-chore To not include into release notes label Nov 1, 2023
@nick-stroud nick-stroud self-requested a review November 1, 2023 23:32
@nick-stroud nick-stroud self-assigned this Nov 1, 2023
nick-stroud
nick-stroud previously approved these changes Nov 2, 2023
In spack-setup and ramble-setup modules, profile scripts
have echo diag output to the terminal. This breaks
some ssh and most scp connections.

Therefore, a test is added to ensure that tty output is available.

'test -t 1' is shell-agnostic and tests whether stdout is open.
@nick-stroud
Copy link
Collaborator

Spack tests passed before rebasing.

@nick-stroud nick-stroud changed the base branch from develop to release-candidate November 2, 2023 02:28
@nick-stroud nick-stroud dismissed their stale review November 2, 2023 02:28

The base branch was changed.

@nick-stroud
Copy link
Collaborator

/gcbrun

@nick-stroud
Copy link
Collaborator

I have been convinced that releasing as is constitutes a regression. I have proposed merging this to release candidate so the fix is in our next release.

@nick-stroud nick-stroud assigned mr0re1 and unassigned nick-stroud Nov 2, 2023
@mr0re1 mr0re1 merged commit fd1b5e5 into GoogleCloudPlatform:release-candidate Nov 2, 2023
6 of 32 checks passed
mr0re1 pushed a commit to mr0re1/hpc-toolkit that referenced this pull request Nov 2, 2023
…rm#1920)

In spack-setup and ramble-setup modules, profile scripts
have echo diag output to the terminal. This breaks
some ssh and most scp connections.

Therefore, a test is added to ensure that tty output is available.

'test -t 1' is shell-agnostic and tests whether stdout is open.
@dodecatheon dodecatheon deleted the fix-spack-ramble-setups branch November 2, 2023 17:24
@mr0re1 mr0re1 mentioned this pull request Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-chore To not include into release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants