lablup / lablup/backend.ai

Add stdout Logging Support for headless Mode in TUI Installer

Open
#7,955 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Motivation

- When running TUI installer in non-interactive mode (`--non-interactive`), logs are not visible to users
- Non-interactive mode is typically used in CI/CD pipelines or automated deployments where stdout logging is essential
- Need to provide real-time feedback and debugging capability in headless environments

## Required Features

- **Non-Interactive Detection**: Track `non_interactive` flag in widget initialization
- **Unified Write Method**: Implement `_write_to_stdout()` method to handle various content types
- **Error Resilience**: Wrap stdout writes in try-except to prevent logging failures from interrupting installation

## Impact

- Improves debugging capability for non-interactive installations
- Provides consistent logging experience across interactive and non-interactive modes

JIRA Issue: BA-3803

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.