Skip to content

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

Merged
mr0re1 merged 1 commit into
GoogleCloudPlatform:release-candidatefrom
dodecatheon:fix-spack-ramble-setups
Nov 2, 2023
Merged

Test for tty before echo in /etc/profile.d scripts#1920
mr0re1 merged 1 commit into
GoogleCloudPlatform:release-candidatefrom
dodecatheon:fix-spack-ramble-setups

Conversation

@dodecatheon

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

Spack tests passed before rebasing.

@nick-stroud nick-stroud force-pushed the fix-spack-ramble-setups branch from 3190a00 to 11769a2 Compare November 2, 2023 02:27
@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
Copy Markdown
Collaborator

/gcbrun

@nick-stroud

Copy link
Copy Markdown
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 requested a review from mr0re1 November 2, 2023 02:33
@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
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