34 Commits

Author SHA1 Message Date
Eric Seidel
8ad5f14611 Currently we use package: to mean "/gen", which is not at all how
Dart actually expects package: to work.  This CL makes package:foo
map to /packages/foo, similar to how Dartium or bin/dart would expect.

This also means overlaying the /gen directory over the actual package
outputs (as consumers of an SDK would expect) as well as adding
an additional /lib indirection for the actual package source as
the Dart pub tool will expect.

This is far from perfect, but it unlocks us actually producing a
sky SDK.

I expect there may be some fallout from this change as I'm sure I
missed some package: uses.  We also don't have a general solution
for all /foo/bar/baz includes which randomly included parts
of mojo's source directory.  Those will need to be updated to use
a package: and deploy_sdk.py taught how to build a package for them.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/990493002
2015-03-13 16:58:53 -07:00
Ojan Vafai
58bfcf3a8f Delete a bunch of dead python code.
Just deleted the obvious bits and verified that
test_sky, skydb and pretty-diff still work.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/946753002
2015-02-20 21:09:15 -08:00
Ojan Vafai
43b83b1c9a Add a dedicated pretty-diff command.
This will let us delete webkit-patch and a bunch of
python code and it will save me some annoyance at
needing to type "webkit-patch pretty-diff" all
the time.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/944193003
2015-02-20 21:01:04 -08:00
Ojan Vafai
2cf6dc759d Make webkit-patch pretty-diff do the right thing for upstream branchs.
If your current branch has an upstream branch, then diff to that
branch. That way you get the same diff that git cl upload gives
instead of the diff to origin/master.

TBR=esprehn@chromium.org

Review URL: https://codereview.chromium.org/948663002
2015-02-20 20:28:12 -08:00
Adam Barth
f2d2e80e59 Merge the Sky Engine changes from the SkyDart branch
This CL flips the switch to make Sky use Dart.

TBR=eseidel@chromium.org
BUG=454613

Review URL: https://codereview.chromium.org/922893002
2015-02-12 15:06:03 -08:00
James Robinson
d51de7b23a Add fake implementation of Surfaces service
BUG=
R=ojan@chromium.org

Review URL: https://codereview.chromium.org/804693002
2014-12-15 12:16:31 -08:00
Ojan Vafai
0fcf250d03 Make reftests work for sky.
-Add a --testing flag to sky_viewer and cause it to paint into an
SkBitmap instead of a ganesh surface so we can get the pixels out.
-Add GetPixelsForTesting to layer.cc to actually grab out the pixels.
-Add a reftest and a mismatch reftest. They need a setTimeout after
the load event. Unclear why or what the right fix is. Maybe we should
give internals some way to force the paint? If we don't have the
setTimeout, we paint a white page (so we do a paint, but with no
content).
-Add a DisplayDelegate to Layer so that Viewer can decide whether
to use the real ganesh backend or the SkBitmap one without littering
the whole code-base with is_testing bools and logic.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/797063002
2014-12-12 16:45:49 -08:00
Ojan Vafai
8971e980cd Prepare python code for reftests.
-s/-expected.html/-expected.sky/
-s/-expected-mismatch.html/-expected-mismatch.sky/
-In single_test_runner.py, get rid of the image hash checking
for reftests. It doesn't provide any value and just makes
getting reftests working more complicated.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/802573002
2014-12-11 15:24:02 -08:00
Ojan Vafai
c37e637852 Run sky tests more parallelized.
Now that we're off cherrypy, hopefully we can run more tests
in parallel without timeouts. This works well for me locally.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/786833002
2014-12-08 12:46:49 -08:00
Ojan Vafai
db877ecf4f Green sky tests on the asan bot.
Skipped tests were not getting skipped because
the code gets whether the build is a debug or release
build from the configuration commandline argument, but
the asan bots pass Release_asan. Instead, read the
debug vs. release state from gn args instead of inferring
it from the out directory.

R=eseidel@chromium.org, esprehn@chromium.org, sky@chromium.org

Review URL: https://codereview.chromium.org/754673003
2014-12-08 11:15:13 -08:00
Ojan Vafai
dd1ee1ade5 Change test_sky to use the buildbot step name as the testtype.
This should make the flakiness dashboard work again.

TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/780993002
2014-12-04 16:25:13 -08:00
Ojan Vafai
61d78bd869 Convert sky_server over to a go-based http server.
We keep seeing timeouts on the bots that seem to be due
to cherrypy dropping requests on the floor, which in turn
causes imports to stall, which causes the test to time out.
In local testing, I was able to reproduce the timeouts
and wasn't able to do so with the go-based server.

R=abarth@chromium.org, eseidel@chromium.org

Review URL: https://codereview.chromium.org/746373002
2014-12-04 16:10:09 -08:00
Ojan Vafai
1826b1a6fd Undo quoting from c86b07f409c4698eccf5042ee1985f13971aaabb.
Turns out it breaks the popen call and doesn't pass
the right thing. :(

TBR=abarth@chromium.org

Review URL: https://codereview.chromium.org/766613002
2014-11-26 17:00:20 -08:00
Ojan Vafai
759c4387ac Fix test_sky commandline printing.
1. Print out the sky_server commandline as well so it's easy
to run the server without running test_sky.
2. Quote the --args-for arguments, so that they copy-paste
correctly.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/762703005
2014-11-26 16:24:08 -08:00
Ojan Vafai
df728320bf Change test type of flakiness dashboard uploads to match buildbot step name.
Flakiness dashboard assumed each buildbot step corresponds to one
test suite. So, it assumes the test type matches the buildbot
step name. This fix is somewhat hacky in that we won't be
able to make other test suites in mojob test upload to the
flakiness dashboard, but that's technical debt we already have
from smashing multiple test suites into one buildbot step.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/725993003
2014-11-19 12:26:53 -08:00
Elliott Sprehn
0aa29129ab Give release builds more time.
Lets see if this removes the flake on the bots seen in sky tests. In
local testing it looks like sky_server's CherryPy becomes overloaded and
then the requests take a very long time to complete which makes the tests
timeout. I increased the timeout locally and it made the tests start
passing consistently when using high --repeat values.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/741603002
2014-11-18 18:03:36 -08:00
Ojan Vafai
e0de9cbe42 Add the ability to upload sky_tests to the flakiness dashboard.
Modify mojob.py to plumb through the arguments needed to upload
sky tests to the flakiness dashboard. A followup change will
need to modify the buildbot side to pass these arguments
to mojob.py.

R=abarth@chromium.org, jamesr@chromium.org

Review URL: https://codereview.chromium.org/726313007
2014-11-17 13:14:38 -08:00
Ojan Vafai
7ba5f7bec8 Only write test baselines next to the test.
We don't have platforms, so we never want to create a
platform directory for test baselines.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/729573004
2014-11-14 13:56:49 -08:00
Viet-Trung Luu
f04532944e Make test_sky output to (e.g.) out/Debug/layout-test-results instead of webkit/Debug/layout-test-results.
Also remove webkit/{Debug,Release} from the .gitignore.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/722913002
2014-11-12 16:55:42 -08:00
Benjamin Lerman
2cdc639a09 Change mojo url to always use mojo:foo instead of mojo://foo
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/701933004
2014-11-06 17:23:18 +01:00
Eric Seidel
a934c7fc09 Switch test_sky to sky_server
Adam did this in:
https://codereview.chromium.org/699333002
But later reverted in:
https://codereview.chromium.org/692333007

The problem was that the path to sky_server
was being computed relative to the sky
directory instead of being absolute, so when
the bots tried to run test_sky from the root
mojo directory instead of mojo/sky they failed.

TBR=abarth@chromium.org

Review URL: https://codereview.chromium.org/704833002
2014-11-05 13:08:49 -08:00
Adam Barth
46a9ce7254 Switch test_sky back to apache
This CL reverts my previous change because it didn't work on the bots.

TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/692333007
2014-11-04 17:30:25 -08:00
Adam Barth
c6e28d12db Fix test_sky in release builds
This CL passes the configuration information from test_sky to sky_server so
that sky_server can find the correct output directory.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/705623003
2014-11-04 17:20:30 -08:00
Adam Barth
36d547f018 Switch test_sky from apache to sky_server
After this CL, test_sky uses the same server as skydb.

R=eseidel@chromium.org, ojan@chromium.org

Review URL: https://codereview.chromium.org/699333002
2014-11-04 16:42:29 -08:00
Ojan Vafai
6b0469399e Make printing limbo lines in test_sky only print the prefix once.
This makes the output much more readable and you can actually see
stacktraces. Long-term, we need to stick this output into the result
of the previous test instead of having them be printed to stderr.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/686723004
2014-10-28 19:44:29 -07:00
Hixie
d7dbe841b4 This CL provides a bunch of new parser tests, and updates the
TestExpectations file to skip the ones that fail or crash. It also
updates the TestExpectations parser to support URLs pointing to the
mojo repo's issue tracker.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/685593006
2014-10-28 18:58:18 -07:00
Adam Barth
b1f39b7c1b Move framework/inspector/server to services/inspector
Moving the inspector WebSocket proxy server out of the framework directory
simplifies the mappings for the HTTP servers.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/687673004
2014-10-28 15:38:23 -07:00
Adam Barth
e72e95ebf6 Re-enable the inspector tests
These work again.

R=eseidel@chromium.org, ojan@chromium.org

Review URL: https://codereview.chromium.org/683083004
2014-10-28 12:54:22 -07:00
Adam Barth
17e384c485 Use OSMesa when running Sky tests
This CL switches us to use OSMesa rather than the system GL implementation when
running the Sky tests. This makes the tests more machine-independent and also
makes them work properly in Chromoting and in VirtualBox.

R=ojan@chromium.org, esprehn@chromium.org

Review URL: https://codereview.chromium.org/680243002
2014-10-27 20:36:16 -07:00
Hixie
de0ba17e8f Move the tests from .html to .sky
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/685623002
2014-10-27 17:35:15 -07:00
Hixie
adf81c5086 Make test_sky work on machines with fewer than 4 CPUs.
Exclude the 'conf' subdirectory from being scanned for tests, since it's for support files.
Drop all the unused extensions from _supported_file_extensions.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/679303002
2014-10-27 15:35:17 -07:00
Ojan Vafai
cb0bfcd527 Get test_webkitpy to actually run again.
-Fix all the Tools/Scripts paths to use tools.
-Fix imports of deleted modules.
-Delete SVN module

TBR=abarth@chromium.org

Review URL: https://codereview.chromium.org/639883003
2014-10-26 11:17:48 -07:00
Ojan Vafai
7d0b4fb726 Prune a bunch of webkitpy.
Remove a bunch of unused bits. Some of these bits we might
want to add back (e.g. the python style checker), but we'd
want it as part of the mojo style checker.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/675343003
2014-10-26 10:36:25 -07:00
Adam Barth
ae72930937 Open the Sky 2014-10-23 11:17:19 -07:00