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

Investigate asyncio CancelledError in test_list_secrets on Juju 3.3, 3.4, 3.5 #1180

Open
james-garner-canonical opened this issue Nov 8, 2024 · 0 comments
Labels
area/tests Updates the tests or test infrastructure kind/bug indicates a bug in the project kind/CI About CI infra or tests kind/test invalid or failing tests cases, build errors due to a test case, any problems regarding testing.

Comments

@james-garner-canonical
Copy link
Contributor

Description

tests/integration/test_secrets.py::test_list_secrets seems to be consistently failing with juju 3.3, 3.4 and 3.5 (passes on 3.1) with an asyncio.exceptions.CancelledError

e.g.

Traceback (most recent call last):
  File "/home/runner/work/python-libjuju/python-libjuju/tests/integration/test_secrets.py", line 41, in test_list_secrets
    await model.wait_for_idle(status="active")
  File "/home/runner/work/python-libjuju/python-libjuju/juju/model.py", line 2973, in wait_for_idle
    await jasyncio.sleep(check_freq)
  File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/asyncio/tasks.py", line 605, in sleep
    return await future
asyncio.exceptions.CancelledError

Fully outputs for 3.3, 3.4 and 3.5 respectively:

Urgency

Annoying bug in our test suite

Python-libjuju version

main

Juju version

3.3, 3.4, 3.5

Reproduce / Test

...
@james-garner-canonical james-garner-canonical added kind/bug indicates a bug in the project kind/test invalid or failing tests cases, build errors due to a test case, any problems regarding testing. kind/CI About CI infra or tests area/tests Updates the tests or test infrastructure labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests Updates the tests or test infrastructure kind/bug indicates a bug in the project kind/CI About CI infra or tests kind/test invalid or failing tests cases, build errors due to a test case, any problems regarding testing.
Projects
None yet
Development

No branches or pull requests

1 participant