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

"webdriver/tests/bidi/browsing_context/navigate/error.py:test_with_new_navigation" is flaky #2743

Open
sadym-chromium opened this issue Nov 4, 2024 · 0 comments

Comments

@sadym-chromium
Copy link
Collaborator

https://github.com/GoogleChromeLabs/chromium-bidi/actions/runs/11664960578/job/32476607089
chromedriver-headful-1.6-artifacts.zip

▶ Unexpected subtest result in /webdriver/tests/bidi/browsing_context/navigate/error.py:

  │ FAIL [expected PASS] test_with_new_navigation
  │   → Failed: DID NOT RAISE <class 'webdriver.bidi.error.UnknownErrorException'>
  │ 
  │ bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f2a96f4e550>
  │ subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x7f2a95b59620>
  │ inline = <function inline.<locals>.inline at 0x7f2a95b5a0c0>
  │ url = <function url.<locals>.url at 0x7f2a95b59c60>
  │ new_tab = {'context': '1D995874B031A4A9D05187B0FB54D3AE'}
  │ wait_for_event = <function wait_for_event.<locals>.wait_for_event at 0x7f2a95b59f80>
  │ wait_for_future_safe = <function wait_for_future_safe.<locals>.wait_for_future_safe at 0x7f2a95b59ee0>
  │ 
  │     async def test_with_new_navigation(
  │         bidi_session,
  │         subscribe_events,
  │         inline,
  │         url,
  │         new_tab,
  │         wait_for_event,
  │         wait_for_future_safe,
  │     ):
  │         slow_page_url = url(
  │             "/webdriver/tests/bidi/browsing_context/support/empty.html?pipe=trickle(d10)"
  │         )
  │         await subscribe_events(events=[NAVIGATION_STARTED_EVENT])
  │     
  │         on_navigation_started = wait_for_event(NAVIGATION_STARTED_EVENT)
  │         task = asyncio.ensure_future(
  │             bidi_session.browsing_context.navigate(
  │                 context=new_tab["context"], url=slow_page_url, wait="complete"
  │             )
  │         )
  │         await wait_for_future_safe(on_navigation_started)
  │         second_url = inline("<div>foo</div>")
  │     
  │         # Trigger the second navigation which should fail the first one.
  │         await bidi_session.browsing_context.navigate(
  │             context=new_tab["context"], url=second_url, wait="none"
  │         )
  │     
  │         # Make sure that the first navigation failed.
  │ >       with pytest.raises(UnknownErrorException):
  │ E       Failed: DID NOT RAISE <class 'webdriver.bidi.error.UnknownErrorException'>
  │ 
  │ bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f2a96f4e5[50](https://github.com/GoogleChromeLabs/chromium-bidi/actions/runs/11664960578/job/32476607089#step:12:51)>
  │ inline     = <function inline.<locals>.inline at 0x7f2a95b5a0c0>
  │ new_tab    = {'context': '1D995874B031A4A9D0[51](https://github.com/GoogleChromeLabs/chromium-bidi/actions/runs/11664960578/job/32476607089#step:12:52)87B0FB54D3AE'}
  │ on_navigation_started = <Future finished result={'context': '1D995874B031...187B0FB54D3AE', 'navigation': '14feed50-809...-8925abe0d98d', 'timestamp': 1730726141569, 'url': 'https://web-...=trickle(d10)'}>
  │ second_url = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%3Cdiv%3Efoo%3C%2Fdiv%3E&mime=text%2Fhtml&charset=UTF-8'
  │ slow_page_url = 'https://web-platform.test:8443/webdriver/tests/bidi/browsing_context/support/empty.html?pipe=trickle(d10)'
  │ subscribe_events = <function subscribe_events.<locals>.subscribe_events at 0x7f2a95b[59](https://github.com/GoogleChromeLabs/chromium-bidi/actions/runs/11664960578/job/32476607089#step:12:60)620>
  │ task       = <Task finished name='Task-669' coro=<BrowsingContext.navigate() done, defined at /home/runner/work/chromium-bidi/chromium-bidi/wpt/tools/webdriver/webdriver/bidi/modules/_module.py:64> result={'navigation': '14feed50-809...-8925abe0d98d', 'url': 'about:blank'}>
  │ url        = <function url.<locals>.url at 0x7f2a95b59c[60](https://github.com/GoogleChromeLabs/chromium-bidi/actions/runs/11664960578/job/32476607089#step:12:61)>
  │ wait_for_event = <function wait_for_event.<locals>.wait_for_event at 0x7f2a95b59f80>
  │ wait_for_future_safe = <function wait_for_future_safe.<locals>.wait_for_future_safe at 0x7f2a95b59ee0>
  │ 
  └ wpt/webdriver/tests/bidi/browsing_context/navigate/error.py:1[67](https://github.com/GoogleChromeLabs/chromium-bidi/actions/runs/11664960578/job/32476607089#step:12:68): Failed
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

No branches or pull requests

1 participant