Skip to content

Honor COLUMNS when determining ANSI output width#7144

Open
Eldergenix wants to merge 1 commit into
nextflow-io:masterfrom
Eldergenix:eldergenix/fix-issue-6274-columns-width
Open

Honor COLUMNS when determining ANSI output width#7144
Eldergenix wants to merge 1 commit into
nextflow-io:masterfrom
Eldergenix:eldergenix/fix-issue-6274-columns-width

Conversation

@Eldergenix
Copy link
Copy Markdown

Fixes #6274

Summary

  • Use COLUMNS as the ANSI log width fallback when TERMINAL_WIDTH is not set to a valid positive integer.
  • Preserve the existing TERMINAL_WIDTH override and existing terminal-width fallback behavior for absent or invalid values.
  • Add isolated coverage for valid, absent, malformed, zero, negative, and overflow env values.
  • Document the COLUMNS behavior in the environment variable reference.

Validation

  • JAVA_HOME=/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@21/bin:$PATH ./gradlew :nextflow:test --tests nextflow.trace.AnsiLogObserverTest --no-daemon - passed after code changes; build successful in 5m 25s.
  • JAVA_HOME=/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@21/bin:$PATH ./gradlew :nextflow:test --tests nextflow.trace.AnsiLogObserverTest --no-daemon - passed after the docs edit; Gradle reported tasks up-to-date and build successful in 13s.
  • git diff --check - passed.

Notes

  • Docs HTML build was not run locally because Sphinx/MyST are not installed in this Python environment (ModuleNotFoundError: No module named 'sphinx').
  • Full make test / full CI matrix was not run locally.
  • Manual COLUMNS=50 nextflow run ... smoke was not run; the env-width fallback is covered by AnsiLogObserverTest.

@Eldergenix Eldergenix requested a review from a team as a code owner May 14, 2026 01:01
@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 5402d3b
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6a051ed7b4e69c00081f3143
😎 Deploy Preview https://deploy-preview-7144--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

COLUMNS environment variable not honored

1 participant