<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>186913</bug_id>
          
          <creation_ts>2018-06-22 01:47:55 -0700</creation_ts>
          <short_desc>[GLIB] Several TestSSL tests are failing only in the bots</short_desc>
          <delta_ts>2018-10-29 13:32:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>csaavedra</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1435384</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2018-06-22 01:47:55 -0700</bug_when>
    <thetext>/webkit/WebKitWebView/tls-errors-policy:                            FAIL
ERROR:/home/slave/webkitgtk/gtk-linux-64-release/build/Tools/TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp:44:virtual void SSLTest::provisionalLoadFailed(const gchar*, GError*): assertion failed (error == (soup_http_error_quark, 6)): WebKit encountered an internal error (WebKitErrorDomain, 300)

(process:67260): GLib-GIO-CRITICAL **: g_tls_connection_get_peer_certificate_errors: assertion &apos;G_IS_TLS_CONNECTION (conn)&apos; failed

  /webkit/WebKitWebView/load-failed-with-tls-errors:                  FAIL
ERROR:/home/slave/webkitgtk/gtk-linux-64-release/build/Tools/TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp:44:virtual void SSLTest::provisionalLoadFailed(const gchar*, GError*): assertion failed (error == (soup_http_error_quark, 6)): WebKit encountered an internal error (WebKitErrorDomain, 300)

(process:67377): GLib-GIO-CRITICAL **: g_tls_connection_get_peer_certificate_errors: assertion &apos;G_IS_TLS_CONNECTION (conn)&apos; failed

I can&apos;t reproduce this locally. It happens in the bots for both GTK and WPE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1445808</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-07-27 12:31:00 -0700</bug_when>
    <thetext>Also /webkit/WebKitWebView/tls-subresource (flaky):


  /webkit/WebKitWebView/tls-subresource:                              FAIL
ERROR:/home/slave/webkitgtk/gtk-linux-64-release/build/Tools/TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp:298:static void TLSSubresourceTest::subresourceFailedCallback(WebKitWebResource*, GError*): code should not be reached



There&apos;s also a huge amount of warnings, which are *not* failing the tests, which is bad. I think the problem is the warnings are coming from the network or web process. UI process warnings would surely cause the tests to fail. I think we should run the tests with G_DEBUG=fatal-warnings to ensure these don&apos;t get ignored:


TEST: ./Tools/glib/../../WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestSSL...
  /webkit/WebKitWebView/ssl:                                          PASS
  /webkit/WebKitWebView/insecure-content:                             PASS
  /webkit/WebKitWebView/tls-errors-policy:                            PASS

(process:2989): GLib-GIO-CRITICAL **: g_tls_connection_get_peer_certificate_errors: assertion &apos;G_IS_TLS_CONNECTION (conn)&apos; failed
  /webkit/WebKitWebView/tls-errors-redirect-to-http:                  PASS

(process:3031): GLib-GIO-CRITICAL **: g_tls_connection_get_peer_certificate_errors: assertion &apos;G_IS_TLS_CONNECTION (conn)&apos; failed
  /webkit/WebKitWebView/tls-http-auth:                                PASS

(process:3059): GLib-GIO-CRITICAL **: g_tls_connection_get_peer_certificate_errors: assertion &apos;G_IS_TLS_CONNECTION (conn)&apos; failed
  /webkit/WebKitWebView/tls-subresource:                              FAIL
ERROR:/home/slave/webkitgtk/gtk-linux-64-release/build/Tools/TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp:298:static void TLSSubresourceTest::subresourceFailedCallback(WebKitWebResource*, GError*): code should not be reached

(process:3087): GLib-GIO-CRITICAL **: g_tls_connection_get_peer_certificate_errors: assertion &apos;G_IS_TLS_CONNECTION (conn)&apos; failed
  /webkit/WebKitWebView/load-failed-with-tls-errors:                  FAIL
ERROR:/home/slave/webkitgtk/gtk-linux-64-release/build/Tools/TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp:267:void testLoadFailedWithTLSErrors(TLSErrorsTest*, gconstpointer): assertion failed (test-&gt;m_loadEvents[1] == LoadTrackingTest::LoadCommitted): (6 == 3)

(process:3118): GLib-GIO-CRITICAL **: g_tls_connection_get_peer_certificate_errors: assertion &apos;G_IS_TLS_CONNECTION (conn)&apos; failed

(process:3144): GLib-GIO-CRITICAL **: g_tls_connection_get_peer_certificate_errors: assertion &apos;G_IS_TLS_CONNECTION (conn)&apos; failed
  /webkit/WebKitWebView/web-socket-tls-errors:                        PASS
libsoup-DEBUG: stopping input source
libsoup-DEBUG: closing io stream
libsoup-DEBUG: closed: completed io stream close
libsoup-DEBUG: stopping input source
libsoup-DEBUG: closing io stream
libsoup-DEBUG: closed: completed io stream close</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472874</commentid>
    <comment_count>2</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2018-10-29 01:17:47 -0700</bug_when>
    <thetext>Carlos had fixed this in libsoup some time ago but the patch was not added to jhbuild. I did last week so this is not failing anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472875</commentid>
    <comment_count>3</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2018-10-29 01:23:04 -0700</bug_when>
    <thetext>Committed r237542: &lt;https://trac.webkit.org/changeset/237542&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1473026</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-10-29 13:32:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/45647195&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>