Skip to content

[202605] [sonic-package-manager]: Use lowercase 'azure/sonic' in registry reso…#4679

Merged
lunyue-ms merged 1 commit into
sonic-net:202605from
lunyue-ms:lunyue/azure-lowercase-202605
Jul 13, 2026
Merged

[202605] [sonic-package-manager]: Use lowercase 'azure/sonic' in registry reso…#4679
lunyue-ms merged 1 commit into
sonic-net:202605from
lunyue-ms:lunyue/azure-lowercase-202605

Conversation

@lunyue-ms

Copy link
Copy Markdown
Contributor

What I did

On 202605, test_get_registry_for uses the invalid reference Azure/sonic, which fails under docker-image-py 0.2.0 (it treats the uppercase first path component as a registry domain). Fix the test to use the valid lowercase azure/sonic so it passes regardless of the docker-image-py version. (Test-only portion of #4655.)

How I did it

  • tests/sonic_package_manager/test_registry.py: resolver.get_registry_for('Azure/sonic')resolver.get_registry_for('azure/sonic').

How to verify it

Run the package-manager registry test with docker-image-py 0.2.0 installed:

pytest tests/sonic_package_manager/test_registry.py::test_get_registry_for

It passes — azure/sonic resolves to the DockerHubRegistry singleton regardless of the docker-image-py version.

Previous command output (if the output of a command-line utility has changed)

N/A - no user-facing command output changes.

New command output (if the output of a command-line utility has changed)

N/A - no user-facing command output changes.

…lver test

'Azure/sonic' is not a valid lowercase Docker Hub reference; use 'azure/sonic' so test_get_registry_for passes regardless of the docker-image-py version.

Signed-off-by: Lun Yue <17232861+lunyue-ms@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@saiarcot895

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@lunyue-ms lunyue-ms changed the title [sonic-package-manager]: Use lowercase 'azure/sonic' in registry reso… [202605] [sonic-package-manager]: Use lowercase 'azure/sonic' in registry reso… Jul 10, 2026
@lunyue-ms
lunyue-ms requested a review from vaibhavhd July 10, 2026 23:29
@lunyue-ms
lunyue-ms merged commit e2a9e39 into sonic-net:202605 Jul 13, 2026
9 checks passed
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