Skip to content

Rendering issues in CI environments #12134

@davidfowl

Description

@davidfowl

There are several problems with the current rendering in CI environments:

  • The Spectre spinner should be disabled to prevent unnecessary animation characters in CI logs.
  • ASCII progress indicators should also be disabled in CI environments.
  • Link rendering is currently incorrect in CI and needs investigation.
  • Deploy output should use ANSI codes for color in CI logs, where supported.

Example command to reproduce:

aspire deploy --project ./src/apphost.cs --environment Production

Example output:

Run aspire deploy --project ./src/apphost.cs --environment Production
�]9;4;3�\🛠  Generating artifacts...
|�20:40:21 (analyze-model) → Starting analyze-model...
20:40:21 (analyze-model) → Analyzing the distributed application model for 
publishing and deployment capabilities.
20:40:21 (analyze-model) ✓ Analyzing the distributed application model for 
publishing and deployment capabilities.: Found deployment steps in the 
application pipeline. (0.0s)
20:40:21 (analyze-model) ✓ analyze-model completed successfully
20:40:21 (validate-auth) → Starting validate-auth...
20:40:21 (build-images) → Starting build-images...
20:40:21 (build-images) → Checking Docker health
/�-�\�20:40:22 (build-images) ✓ Checking Docker health: Docker is healthy. (0.4s)
20:40:22 (build-images) → Building image: boardadmin
|�/�-�\�|�20:40:22 (validate-auth) ✓ Azure CLI authentication validated successfully
/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�20:40:25 (deploy-resources) → Starting deploy-resources...
20:40:25 (deploy-resources) → Deploying env
-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�20:40:32 (build-images) ✓ Building image: boardadmin: Building image for 
boardadmin completed (10.4s)
20:40:32 (build-images) → Building image: bingoboard
-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�20:40:55 (build-images) ✓ Building image: bingoboard: Building image for 
bingoboard completed (22.4s)
20:40:55 (build-images) ✓ Building container images completed
/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�|�/�-�\�20:41:41 (deploy-resources) ✓ Deploying env: Successfully provisioned env 

Steps to reproduce:

  1. Run aspire deploy --project ./src/apphost.cs --environment Production in a CI pipeline (e.g., GitHub Actions).
  2. Observe the output and note the rendering issues.

This issue should ensure logs are clean, non-interactive, and that color and link rendering is correct in CI environments.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions