Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 18, 2025

The ADO auth extension was emitting step messages to stdout during normal package operations, cluttering build output with authentication details users don't need to see.

Changes

  • Silent by default: Authentication now runs without output unless ARTIFACTS_HELPER_VERBOSE=true is set
  • Warnings preserved: Timeout and error conditions still emit warnings regardless of verbose setting
  • Version bump: 3.0.1 → 3.0.2

Implementation

Added conditional logging functions in auth-ado.sh:

log_step() {
    if [ "${ARTIFACTS_HELPER_VERBOSE}" = "true" ]; then
        echo "::step::$1"
    fi
}

All informational messages (::step:: prefixed) now use log_step() or log_message(). Error/warning messages bypass the check.

Usage

Enable verbose output for troubleshooting:

export ARTIFACTS_HELPER_VERBOSE=true

Documented in NOTES.md with examples.

Original prompt

This section details on the original issue you should resolve

<issue_title>Ado auth extension is no longer silent</issue_title>
<issue_description>Hello!

We recently started seeing this output from the ado auth extension in our codespaces :

> yarn build-scope acui-avatar
::step::Waiting for AzDO Authentication Helper...
::step::Running ado-auth-helper get-access-token...
::step::✓ Access token retrieved successfully

...

Is there a way to mute this output?

Thank you!
</issue_description>

<agent_instructions>Suppress the log output by default unless an option environment variable is set. Bump the version number and document the environment variable in NOTES.md</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@markphip https://github.com/microsoft/codespace-features/blob/main/src/artifacts-helper/scripts/auth-ado.sh @markphip It can do whatever makes sense including removing the messages. Does Codespaces offer any kind of existing environment variable it could look at to decide when to send them and when not? They are useful when the command you are running is waiting for the auth helper to be installed so that you understand why the command is not doing anything.

Are the messages causing a problem?</comment_new>
<comment_new>@markphip
Submit a PR that removes them or conditions them. I was more wondering if when Codespaces runs in Debug mode if there is something set that could be the only time they show. Or ir could just be a newly introduced one that someone could set when troubleshooting to see what is happening. Agree it could be silent by default

You can also use artifacts-helper:2</comment_new>


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@markphip markphip marked this pull request as ready for review December 18, 2025 01:03
Copilot AI changed the title [WIP] Suppress ado auth extension log output by default Suppress auth-ado log output by default, add ARTIFACTS_HELPER_VERBOSE Dec 18, 2025
Copilot AI requested a review from markphip December 18, 2025 01:03
@markphip markphip merged commit 95d3507 into main Dec 18, 2025
6 checks passed
@markphip markphip deleted the copilot/suppress-ado-auth-logs branch December 18, 2025 01:16
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.

Ado auth extension is no longer silent

2 participants