Skip to content

Establish baseline webdriver conformance results - #35024

Merged
jdm merged 18 commits into
servo:mainfrom
jdm:enable-webdriver-tests
May 1, 2025
Merged

jdm merged 18 commits into
servo:mainfrom
jdm:enable-webdriver-tests

Conversation

@jdm

@jdm jdm commented Jan 16, 2025 •

Copy link
Copy Markdown
Member

web-platform-tests/wpt#50041 allows us to start running the webdriver conformance tests in Servo, which will make it easier for us to track regressions/improvements in our webdriver server implementation.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes are part of Run automated webdriver tests #15274
  • There are tests for these changes

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync.

@jdm jdm added the T-linux-wpt Do a try run of the WPT label Jan 16, 2025
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Jan 16, 2025
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#12815220774) for Linux WPT

@sagudev

sagudev commented Jan 16, 2025

Copy link
Copy Markdown
Member

I triggered WPT import via workflow dispatch: https://github.com/servo/servo/actions/runs/12815518448, so this PR can focus on only on enabling webdriver.

@github-actions

Copy link
Copy Markdown

Test results for linux-wpt-layout-2020 from try job (#12815220774):

Flaky unexpected result (21)
  • OK [expected TIMEOUT] /_webgl/conformance/textures/image_bitmap_from_video/tex-2d-alpha-alpha-unsigned_byte.html
    • PASS [expected NOTRUN] subtest: Overall test
  • OK /_webgl/conformance2/rendering/texture-switch-performance.html (#23384)
    • FAIL [expected PASS] subtest: WebGL test #0: Texture switching significantly hurt performance - achieved 725 frames in 2.005 seconds (0.56 times baseline performance)

      assert_true: Texture switching significantly hurt performance - achieved 725 frames in 2.005 seconds (0.56 times baseline performance) expected true got false
      

  • FAIL [expected PASS] /css/css-conditional/container-queries/container-for-cue.html (#34528)
  • PASS [expected FAIL] /css/selectors/invalidation/any-link-attribute-removal.html
  • OK /encoding/legacy-mb-korean/euc-kr/euckr-encode-form-korean.html?1-1000
    • FAIL [expected PASS] subtest: U+2533 ┳ %A6%B3

      assert_equals: expected "%A6%B3" but got ""
      

    • FAIL [expected PASS] subtest: U+2534 ┴ %A6%AA

      str is undefined
      

    • FAIL [expected PASS] subtest: U+2535 ┵ %A6%D5

      str is undefined
      

    • FAIL [expected PASS] subtest: U+2536 ┶ %A6%D6

      str is undefined
      

    • FAIL [expected PASS] subtest: U+2537 ┷ %A6%BA

      str is undefined
      

    • FAIL [expected PASS] subtest: U+2538 ┸ %A6%BF

      str is undefined
      

    • FAIL [expected PASS] subtest: U+2539 ┹ %A6%D7

      str is undefined
      

    • FAIL [expected PASS] subtest: U+253A ┺ %A6%D8

      str is undefined
      

    • FAIL [expected PASS] subtest: U+253B ┻ %A6%B5

      str is undefined
      

    • FAIL [expected PASS] subtest: U+253C ┼ %A6%AB

      str is undefined
      

    • And 390 more unexpected results...
  • OK /fetch/metadata/generated/css-font-face.https.sub.tentative.html (#32732)
    • PASS [expected FAIL] subtest: sec-fetch-dest
    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Same site
  • TIMEOUT [expected OK] /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-aboutblank-navigate-immediately.html (#29048)
    • TIMEOUT [expected FAIL] subtest: Navigating to a different document with link click

      Test timed out
      

    • NOTRUN [expected FAIL] subtest: Navigating to a different document with form submission
  • CRASH [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html (#22647)
  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2.html (#22154)
    • FAIL [expected NOTRUN] subtest: Check that popups from a sandboxed iframe do not escape the sandbox

      assert_equals: It came from a sandboxed iframe expected "null" but got "http://web-platform.test:8000"
      

  • OK /html/semantics/forms/form-submission-0/multipart-formdata.window.html (#28725)
    • PASS [expected FAIL] subtest: multipart/form-data: Basic test (formdata event)
    • PASS [expected FAIL] subtest: multipart/form-data: 0x00 in name (formdata event)
  • OK /html/semantics/forms/form-submission-0/text-plain.window.html (#28687)
    • PASS [expected FAIL] subtest: text/plain: Basic test (formdata event)
  • TIMEOUT [expected OK] /webdriver/tests/classic/execute_async_script/window.py
  • OK /webdriver/tests/classic/get_window_rect/user_prompts.py
    • ERROR [expected FAIL] subtest: test_accept[capabilities0-alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept[capabilities0-confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept[capabilities0-prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept_and_notify[capabilities0-alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept_and_notify[capabilities0-confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept_and_notify[capabilities0-prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_dismiss[capabilities0-alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_dismiss[capabilities0-confirm-False]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_dismiss[capabilities0-prompt-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_dismiss_and_notify[capabilities0-alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • And 8 more unexpected results...
  • OK /webdriver/tests/classic/new_window/new_tab.py
    • ERROR [expected FAIL] subtest: test_opens_about_blank_in_new_tab

      teardown error: http.client.RemoteDisconnected: Remote end closed connection without response
      

    • ERROR [expected PASS] subtest: test_sets_no_window_name

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_sets_no_opener

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_initial_selection_for_contenteditable

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK /webdriver/tests/classic/perform_actions/user_prompts.py
    • ERROR [expected FAIL] subtest: test_dismissed_beforeunload

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK /webdriver/tests/classic/print/orientation.py
    • ERROR [expected FAIL] subtest: test_orientation[default]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_orientation[portrait]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_orientation[landscape]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK [expected TIMEOUT] /webdriver/tests/classic/send_alert_text/send.py
    • FAIL [expected PASS] subtest: test_null_response_value

      AssertionError: unsupported operation (500): Command not implemented: SendAlertText(SendKeysParameters { text: "Federer" })
      

    • FAIL [expected PASS] subtest: test_no_top_browsing_context

      assert 500 == 404
      

    • ERROR [expected PASS] subtest: test_no_browsing_context

      setup error: AttributeError: 'NoneType' object has no attribute 'click'
      

    • FAIL [expected PASS] subtest: test_no_user_prompt

      assert 500 == 404
      

    • FAIL [expected PASS] subtest: test_alert_element_not_interactable[alert]

      assert 500 == 400
      

    • FAIL [expected PASS] subtest: test_alert_element_not_interactable[confirm]

      assert 500 == 400
      

    • FAIL [expected PASS] subtest: test_chained_alert_element_not_interactable[alert]

      webdriver.error.UnsupportedOperationException: unsupported operation (500): Command not implemented: AcceptAlert
      

    • FAIL [expected PASS] subtest: test_chained_alert_element_not_interactable[confirm]

      webdriver.error.UnsupportedOperationException: unsupported operation (500): Command not implemented: AcceptAlert
      

    • FAIL [expected PASS] subtest: test_send_alert_text[]

      AssertionError: unsupported operation (500): Command not implemented: SendAlertText(SendKeysParameters { text: "" })
      

    • FAIL [expected PASS] subtest: test_send_alert_text[Federer]

      AssertionError: unsupported operation (500): Command not implemented: SendAlertText(SendKeysParameters { text: "Federer" })
      

    • And 3 more unexpected results...
  • OK /webdriver/tests/classic/set_window_rect/set.py
    • FAIL [expected PASS] subtest: test_width_height_floats

      assert 420 == 450
      

  • TIMEOUT [expected OK] /webmessaging/with-ports/017.html (#24486)
    • TIMEOUT [expected PASS] subtest: origin of the script that invoked the method, about:blank

      Test timed out
      

  • TIMEOUT [expected OK] /webstorage/localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.html (#29053)
    • TIMEOUT [expected PASS] subtest: StorageKey: test 3P about:blank window opened from a 3P iframe

      Test timed out
      

  • OK /xhr/open-url-multi-window-5.htm (#23360)
    • FAIL [expected PASS] subtest: XMLHttpRequest: open() resolving URLs (multi-Window; 5)

      assert_throws_dom: function "function() {client.open("GET", "...") }" did not throw
      

Stable unexpected results that are known to be intermittent (16)
  • TIMEOUT /FileAPI/url/url-in-tags-revoke.window.html (#19978)
    • TIMEOUT [expected PASS] subtest: Fetching a blob URL immediately before revoking it works in <script> tags.

      Test timed out
      

  • FAIL [expected PASS] /css/css-tables/table-cell-overflow-auto-scrolled.html (#35011)
  • OK /fetch/metadata/generated/css-font-face.sub.tentative.html (#34624)
    • FAIL [expected PASS] subtest: sec-fetch-storage-access - Not sent to non-trustworthy same-site destination

      promise_test: Unhandled rejection with value: object "Error: Failed to query for recorded headers."
      

    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Not sent to non-trustworthy cross-site destination
  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-nosrc.html (#34819)
    • FAIL [expected PASS] subtest: link click

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?1" but got "about:blank"
      

    • PASS [expected FAIL] subtest: form submission
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-cross-origin.sub.window.html (#29056)
    • PASS [expected FAIL] subtest: Cross-origin navigation started from unload handler must be ignored
  • OK [expected ERROR] /html/canvas/element/manual/imagebitmap/createImageBitmap-colorSpaceConversion.html (#34151)
  • TIMEOUT [expected ERROR] /html/canvas/element/manual/imagebitmap/createImageBitmap-serializable.html (#34120)
  • TIMEOUT [expected ERROR] /html/canvas/element/manual/imagebitmap/createImageBitmap-transfer.html (#34119)
  • CRASH [expected OK] /html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.html (#34117)
  • OK [expected TIMEOUT] /html/infrastructure/urls/base-url/document-base-url-window-initiator-is-not-opener.https.window.html (#30970)
  • OK [expected CRASH] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-2.html (#22667)
    • FAIL [expected TIMEOUT] subtest: Check that popups from a sandboxed iframe escape the sandbox if allow-popups-to-escape-sandbox is used

      assert_equals: It came from a sandboxed iframe expected "null" but got "http://web-platform.test:8000"
      

  • CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html (#24066)
  • CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html (#24066)
  • OK /html/semantics/forms/form-submission-0/form-submit-iframe-then-location-navigate.html (#29634)
    • PASS [expected FAIL] subtest: Verifies that location navigations take precedence when following form submissions.
  • OK /html/semantics/forms/historical.html (#28568)
    • FAIL [expected PASS] subtest: <input name=isindex> should not be supported

      assert_regexp_match: expected object "/\?isindex=x$/" but got "about:blank"
      

  • OK /navigation-timing/test-navigation-type-reload.html (#33334)
    • PASS [expected FAIL] subtest: Reload domContentLoadedEventEnd > Original domContentLoadedEventEnd
Stable unexpected results (4)
  • TIMEOUT /FileAPI/BlobURL/cross-partition-navigation.https.html
    • FAIL [expected PASS] subtest: Blob URL should partition subframe navigation.

      promise_test: Unhandled rejection with value: "Blob URL subframe navigation succeeded in not-same-top-level-site iframe."
      

  • OK /webdriver/tests/classic/execute_script/arguments.py
    • FAIL [expected PASS] subtest: test_no_such_element_from_other_window_handle[open]

      assert 200 == 404
      

    • FAIL [expected PASS] subtest: test_no_such_element_from_other_window_handle[closed]

      assert 200 == 404
      

    • FAIL [expected PASS] subtest: test_no_such_element_from_other_frame[open]

      webdriver.error.NoSuchFrameException: no such frame (404)
      

    • FAIL [expected PASS] subtest: test_no_such_element_from_other_frame[closed]

      webdriver.error.NoSuchFrameException: no such frame (404)
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_with_unknown_id

      assert 200 == 404
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_from_other_window_handle[open]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_from_other_window_handle[closed]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_from_other_frame[open]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_from_other_frame[closed]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_detached_shadow_root_reference[top_context]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • And 18 more unexpected results...
  • OK [expected TIMEOUT] /webdriver/tests/classic/find_elements_from_shadow_root/find.py
    • FAIL [expected PASS] subtest: test_null_parameter_value

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_no_top_browsing_context

      assert 500 == 404
      

    • ERROR [expected PASS] subtest: test_no_browsing_context

      setup error: AttributeError: 'NoneType' object has no attribute 'click'
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_with_element

      AttributeError: 'NoneType' object has no attribute 'id'
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_with_unknown_shadow_root

      assert 500 == 404
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_with_shadow_root_from_other_window_handle

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_with_shadow_root_from_other_frame

      webdriver.error.UnsupportedOperationException: unsupported operation (500): Selecting frame by id not supported
      

    • FAIL [expected PASS] subtest: test_detached_shadow_root[top_context]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_detached_shadow_root[child_context]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_no_elements_with_unknown_selector[not-existent]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • And 42 more unexpected results...
  • OK /webdriver/tests/classic/new_window/new_window.py
    • ERROR [expected PASS] subtest: test_payload

      teardown error: http.client.RemoteDisconnected: Remote end closed connection without response
      

    • ERROR [expected PASS] subtest: test_keeps_current_window_handle

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_opens_about_blank_in_new_window

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_sets_no_window_name

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_sets_no_opener

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_initial_selection_for_contenteditable

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#12815220774) failed.

@jdm

jdm commented Jan 16, 2025

Copy link
Copy Markdown
Member Author

It looks like there's a higher rate of intermittent results than I'm currently comfortable with.

@jdm
jdm force-pushed the enable-webdriver-tests branch from 96ff8b5 to 3c5332a Compare April 24, 2025 02:25
@jdm jdm added the T-linux-wpt Do a try run of the WPT label Apr 24, 2025
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Apr 24, 2025
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#14632068796) for Linux (WPT)

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#14632068796) failed.

@jdm
jdm force-pushed the enable-webdriver-tests branch from 3c5332a to 227e1e5 Compare April 24, 2025 04:13
@jdm jdm added the T-linux-wpt Do a try run of the WPT label Apr 24, 2025
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Apr 24, 2025
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#14633271710) for Linux (WPT)

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#14633271710) failed.

@jdm

jdm commented Apr 24, 2025

Copy link
Copy Markdown
Member Author

The tests that consistently panic (eg. forward/forward.py and back/back.py) or intermittently panic (many instance of test_no_browsing_context across different test files) are a significant source of intermittent results, because they cause a subset of tests following them to fail to run due to connection issues with the webdriver server.

@jdm jdm added the T-linux-wpt Do a try run of the WPT label Apr 24, 2025
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Apr 24, 2025
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#14633959294) for Linux (WPT)

@longvatrong111

Copy link
Copy Markdown
Contributor

The tests that consistently panic (eg. forward/forward.py and back/back.py) or intermittently panic (many instance of test_no_browsing_context across different test files) are a significant source of intermittent results, because they cause a subset of tests following them to fail to run due to connection issues with the webdriver server.

I think it's caused by a lot of receiver.recv().unwrap(). I will extend my PR #36660 to fix.

@jdm

jdm commented Apr 24, 2025

Copy link
Copy Markdown
Member Author

The tests that consistently panic (eg. forward/forward.py and back/back.py) or intermittently panic (many instance of test_no_browsing_context across different test files) are a significant source of intermittent results, because they cause a subset of tests following them to fail to run due to connection issues with the webdriver server.

I think it's caused by a lot of receiver.recv().unwrap(). I will extend my PR #36660 to fix.

I have a commit in fc55c94 that addresses this. The remaining panics are not caused by that.

@longvatrong111

Copy link
Copy Markdown
Contributor

The tests that consistently panic (eg. forward/forward.py and back/back.py) or intermittently panic (many instance of test_no_browsing_context across different test files) are a significant source of intermittent results, because they cause a subset of tests following them to fail to run due to connection issues with the webdriver server.

I think it's caused by a lot of receiver.recv().unwrap(). I will extend my PR #36660 to fix.

I have a commit in fc55c94 that addresses this. The remaining panics are not caused by that.

Oh I see. So it fixed consistently panic.

@longvatrong111

Copy link
Copy Markdown
Contributor

@jdm Btw, thank for this PR. I guess still now on, we should make change of WebDriver based on this right?
Is anyone working in fixing perform_actions tests?

@jdm

jdm commented Apr 24, 2025

Copy link
Copy Markdown
Member Author

I'm not aware of anybody working on perform_action.

@github-actions

Copy link
Copy Markdown

Test results for linux-wpt from try job (#14633959294):

Flaky unexpected result (22)
  • TIMEOUT [expected OK] /_webgl/conformance/uniforms/out-of-bounds-uniform-array-access.html (#26225)
    • NOTRUN [expected PASS] subtest: Overall test
  • OK /content-security-policy/generic/invalid-characters-in-policy.html (#36505)
    • FAIL [expected PASS] subtest: Should load image without any CSP - meta tag

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • FAIL [expected PASS] subtest: Should load image without any CSP - HTTP header

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • PASS [expected FAIL] subtest: Should not load image with 'none' CSP - meta tag
    • PASS [expected FAIL] subtest: Should not load image with 'none' CSP - HTTP header
    • FAIL [expected PASS] subtest: Non-ASCII character in directive value should drop the whole directive. - meta tag

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • FAIL [expected PASS] subtest: Non-ASCII character in directive value should drop the whole directive. - HTTP header

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • FAIL [expected PASS] subtest: Non-ASCII quote character in directive value should drop the whole directive. - meta tag

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • FAIL [expected PASS] subtest: Non-ASCII quote character in directive value should drop the whole directive. - HTTP header

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • PASS [expected FAIL] subtest: Non-ASCII character in directive value should not affect other directives. - meta tag
    • PASS [expected FAIL] subtest: Non-ASCII character in directive value should not affect other directives. - HTTP header
    • And 2 more unexpected results...
  • FAIL [expected PASS] /css/css-overflow/line-clamp/line-clamp-with-floats-010.tentative.html (#35018)
  • OK /html/browsers/browsing-the-web/navigating-across-documents/005.html (#27062)
    • PASS [expected FAIL] subtest: Link with onclick navigation and href navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)
    • FAIL [expected PASS] subtest: Tests that a fragment navigation in the unload handler will not block the initial navigation

      assert_equals: expected "" but got "#fragment"
      

  • OK /html/browsers/history/the-history-interface/traverse_the_history_4.html (#21383)
    • PASS [expected FAIL] subtest: Multiple history traversals, last would be aborted
  • CRASH [expected OK] /html/canvas/element/canvas-host/2d.canvas.host.size.large.html (#36155)
  • ERROR [expected TIMEOUT] /html/canvas/element/manual/imagebitmap/createImageBitmap-serializable.html (#34120)
  • CRASH [expected OK] /html/semantics/embedded-content/media-elements/media_fragment_seek.html (#24114)
  • CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-2.html (#22667)
  • TIMEOUT [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html (#24066)
    • NOTRUN [expected FAIL] subtest: Check that popups from a sandboxed iframe do not escape the sandbox
  • OK /html/semantics/forms/form-submission-0/multipart-formdata.window.html (#28725)
    • PASS [expected FAIL] subtest: multipart/form-data: 0x00 in value (formdata event)
  • OK /html/semantics/forms/form-submission-0/text-plain.window.html (#28687)
    • PASS [expected FAIL] subtest: text/plain: 0x00 in name (normal form)
  • OK [expected TIMEOUT] /performance-timeline/navigation-id-detached-frame.tentative.html (#34773)
    • PASS [expected TIMEOUT] subtest: The navigation_id getter does not crash a window of detached frame
  • OK /resize-observer/change-layout-in-error.html (#32629)
    • PASS [expected FAIL] subtest: Changing layout in window error handler should not result in lifecyle loop when resize observer loop limit is reached.
  • TIMEOUT [expected OK] /webdriver/tests/classic/find_elements_from_shadow_root/find.py
  • OK /webdriver/tests/classic/get_current_url/iframe.py
    • ERROR [expected PASS] subtest: test_iframe

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_nested_iframe

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_origin[same_origin]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_origin[cross_origin]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK /webdriver/tests/classic/get_element_css_value/get.py
    • ERROR [expected FAIL] subtest: test_no_top_browsing_context

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_no_such_element_with_invalid_value

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_with_shadow_root

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_from_other_window_handle[open]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_from_other_window_handle[closed]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_from_other_frame[open]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_from_other_frame[closed]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_stale_element_reference[top_context]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_stale_element_reference[child_context]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_property_name_value

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • And 1 more unexpected results...
  • OK /webdriver/tests/classic/get_element_text/get.py
    • ERROR [expected FAIL] subtest: test_no_top_browsing_context

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_no_such_element_with_invalid_value

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_with_shadow_root

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_from_other_window_handle[open]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_from_other_window_handle[closed]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_from_other_frame[open]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_no_such_element_from_other_frame[closed]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_stale_element_reference[top_context]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_stale_element_reference[child_context]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_read_element_text

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • And 10 more unexpected results...
  • OK /webdriver/tests/classic/switch_to_window/alerts.py
    • ERROR [expected FAIL] subtest: test_retain_tab_modal_status

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK /webdriver/tests/classic/take_screenshot/screenshot.py
    • ERROR [expected FAIL] subtest: test_no_top_browsing_context

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_format_and_dimensions

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK /workers/dedicated-worker-from-blob-url.window.html (#22286)
    • PASS [expected FAIL] subtest: Creating a dedicated worker from a blob URL works immediately before revoking.
Stable unexpected results that are known to be intermittent (14)
  • TIMEOUT /content-security-policy/generic/only-valid-whitespaces-are-allowed.html (#36505)
    • PASS [expected FAIL] subtest: Should load image without any CSP - meta tag
    • PASS [expected FAIL] subtest: Should load image without any CSP - HTTP header
    • FAIL [expected PASS] subtest: Should not load image with 'none' CSP - meta tag

      assert_equals: expected "img not loaded" but got "img loaded"
      

    • FAIL [expected PASS] subtest: Should not load image with 'none' CSP - HTTP header

      assert_equals: expected "img not loaded" but got "img loaded"
      

    • FAIL [expected PASS] subtest: U+0009 TAB should be properly parsed between directive name and value - meta tag

      assert_equals: expected "img not loaded" but got "img loaded"
      

    • FAIL [expected PASS] subtest: U+0009 TAB should be properly parsed between directive name and value - HTTP header

      assert_equals: expected "img not loaded" but got "img loaded"
      

    • FAIL [expected PASS] subtest: U+000C FF should be properly parsed between directive name and value - meta tag

      assert_equals: expected "img not loaded" but got "img loaded"
      

    • FAIL [expected PASS] subtest: U+000A LF should be properly parsed between directive name and value - meta tag

      assert_equals: expected "img not loaded" but got "img loaded"
      

    • FAIL [expected PASS] subtest: U+000D CR should be properly parsed between directive name and value - meta tag

      assert_equals: expected "img not loaded" but got "img loaded"
      

    • FAIL [expected PASS] subtest: U+0020 SPACE should be properly parsed between directive name and value - meta tag

      assert_equals: expected "img not loaded" but got "img loaded"
      

    • And 12 more unexpected results...
  • OK /fetch/metadata/generated/css-font-face.https.sub.tentative.html (#32732)
    • PASS [expected FAIL] subtest: sec-fetch-dest
    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Cross-site
    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Same site
  • OK /html/browsers/browsing-the-web/navigating-across-documents/008.html (#24456)
    • FAIL [expected PASS] subtest: Link with onclick form submit to javascript url and href navigation

      assert_equals: expected "href" but got "click"
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/009.html (#24456)
    • FAIL [expected PASS] subtest: Link with onclick form submit to javascript url with document.write and href navigation

      assert_array_equals: expected property 1 to be "href" but got "click" (expected array ["write", "href"] got ["write", "click"])
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/empty-iframe-load-event.html (#29066)
    • PASS [expected FAIL] subtest: Check execution order on load handler
    • PASS [expected FAIL] subtest: Check execution order from nested timeout
  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-nosrc.html (#34819)
    • FAIL [expected PASS] subtest: link click

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?1" but got "about:blank"
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin.window.html (#29049)
    • FAIL [expected PASS] subtest: Same-origin navigation started from unload handler must be ignored

      assert_equals: expected "?pass" but got "?fail"
      

  • CRASH [expected OK] /html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.worker.html (#30164)
  • OK [expected TIMEOUT] /html/infrastructure/urls/base-url/document-base-url-window-initiator-is-not-opener.https.window.html (#30970)
  • OK [expected TIMEOUT] /html/interaction/focus/the-autofocus-attribute/supported-elements.html (#24145)
    • PASS [expected TIMEOUT] subtest: Non-HTMLElement should not support autofocus
    • FAIL [expected NOTRUN] subtest: Host element with delegatesFocus should support autofocus

      assert_equals: expected Element node <div autofocus=""></div> but got Element node <body></body>
      

    • FAIL [expected NOTRUN] subtest: Host element with delegatesFocus including no focusable descendants should be skipped

      assert_equals: expected Element node <input autofocus=""></input> but got Element node <body></body>
      

    • FAIL [expected NOTRUN] subtest: Area element should support autofocus

      promise_test: Unhandled rejection with value: object "TypeError: w.document.querySelector(...) is null"
      

  • OK /navigation-timing/test-navigation-type-reload.html (#33334)
    • PASS [expected FAIL] subtest: Reload domComplete > Original domComplete
    • PASS [expected FAIL] subtest: Reload domContentLoadedEventEnd > Original domContentLoadedEventEnd
    • PASS [expected FAIL] subtest: Reload domContentLoadedEventStart > Original domContentLoadedEventStart
    • PASS [expected FAIL] subtest: Reload domInteractive > Original domInteractive
    • PASS [expected FAIL] subtest: Reload fetchStart > Original fetchStart
  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}. Index Actual Expected AbsError RelError Test threshold [14680] -3.4997003240277991e-5 2.0512369275093079e-1 2.0515868975417106e-1 1.0001706141439388e+0 3.8985999999999999e-3 [14681] 1.1480505578219891e-2 1.4340442419052124e-1 1.3192391861230135e-1 9.1994315626575540e-1 3.8985999999999999e-3 Max AbsError of 2.0515868975417106e-1 at index of 14680. Max RelError of 1.0001706141439388e+0 at index of 14680.

      assert_true: expected true got false
      

    • FAIL [expected PASS] subtest: X SNR (55.28336388231291 dB) is not greater than or equal to 65.737. Got 55.28336388231291.

      assert_true: expected true got false
      

  • ERROR [expected OK] /webxr/render_state_update.https.html (#27535)
  • OK /workers/WorkerGlobalScope-close.html (#23064)
    • FAIL [expected PASS] subtest: Test sending a message after closing.

      assert_not_equals: got disallowed value "pong"
      

Stable unexpected results (5)
  • OK /webdriver/tests/classic/back/back.py
    • ERROR [expected FAIL] subtest: test_no_top_browsing_context

      teardown error: 
      

    • ERROR [expected PASS] subtest: test_no_browsing_history

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_seen_nodes[http]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_seen_nodes[https]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_seen_nodes[https coop]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_data_urls

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_fragments

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_history_pushstate

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_removed_iframe

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK [expected TIMEOUT] /webdriver/tests/classic/find_element_from_shadow_root/find.py
    • FAIL [expected PASS] subtest: test_null_parameter_value

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_no_top_browsing_context

      assert 500 == 404
      

    • ERROR [expected PASS] subtest: test_no_browsing_context

      setup error: AttributeError: 'NoneType' object has no attribute 'click'
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_with_element

      AttributeError: 'NoneType' object has no attribute 'id'
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_with_unknown_shadow_root

      assert 500 == 404
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_with_shadow_root_from_other_window_handle

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_no_such_shadow_root_with_shadow_root_from_other_frame

      webdriver.error.UnsupportedOperationException: unsupported operation (500): Selecting frame by id not supported
      

    • FAIL [expected PASS] subtest: test_detached_shadow_root[top_context]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_detached_shadow_root[child_context]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • FAIL [expected PASS] subtest: test_no_such_element_with_unknown_selector[not-existent]

      AttributeError: 'NoneType' object has no attribute 'shadow_root'
      

    • And 42 more unexpected results...
  • OK /webdriver/tests/classic/get_window_rect/get.py
    • PASS [expected FAIL] subtest: test_payload
  • OK /webdriver/tests/classic/new_window/new_tab.py
    • PASS [expected FAIL] subtest: test_payload
  • OK /webdriver/tests/classic/take_screenshot/iframe.py
    • PASS [expected FAIL] subtest: test_always_captures_top_browsing_context

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#14633959294) failed.

@jdm
jdm force-pushed the enable-webdriver-tests branch from f54d807 to 2b33067 Compare April 24, 2025 05:52
Comment thread python/wpt/run.py Resolved

@xiaochengh xiaochengh 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.

Looks exciting!

Is this PR blocked by the test flakes only?

if let Some(chan) = opt_chan {
chan.send(Err(WebDriverJSError::Timeout)).unwrap();
let _ = chan.send(Err(WebDriverJSError::Timeout));
}

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.

What's the purpose of the unused variable in let _ = chan.send(...);? Can it simply be chan.send(...);?

@jdm

jdm commented Apr 29, 2025

Copy link
Copy Markdown
Member Author

Looks exciting!

Is this PR blocked by the test flakes only?

This PR is not blocked, since I am no longer trying to enable the tests in CI in this PR. Enabling the tests in CI is blocked on the intermittent failures.

@xiaochengh

Copy link
Copy Markdown
Contributor

Looks exciting!
Is this PR blocked by the test flakes only?

This PR is not blocked, since I am no longer trying to enable the tests in CI in this PR. Enabling the tests in CI is blocked on the intermittent failures.

What's the current plan to enable tests in CI? Are we still going to add a new workflow with webdriver tests enabled?

@jdm
jdm force-pushed the enable-webdriver-tests branch from 86a5ab3 to 0f390ee Compare April 30, 2025 04:02
@jdm

jdm commented Apr 30, 2025

Copy link
Copy Markdown
Member Author

Looks exciting!
Is this PR blocked by the test flakes only?

This PR is not blocked, since I am no longer trying to enable the tests in CI in this PR. Enabling the tests in CI is blocked on the intermittent failures.

What's the current plan to enable tests in CI? Are we still going to add a new workflow with webdriver tests enabled?

I want to fix the issues triggering the intermittent failures and then enable the conformance tests by default. I think you're asking about tests that rely on testdriver, which is a separate question. I, personally, am not working on solving that question at this time.

@jdm
jdm requested a review from mrobinson May 1, 2025 18:13
@jdm

jdm commented May 1, 2025

Copy link
Copy Markdown
Member Author

It would be nice to be able to merge this if there are no other concerns.

@mrobinson mrobinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! Very excited for the future of webdriver support.

@jdm
jdm added this pull request to the merge queue May 1, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 1, 2025
@jdm
jdm enabled auto-merge May 1, 2025 20:42
@jdm
jdm added this pull request to the merge queue May 1, 2025
Merged via the queue into servo:main with commit 46f59e3 May 1, 2025
@jdm
jdm deleted the enable-webdriver-tests branch May 1, 2025 21:46
PotatoCP pushed a commit to PotatoCP/servo that referenced this pull request May 7, 2025
web-platform-tests/wpt#50041 allows us to start
running the webdriver conformance tests in Servo, which will make it
easier for us to track regressions/improvements in our webdriver server
implementation.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes are part of servo#15274
- [x] There are tests for these changes

---------

Signed-off-by: Josh Matthews <[email protected]>
github-merge-queue Bot pushed a commit that referenced this pull request May 10, 2025
Extend `wait_for_script_response()`
(#35024) for `actions.rs`

Signed-off-by: PotatoCP <[email protected]>
Co-authored-by: PotatoCP <[email protected]>
AmalenduManoj pushed a commit to AmalenduManoj/servo that referenced this pull request May 12, 2025
Extend `wait_for_script_response()`
(servo#35024) for `actions.rs`

Signed-off-by: PotatoCP <[email protected]>
Co-authored-by: PotatoCP <[email protected]>
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.

6 participants