Skip to content

Conversation

@jusiskin
Copy link
Contributor

What was the problem/requirement? (What/Why)

The deadline-cloud-worker-agent repository had a configuration setting to force use console color output. This was done to ensure pytest output is colorized in GitHub actions (see pytest-dev/pytest#7462 and actions/runner#241 for background on this issue).

Forcing color output negatively impacts legibility in CodeBuild where we run our integration and e2e tests.

What was the solution? (How)

Remove the configuration in pyproject.toml to force colorized pytest output. Legibility is more important than colorized output.

What is the impact of this change?

Test output is more legible in CodeBuild and GitHub actions will no longer have colorized output. There is no change for running tests in a terminal. Pytest correctly detects the terminal and colorizes output.

How was this change tested?

Ran the tests with:

hatch run test

The tests succeed and are colorized locally

Was this change documented?

No

Is this a breaking change?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Signed-off-by: Josh Usiskin <56369778+jusiskin@users.noreply.github.com>
@jusiskin jusiskin requested a review from a team as a code owner October 16, 2024 16:46
@sonarqubecloud
Copy link

@jusiskin jusiskin merged commit 9091f65 into aws-deadline:mainline Oct 16, 2024
@jusiskin jusiskin deleted the pytest_auto_color_detection branch October 16, 2024 16:56
YutongLi291 pushed a commit to YutongLi291/deadline-cloud-worker-agent-fork that referenced this pull request Oct 16, 2024
Signed-off-by: Josh Usiskin <56369778+jusiskin@users.noreply.github.com>
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.

3 participants