Skip to content

Validate results for terminal size and fallback to env vars on bad size#51090

Merged
becker33 merged 1 commit intospack:developfrom
alecbcs:fix/tty-fallback-github-actions
Aug 6, 2025
Merged

Validate results for terminal size and fallback to env vars on bad size#51090
becker33 merged 1 commit intospack:developfrom
alecbcs:fix/tty-fallback-github-actions

Conversation

@alecbcs
Copy link
Copy Markdown
Member

@alecbcs alecbcs commented Jul 31, 2025

GitHub Actions appears to return -2 when querying for the terminal width which causes us to fail when generating tutorial outputs. This patch adds a validation step so that we fallback to the environment variables in the case we get a negative value from the file descriptors.

@alecbcs alecbcs requested review from alalazo, haampie and tgamblin July 31, 2025 18:55
@alecbcs alecbcs added v1.0.1 PRs to backport for v1.0.1 bugfix Something wasn't working, here's a fix labels Aug 5, 2025
@becker33 becker33 merged commit 46d55da into spack:develop Aug 6, 2025
33 checks passed
haampie pushed a commit that referenced this pull request Aug 11, 2025
@haampie haampie mentioned this pull request Aug 11, 2025
29 tasks
@alecbcs alecbcs deleted the fix/tty-fallback-github-actions branch August 11, 2025 18:51
alecbcs added a commit that referenced this pull request Aug 12, 2025
alstar555 pushed a commit to alstar555/spack that referenced this pull request Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Something wasn't working, here's a fix v1.0.1 PRs to backport for v1.0.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants