Fix tput failures in CI/CD environments#34
Merged
lunarcloud merged 3 commits intomainfrom Feb 10, 2026
Merged
Conversation
Co-authored-by: lunarcloud <1565970+lunarcloud@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI/CD failure due to missing tput in headless environment
Fix tput failures in CI/CD environments
Feb 10, 2026
Owner
|
@copilot could you ensure the github action runs a small test to ensure we don't have future regressions in ci/cd compatibility? |
Co-authored-by: lunarcloud <1565970+lunarcloud@users.noreply.github.com>
Contributor
Author
Added CI/CD compatibility test in commit 7749c0c. The test verifies the library sources correctly with TERM=dumb, TERM unset, and normal terminal settings. It runs automatically in GitHub Actions on every PR and push to master to catch any future regressions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tputcalls fail whenTERMis unset or invalid (common in CI/CD), causing error output that breaks pipelines.Changes
init.sh (color initialization)
tputavailability before usetputinvocationshelpers.sh (terminal dimensions)
command -vsyntax to suppress stderrtput lines/colscallsCI/CD regression test (extras/test-ci-compatibility.sh)
Example
Before:
After:
Library now sources cleanly in headless environments while maintaining color support when available. Automated CI tests ensure this compatibility is maintained going forward.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.