Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CLI test failures caused by yarl.URL._val type change #3235

Merged
merged 5 commits into from
Dec 12, 2024

Conversation

jopemachine
Copy link
Member

@jopemachine jopemachine commented Dec 10, 2024

Fix #3234.
This is occurring after upgrading dependencies in 8e607b8.

Due to version changes in yarl, the type of the URL._val has been changed to a tuple.
This PR addresses the side effects caused by this change.

Note

FYI, The code also works when URL._val is a SplitResult, so it does not cause compatibility issues.

Reference

This change was from in yarl 1.17.1,
and aiodocker 0.24.0 requires yarl 1.17.2
(Ref: https://github.com/aio-libs/aiodocker/blob/1cdac6661c0623822d381a0340136b20ce510b62/pyproject.toml#L35)

See https://github.com/aio-libs/yarl/releases?page=1 for details.

Changed PR: aio-libs/yarl#1396

Others

Backend.AI 24.09 uses yarl version 1.13.1, but tests are conducted with version yarl 1.18.3.
So it seems this issue currently occurs only in testing.

How to reproduce


Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

@jopemachine jopemachine changed the title fix: Broken CLI test fix: CLI test failures from yarl.URL._val type change Dec 10, 2024
@jopemachine jopemachine added this to the 24.09 milestone Dec 10, 2024
@jopemachine jopemachine added the type:bug Reports about that are not working label Dec 10, 2024
@jopemachine jopemachine marked this pull request as ready for review December 10, 2024 04:17
@jopemachine jopemachine added the comp:client Related to Client component label Dec 10, 2024
Copy link

@HyeockJinKim HyeockJinKim left a comment

Choose a reason for hiding this comment

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

LGTM

@jopemachine jopemachine changed the title fix: CLI test failures from yarl.URL._val type change fix: CLI test failures caused by yarl.URL._val type change Dec 10, 2024
src/ai/backend/client/auth.py Outdated Show resolved Hide resolved
@achimnol achimnol added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 9884dbd Dec 12, 2024
20 checks passed
@achimnol achimnol deleted the fix/broken-cli-test branch December 12, 2024 10:24
lablup-octodog pushed a commit that referenced this pull request Dec 12, 2024
Backported-from: main (24.12)
Backported-to: 24.09
Backport-of: 3235
github-merge-queue bot pushed a commit that referenced this pull request Dec 13, 2024
…3244)

Co-authored-by: Gyubong Lee <jopemachine@naver.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:client Related to Client component size:XS ~10 LoC type:bug Reports about that are not working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI test broken
3 participants