<?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>153919</bug_id>
          
          <creation_ts>2016-02-05 09:25:57 -0800</creation_ts>
          <short_desc>tests fail if display sleeps while run-webkit-tests is running</short_desc>
          <delta_ts>2017-02-14 16:13:11 -0800</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 Local Build</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Adler">darin</reporter>
          <assigned_to name="Aakash Jain">aakash_jain</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jbedard</cc>
    
    <cc>lforschler</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1162403</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-02-05 09:25:57 -0800</bug_when>
    <thetext>For a while I’ve been suffering a problem where I see tests fail if the display sleeps while run-webkit-tests runs.

While I don’t understand the underlying cause, I see a really simple way to work around this by invoking the OS X command line tool named caffeinate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162404</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-02-05 09:26:56 -0800</bug_when>
    <thetext>This is a practical problem for me because my home iMac is in a public place where I don’t want the distracting light when I’m not using it, so display sleep is set super-fast, 1 minute I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162405</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-02-05 09:27:51 -0800</bug_when>
    <thetext>Ideally we’d fix the tests so they don’t fail when the display is asleep but I don’t have the slightest idea why they fail so it’s much more practical to do the workaround. Testing it now to be sure it actually works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162406</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-02-05 09:29:15 -0800</bug_when>
    <thetext>We can easily prevent display sleep from LayoutTestHelper as well. Is preventing display sleep during layout tests an acceptable behavior for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162411</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-02-05 09:37:16 -0800</bug_when>
    <thetext>Yes, it would be better then the failing tests. Most of the time my computer is not running tests.

And then perhaps some day we could figure out how to run tests while the display is asleep.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162412</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-02-05 09:40:59 -0800</bug_when>
    <thetext>Yes, agreed.

I think that using IOPMAssertionCreateWithDescription would probably be more robust that using caffeinate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162416</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-02-05 09:44:58 -0800</bug_when>
    <thetext>I’m not sure what you mean by &quot;robust&quot; but I really don’t prefer one over the other. Just want to make sure that wherever we put the code we explain why we are doing it.

Despite the fact that this is assigned to me, if someone else wants to tackle it, please feel free to grab the bug. I have a patch to address this, but currently it’s wrong and I don’t know when I will have time to make it right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162425</commentid>
    <comment_count>7</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-02-05 10:31:59 -0800</bug_when>
    <thetext>I&apos;ll work on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162540</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-02-05 17:00:09 -0800</bug_when>
    <thetext>&gt; I’m not sure what you mean by &quot;robust&quot;

If we were to spawn the caffeinate process, we would at least need to add it to Tools/BuildSlaveSupport/kill-old-processes, and might need special handling elsewhere. The reason is that when buildbot kills run-webkit-tests, that doesn&apos;t happen very cleanly. I&apos;m not sure if that&apos;s an issue with buildbot, with our scripts, or even with process group leader support in Darwin.

By adding this functionality to LayoutTestHelper, we avoid creating new special cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162559</commentid>
    <comment_count>9</comment_count>
      <attachid>270785</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-02-05 19:02:47 -0800</bug_when>
    <thetext>Created attachment 270785
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162575</commentid>
    <comment_count>10</comment_count>
      <attachid>270785</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-02-05 23:01:00 -0800</bug_when>
    <thetext>Comment on attachment 270785
Proposed patch

Clearing flags on attachment: 270785

Committed r196212: &lt;http://trac.webkit.org/changeset/196212&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162576</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-02-05 23:01:02 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162612</commentid>
    <comment_count>12</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-02-06 08:23:32 -0800</bug_when>
    <thetext>Thanks. I’ll give this a try and see if it solves my problem at home.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197075</commentid>
    <comment_count>13</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-27 08:30:00 -0700</bug_when>
    <thetext>I have been having the same old problem even with this code checked in.

But when I instead do &quot;caffeinate run-webkit-tests&quot; from the command line, it solves the problem just as it always did.

Maybe LayoutTestHelper is used only for WebKit 1 testing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197076</commentid>
    <comment_count>14</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-27 08:30:35 -0700</bug_when>
    <thetext>I’m going to reopen this bug because the problem is not fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197230</commentid>
    <comment_count>15</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-05-27 15:02:52 -0700</bug_when>
    <thetext>I am not able to reproduce it. I tried running run-webkit-tests both for wk1 and wk2 (on mac). In another terminal window I did &quot;pmset -g assertions .” to check the flags and in both cases I found that LayoutTestHelper is correctly setting the flags.

[buildbot]$ pmset -g assertions . | grep -i webkit
   pid 90229(LayoutTestHelper): [0x000a751700058f5b] 00:00:01 PreventUserIdleDisplaySleep named: &quot;WebKit LayoutTestHelper&quot; 
	Details: WebKit layout-test helper tool is preventing sleep.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197246</commentid>
    <comment_count>16</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-27 15:33:35 -0700</bug_when>
    <thetext>To test this, did you set a Mac’s Energy Saver setting to turn the display off after 1 minute? We can see from our first unsuccessful attempt that it’s hard to know if we fixed this by just looking at the flag; we’ll need to test our solution by actually reproducing the problem I was seeing.

In my testing run-webkit-tests with caffeinate works, and without caffeinate hundreds of tests fail.

I am not disputing that the tool sets that flag on your computer. Maybe the flag isn’t set successfully on my computer (I will check tonight)? Maybe we need one of these other flags too?

PreventSystemSleep
PreventUserIdleSystemSleep</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197250</commentid>
    <comment_count>17</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-05-27 15:48:27 -0700</bug_when>
    <thetext>ok. I was trying on a lab&apos;s bot machine. I will try it on my local machine by configuring the Mac’s Energy Saver setting and checking tests results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197339</commentid>
    <comment_count>18</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-05-28 00:04:51 -0700</bug_when>
    <thetext>I am trying to reproduce this on my laptop, but not able to reproduce it yet. In both wk1 and wk2, I notice that &quot;PreventUserIdleDisplaySleep&quot; flag is being set properly by &quot;WebKit LayoutTestHelper&quot;. Also my laptop&apos;s display doesn&apos;t turn off while tests are running. If I stop the tests, my laptop display turns off after a minute or two. I will debug it further. Meanwhile it would be great if you can check if the flag is being set on your computer or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197341</commentid>
    <comment_count>19</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-05-28 00:28:26 -0700</bug_when>
    <thetext>I checked caffeinate, it sets another flag &quot;PreventUserIdleSystemSleep&quot; (same as the one you mentioned above), while we were setting &quot;PreventUserIdleDisplaySleep&quot; flag. Since caffeinate works for you, setting this flag should also work. I&apos;ll upload a patch soon for you to try.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197343</commentid>
    <comment_count>20</comment_count>
      <attachid>280028</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-05-28 00:38:01 -0700</bug_when>
    <thetext>Created attachment 280028
Proposed patch

Please give it a try.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197387</commentid>
    <comment_count>21</comment_count>
      <attachid>280028</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-28 09:56:30 -0700</bug_when>
    <thetext>Comment on attachment 280028
Proposed patch

I think we want to prevent both, right? Well I will try this as you posted it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197397</commentid>
    <comment_count>22</comment_count>
      <attachid>280028</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-28 10:52:49 -0700</bug_when>
    <thetext>Comment on attachment 280028
Proposed patch

This patch didn’t work. The tests all still timed out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197398</commentid>
    <comment_count>23</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-28 10:54:54 -0700</bug_when>
    <thetext>Sorry, I meant to say &quot;many tests timed out&quot;. Not all. New info coming soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197400</commentid>
    <comment_count>24</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-28 10:55:44 -0700</bug_when>
    <thetext>There may have been something wrong with my experiment. I will try again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197402</commentid>
    <comment_count>25</comment_count>
      <attachid>280028</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-28 11:05:51 -0700</bug_when>
    <thetext>Comment on attachment 280028
Proposed patch

My mistake. This seems to be working fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197405</commentid>
    <comment_count>26</comment_count>
      <attachid>280028</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-05-28 11:26:40 -0700</bug_when>
    <thetext>Comment on attachment 280028
Proposed patch

Clearing flags on attachment: 280028

Committed r201489: &lt;http://trac.webkit.org/changeset/201489&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197406</commentid>
    <comment_count>27</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-05-28 11:26:44 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197500</commentid>
    <comment_count>28</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-29 10:54:23 -0700</bug_when>
    <thetext>Sorry for the mixed message. Many tests are still timing out. This is still not fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197510</commentid>
    <comment_count>29</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-05-29 12:32:02 -0700</bug_when>
    <thetext>Is the display getting turned off or not? Is the behavior different than when executed with caffeinate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197803</commentid>
    <comment_count>30</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-05-31 09:46:13 -0700</bug_when>
    <thetext>I think the display does get turned off. And I don’t think caffeinate solves the problem either.

I don’t think we are going to get this problem solved indirectly with me repeatedly testing different changes. I think the person who wants to this needs to reproduce the problem. I’ll be happy to test once we have a fix that works for someone else who has reproduced it and sees it fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197829</commentid>
    <comment_count>31</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-05-31 10:55:38 -0700</bug_when>
    <thetext>ok. I was assuming that caffeinate solves the problem properly, so I was just trying to replicate the behavior. 

I will reproduce it properly and fix the underlying cause. I am at a conference currently, but should be able to work on it soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199489</commentid>
    <comment_count>32</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-06-05 21:06:28 -0700</bug_when>
    <thetext>OK, I just tried this experiment:

    % caffeinate -dis run-webkit-tests

When I did that, all the tests passed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199559</commentid>
    <comment_count>33</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-06-06 08:40:59 -0700</bug_when>
    <thetext>This also worked:

    % caffeinate -di run-webkit-tests

Next time I will try just &quot;caffeinate -d&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199625</commentid>
    <comment_count>34</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-06-06 11:00:21 -0700</bug_when>
    <thetext>That indicates that we need both the flags &quot;PreventUserIdleSystemSleep&quot; and &quot;PreventUserIdleDisplaySleep&quot;. &quot;-d&quot; flag sets PreventUserIdleDisplaySleep, &quot;-i&quot; flag sets PreventUserIdleSystemSleep. I think running &quot;caffeinate -d&quot;, should be equivalent to running just &quot;caffeinate&quot;, which you have already tried.

I am trying to reproduce the issue today to confirm it. Sorry for the delay, I was out last week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199639</commentid>
    <comment_count>35</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-06-06 11:25:30 -0700</bug_when>
    <thetext>I’ll keep trying different combinations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1199853</commentid>
    <comment_count>36</comment_count>
      <attachid>280663</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-06-06 19:50:48 -0700</bug_when>
    <thetext>Created attachment 280663
Updated patch

We need both the flags (to make sure that neither display nor system goes to sleep).

I was able to reproduce the issue. Settings these flags fixed the issue for me. This is equivalent of &quot;caffeinate -di&quot;.

Can you please try the patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200492</commentid>
    <comment_count>37</comment_count>
      <attachid>280663</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-06-08 10:38:31 -0700</bug_when>
    <thetext>Comment on attachment 280663
Updated patch

View in context: https://bugs.webkit.org/attachment.cgi?id=280663&amp;action=review

r=me, definitely worth landing since you confirmed that this fixes the problem for you.

&gt; Tools/DumpRenderTree/mac/LayoutTestHelper.m:199
&gt; -static void releaseDisplaySleepAssertion()
&gt; +static void releaseSleepAssertion()

Since there are two assertions here, the function name should be releaseSleepAssertions.

&gt; Tools/DumpRenderTree/mac/LayoutTestHelper.m:245
&gt; -void addDisplaySleepAssertion() 
&gt; +void addSleepAssertion() 

Ditto.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200512</commentid>
    <comment_count>38</comment_count>
      <attachid>280817</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2016-06-08 11:37:27 -0700</bug_when>
    <thetext>Created attachment 280817
Updated patch

Incorporated above review comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200534</commentid>
    <comment_count>39</comment_count>
      <attachid>280817</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-06-08 12:16:24 -0700</bug_when>
    <thetext>Comment on attachment 280817
Updated patch

Clearing flags on attachment: 280817

Committed r201821: &lt;http://trac.webkit.org/changeset/201821&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200535</commentid>
    <comment_count>40</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-06-08 12:16:29 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>270785</attachid>
            <date>2016-02-05 19:02:47 -0800</date>
            <delta_ts>2016-02-05 23:01:00 -0800</delta_ts>
            <desc>Proposed patch</desc>
            <filename>patch_DisplaySleepAssertion</filename>
            <type>text/plain</type>
            <size>2922</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE5NjIwOSkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE1IEBACisyMDE2LTAyLTA1ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICB0ZXN0cyBmYWlsIGlmIGRpc3BsYXkgc2xlZXBzIHdoaWxlIHJ1bi13ZWJr
aXQtdGVzdHMgaXMgcnVubmluZworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z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MjY1LDYgKzI4Miw3IEBAIGludCBtYWluKGludCBhcmdjLCBjaGFy
KiBhcmd2W10pCiAKICAgICAvLyBSZXN0b3JlIHRoZSBwcm9maWxlCiAgICAgcmVzdG9yZVVzZXJD
b2xvclByb2ZpbGUoKTsKKyAgICByZWxlYXNlRGlzcGxheVNsZWVwQXNzZXJ0aW9uKCk7CiAKICAg
ICByZXR1cm4gMDsKIH0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>280028</attachid>
            <date>2016-05-28 00:38:01 -0700</date>
            <delta_ts>2016-05-28 11:26:40 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>patch_display_sleep</filename>
            <type>text/plain</type>
            <size>1431</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIwMTQ4MikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDE2LTA1LTI4ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICB0ZXN0cyBmYWlsIGlmIGRpc3BsYXkgc2xlZXBzIHdoaWxlIHJ1bi13ZWJr
aXQtdGVzdHMgaXMgcnVubmluZworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9MTUzOTE5CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISku
CisKKyAgICAgICAgKiBEdW1wUmVuZGVyVHJlZS9tYWMvTGF5b3V0VGVzdEhlbHBlci5tOgorICAg
ICAgICAoYWRkRGlzcGxheVNsZWVwQXNzZXJ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24oa0lPUE1Bc3NlcnRpb25UeXBlUHJl
dmVudFVzZXJJZGxlU3lzdGVtU2xlZXAsCiAgICAgICAgIGFzc2VydGlvbk5hbWUsIGFzc2VydGlv
bkRldGFpbHMsIGFzc2VydGlvbkRldGFpbHMsIE5VTEwsIDAsIE5VTEwsICZhc3NlcnRpb25JRCk7
CiB9CiAK
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>280663</attachid>
            <date>2016-06-06 19:50:48 -0700</date>
            <delta_ts>2016-06-08 11:37:27 -0700</delta_ts>
            <desc>Updated patch</desc>
            <filename>patch_display_sleep1</filename>
            <type>text/plain</type>
            <size>3359</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIwMTczNCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDE2LTA2LTA2ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICB0ZXN0cyBmYWlsIGlmIGRpc3BsYXkgc2xlZXBzIHdoaWxlIHJ1bi13ZWJr
aXQtdGVzdHMgaXMgcnVubmluZworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9MTUzOTE5CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISku
CisKKyAgICAgICAgKiBEdW1wUmVuZGVyVHJlZS9tYWMvTGF5b3V0VGVzdEhlbHBlci5tOgorICAg
ICAgICAocmVsZWFzZVNsZWVwQXNzZXJ0aW9uKTogUmVsZWFzZSBib3RoIERpc3BsYXkg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lnbmFsSGFuZGxlcik7CiAgICAgc2lnbmFsKFNJR1RFUk0sIHNpbXBs
ZVNpZ25hbEhhbmRsZXIpOwogCi0gICAgYWRkRGlzcGxheVNsZWVwQXNzZXJ0aW9uKCk7CisgICAg
YWRkU2xlZXBBc3NlcnRpb24oKTsKICAgICBsb2NrRG93bkRpc2NyZXRlR3JhcGhpY3MoKTsKIAog
ICAgIC8vIFNhdmUgb2ZmIHRoZSBjdXJyZW50IHByb2ZpbGUsIGFuZCB0aGVuIGluc3RhbGwgdGhl
IGxheW91dCB0ZXN0IHByb2ZpbGUuCkBAIC0yODQsNyArMjg4LDcgQEAgaW50IG1haW4oaW50IGFy
Z2MsIGNoYXIqIGFyZ3ZbXSkKIAogICAgIC8vIFJlc3RvcmUgdGhlIHByb2ZpbGUKICAgICByZXN0
b3JlVXNlckNvbG9yUHJvZmlsZSgpOwotICAgIHJlbGVhc2VEaXNwbGF5U2xlZXBBc3NlcnRpb24o
KTsKKyAgICByZWxlYXNlU2xlZXBBc3NlcnRpb24oKTsKIAogICAgIHJldHVybiAwOwogfQo=
</data>
<flag name="review"
          id="304560"
          type_id="1"
          status="+"
          setter="ap"
    />
    <flag name="commit-queue"
          id="304561"
          type_id="3"
          status="-"
          setter="ap"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>280817</attachid>
            <date>2016-06-08 11:37:27 -0700</date>
            <delta_ts>2016-06-08 12:16:24 -0700</delta_ts>
            <desc>Updated patch</desc>
            <filename>patch_display_sleep2</filename>
            <type>text/plain</type>
            <size>3265</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIwMTgxNCkKKysrIFRvb2xzL0No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