ansible / ansible/molecule

molecule matrix command produces unreadable colored output

Open
#4,124 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
4.2k
Forks
676
Avg merge
4d 14h
Merged PRs (30d)
9

Description

### Prerequisites

- [X] This was not already reported in the past (duplicate check)
- [X] It does reproduce it with code from main branch (latest unreleased version)
- [X] I include a minimal example for reproducing the bug
- [X] The bug is not trivial, as for those a direct pull-request is preferred
- [X] Running `pip check` does not report any conflicts
- [X] I was able to reproduce the issue on a different machine
- [X] The issue is not specific to any driver other than 'default' one

### Environment

RHEL 9 Workstation with GNOME
molecule and molecule-podman just installed into a fresh virtualenv

(test) master$ molecule --version
molecule 6.0.3 using python 3.9
ansible:2.15.8
default:6.0.3 from molecule
podman:2.0.3 from molecule_podman requiring collections: containers.podman>=1.7.0 ansible.posix>=1.3.0

### What happened

```bash
$ molecule matrix test
silly colored output...
```

I think in this case it makes sense to attach screenshots. First the settings of my Gnome Terminal. Second the unreadable output of the command.

![screenshot-1](https://github.com/ansible/molecule/assets/243299/99f038d1-38a2-4c1c-932e-7fa46b79a169)

![screenshot-2](https://github.com/ansible/molecule/assets/243299/2bdcb857-620c-4396-943b-e9d3fcc53322)

### Reproducing example

```yml
$ molecule matrix test
silly colored output...
```

Contributor guide

Open the contributing guide

Research direction

Start by running `molecule matrix test` in a fresh virtualenv with the reported Molecule 6.0.3, Python 3.9, and default driver on a GNOME terminal. Compare the output with the attached screenshots and trace the command's color or formatting behavior; done means the matrix output is readable without changing the terminal settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.