Skip to content

Unable get output of the copilot execution in CI pipelineΒ #560

@doggy8088

Description

@doggy8088

Describe the bug

I run copilot in the Hosted Agent on Azure Pipelines. I'm using ubuntu-latest agent.

Image

I noticed it executed everything, but all the output text vanished. Why would that happen? Does this occur in non-TTY mode?

Can you add a --output option for GitHub Copilot CLI?

Affected version

0.0.356

Steps to reproduce the behavior

copilot --agent code-review -p "$(cat code-review-prompt.txt))" | \
  tee $(Build.ArtifactStagingDirectory)/github-copilot-cli-result.md

Expected behavior

I expect the output of the GitHub Copilot CLI should be full and complete.

Additional context

  • Logs using --log-level and --log-file flags: Yes, I see the logs with complete output. I just can't see output in the STDOUT.
  • Operating system (e.g., Windows, macOS, Linux): Linux
  • CPU architecture (e.g., x86_64, ARM): x86_64
  • Terminal emulator (e.g., Terminal, iTerm2, Windows Terminal): Not a terminal
  • Shell (e.g., bash, zsh, fish): bash

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions