Skip to content

Fix/ssh token output regression - #10490

Open
lavakumarrepala wants to merge 5 commits into
Azure:mainfrom
lavakumarrepala:fix/ssh-token-output-regression
Open

lavakumarrepala wants to merge 5 commits into
Azure:mainfrom
lavakumarrepala:fix/ssh-token-output-regression

Conversation

@lavakumarrepala

@lavakumarrepala lavakumarrepala commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes
️✔️ None

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install azdev required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

lavakumarrepala and others added 4 commits October 2, 2026 12:01
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 05bf1e5b-fbcf-415a-ad7f-90ba2d884fda
Document the stdout transport constraint and guard script startup so connector helpers can be tested without opening an SSH connection.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5f5091db-6c71-4232-9542-99341594a5fd
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

1 similar comment
@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

1 similar comment
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@x-engineering-agent

Copy link
Copy Markdown

Hi lavakumarrepala,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

Stub the unused optional WebSocket transport in CLI-output tests so they run without the on-demand SSH dependency. Add the customer-visible change to HISTORY.rst.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5f5091db-6c71-4232-9542-99341594a5fd
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@lavakumarrepala
lavakumarrepala marked this pull request as ready for review October 20, 2026 16:46
Copilot AI balanced review requested due to automatic review settings October 20, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The narrow fix preserves token retrieval and error handling, with targeted regression coverage and no unresolved findings.

No open issues 🎉

What changed in this PR

Prevents formatted access-token output from entering the SSH transport or verbose SSH logs for Azure ML SSH connections.

Changes:

  • Captures CLI output in memory while preserving result and error handling.
  • Adds regression tests and an import-safe script entry point.
  • Documents the fix in release history.
File Description
src/​machinelearningservices/​HISTORY.rst Documents the token-output fix.
src/​machinelearningservices/​azext_mlv2/​tests/​latest/​test_ssh_connector.py Tests output isolation and result/error handling.
src/​machinelearningservices/​azext_mlv2/​manual/​custom/​_ssh_connector.py Captures formatted output and guards script execution.

Review effort: Balanced

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.

4 participants