You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@aurora.apache.org by Stephan Erb <se...@apache.org> on 2016/03/18 23:14:38 UTC
Review Request 45055: Fix flickering of the Aurora logo on refresh.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45055/
-----------------------------------------------------------
Review request for Aurora and Joshua Cohen.
Repository: aurora
Description
-------
Refreshing a subpage of /scheduler in Chrome temporarily resize the Aurora
logo. This seems to be due to us loading all scripts and styles in the <body>
after first rending the logo.
By loading all scripts in the header using the `defer` attribute, scripts are
only executed after the entire document has been loaded. They are executed in
order.
Diffs
-----
src/main/resources/scheduler/assets/scheduler/index.html 383ca43dfc14448b67181e9d94dd805ac1bbfaa7
Diff: https://reviews.apache.org/r/45055/diff/
Testing
-------
Thanks,
Stephan Erb
Re: Review Request 45055: Fix flickering of the Aurora logo on
refresh.
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45055/#review124331
-----------------------------------------------------------
Master (b24619b) is green with this patch.
./build-support/jenkins/build.sh
However, it appears that it might lack test coverage.
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On March 18, 2016, 10:14 p.m., Stephan Erb wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45055/
> -----------------------------------------------------------
>
> (Updated March 18, 2016, 10:14 p.m.)
>
>
> Review request for Aurora and Joshua Cohen.
>
>
> Repository: aurora
>
>
> Description
> -------
>
> Refreshing a subpage of /scheduler in Chrome temporarily resize the Aurora
> logo. This seems to be due to us loading all scripts and styles in the <body>
> after first rending the logo.
>
> By loading all scripts in the header using the `defer` attribute, scripts are
> only executed after the entire document has been loaded. They are executed in
> order.
>
>
> Diffs
> -----
>
> src/main/resources/scheduler/assets/scheduler/index.html 383ca43dfc14448b67181e9d94dd805ac1bbfaa7
>
> Diff: https://reviews.apache.org/r/45055/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Stephan Erb
>
>
Re: Review Request 45055: Fix flickering of the Aurora logo on
refresh.
Posted by Joshua Cohen <jc...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45055/#review124479
-----------------------------------------------------------
We should be able to just move the styles into the `head` section and leave the scripts where they are?
My understanding of the "state of the art" (such as it is) with regards to script loading, is that putting them in the correct order, at the end of the body, is still the best practive (see the of "Enough! How should I load scripts?" section of http://www.html5rocks.com/en/tutorials/speed/script-loading/ for the tl;dr, or read the whole thing for the sorry state of affairs).
- Joshua Cohen
On March 18, 2016, 10:14 p.m., Stephan Erb wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45055/
> -----------------------------------------------------------
>
> (Updated March 18, 2016, 10:14 p.m.)
>
>
> Review request for Aurora and Joshua Cohen.
>
>
> Repository: aurora
>
>
> Description
> -------
>
> Refreshing a subpage of /scheduler in Chrome temporarily resize the Aurora
> logo. This seems to be due to us loading all scripts and styles in the <body>
> after first rending the logo.
>
> By loading all scripts in the header using the `defer` attribute, scripts are
> only executed after the entire document has been loaded. They are executed in
> order.
>
>
> Diffs
> -----
>
> src/main/resources/scheduler/assets/scheduler/index.html 383ca43dfc14448b67181e9d94dd805ac1bbfaa7
>
> Diff: https://reviews.apache.org/r/45055/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Stephan Erb
>
>
Re: Review Request 45055: Fix flickering of the Aurora logo on
refresh.
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45055/#review124685
-----------------------------------------------------------
Master (c5254c7) is red with this patch.
./build-support/jenkins/build.sh
[1m proxy_driver = ProxyDriver()[0m
[1m with temporary_dir() as checkpoint_root:[0m
[1m te = AuroraExecutor([0m
[1m> runner_provider=make_provider(checkpoint_root),[0m
[1m sandbox_provider=DefaultTestSandboxProvider())[0m
src/test/python/apache/aurora/executor/test_thermos_executor.py:580:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/test/python/apache/aurora/executor/test_thermos_executor.py:193: in make_provider
[1m pex_location=thermos_runner_path(),[0m
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
build = True
[1m def thermos_runner_path(build=True):[0m
[1m if not build:[0m
[1m return getattr(thermos_runner_path, 'value', None)[0m
[1m [0m
[1m if not hasattr(thermos_runner_path, 'value'):[0m
[1m pex_dir = safe_mkdtemp()[0m
[1m> assert subprocess.call(["./pants", "--pants-distdir=%s" % pex_dir, "binary",[0m
[1m "src/main/python/apache/thermos/runner:thermos_runner"]) == 0[0m
[1m[31mE assert 1 == 0[0m
[1m[31mE + where 1 = <function call at 0x7fd3f3537b18>(['./pants', '--pants-distdir=/tmp/user/10021/tmpU_1x6d', 'binary', 'src/main/python/apache/thermos/runner:thermos_runner'])[0m
[1m[31mE + where <function call at 0x7fd3f3537b18> = subprocess.call[0m
src/test/python/apache/aurora/executor/test_thermos_executor.py:185: AssertionError
-------------- Captured stderr call --------------
Traceback (most recent call last):
File "/home/jenkins/.cache/pants/setup/bootstrap-Linux-x86_64/0.0.75/bin/pants", line 7, in <module>
from pants.bin.pants_exe import main
ImportError: No module named pants.bin.pants_exe
generated xml file: /home/jenkins/jenkins-slave/workspace/AuroraBot/dist/test-results/415337499eb72578eab327a6487c1f5c9452b3d6.xml
[1m[31m 19 failed, 637 passed, 5 skipped, 1 warnings, 8 error in 218.87 seconds [0m
FAILURE
23:48:02 04:42 [complete][31m
FAILURE[0m
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On March 21, 2016, 11:17 p.m., Stephan Erb wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45055/
> -----------------------------------------------------------
>
> (Updated March 21, 2016, 11:17 p.m.)
>
>
> Review request for Aurora and Joshua Cohen.
>
>
> Repository: aurora
>
>
> Description
> -------
>
> Refreshing a subpage of /scheduler in Chrome temporarily resize the Aurora
> logo. This seems to be due to us loading the styles in the <body>
> after first rending the logo. Moving the styles to the header fixes this.
>
>
> Diffs
> -----
>
> src/main/resources/scheduler/assets/scheduler/index.html 383ca43dfc14448b67181e9d94dd805ac1bbfaa7
>
> Diff: https://reviews.apache.org/r/45055/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Stephan Erb
>
>
Re: Review Request 45055: Fix flickering of the Aurora logo on
refresh.
Posted by Joshua Cohen <jc...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45055/#review124691
-----------------------------------------------------------
Ship it!
Ship It!
- Joshua Cohen
On March 21, 2016, 11:17 p.m., Stephan Erb wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45055/
> -----------------------------------------------------------
>
> (Updated March 21, 2016, 11:17 p.m.)
>
>
> Review request for Aurora and Joshua Cohen.
>
>
> Repository: aurora
>
>
> Description
> -------
>
> Refreshing a subpage of /scheduler in Chrome temporarily resize the Aurora
> logo. This seems to be due to us loading the styles in the <body>
> after first rending the logo. Moving the styles to the header fixes this.
>
>
> Diffs
> -----
>
> src/main/resources/scheduler/assets/scheduler/index.html 383ca43dfc14448b67181e9d94dd805ac1bbfaa7
>
> Diff: https://reviews.apache.org/r/45055/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Stephan Erb
>
>
Re: Review Request 45055: Fix flickering of the Aurora logo on
refresh.
Posted by Stephan Erb <se...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45055/
-----------------------------------------------------------
(Updated March 22, 2016, 12:17 a.m.)
Review request for Aurora and Joshua Cohen.
Repository: aurora
Description (updated)
-------
Refreshing a subpage of /scheduler in Chrome temporarily resize the Aurora
logo. This seems to be due to us loading the styles in the <body>
after first rending the logo. Moving the styles to the header fixes this.
Diffs
-----
src/main/resources/scheduler/assets/scheduler/index.html 383ca43dfc14448b67181e9d94dd805ac1bbfaa7
Diff: https://reviews.apache.org/r/45055/diff/
Testing
-------
Thanks,
Stephan Erb
Re: Review Request 45055: Fix flickering of the Aurora logo on
refresh.
Posted by Stephan Erb <se...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45055/
-----------------------------------------------------------
(Updated March 22, 2016, 12:12 a.m.)
Review request for Aurora and Joshua Cohen.
Changes
-------
Only move CSS to the header section.
Repository: aurora
Description
-------
Refreshing a subpage of /scheduler in Chrome temporarily resize the Aurora
logo. This seems to be due to us loading all scripts and styles in the <body>
after first rending the logo.
By loading all scripts in the header using the `defer` attribute, scripts are
only executed after the entire document has been loaded. They are executed in
order.
Diffs (updated)
-----
src/main/resources/scheduler/assets/scheduler/index.html 383ca43dfc14448b67181e9d94dd805ac1bbfaa7
Diff: https://reviews.apache.org/r/45055/diff/
Testing
-------
Thanks,
Stephan Erb