0ee498c6add946ae18c354aff5723d0e65c71656 |
|
25-Aug-2017 |
Ting-Yuan Huang <laszio@chromium.org> |
barrier: catch socket.error with errno = ETIMEDOUT socket.error with ETIMEDOUT may be thrown instead of socket.timeout. BUG=chromium:757604 TEST=chell-chrome-pfq Change-Id: I31ef543d0cd7c99b47c8a8ebf20edc6370d4abb6 Reviewed-on: https://chromium-review.googlesource.com/641891 Commit-Ready: Ting-Yuan Huang <laszio@chromium.org> Tested-by: Ting-Yuan Huang <laszio@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org>
/external/autotest/client/common_lib/barrier.py
|
38c9960162f1eaad0d3b197e2662c815cc286f2e |
|
04-Feb-2017 |
Allen Li <ayatane@chromium.org> |
[autotest] Merge client/common_lib/base_barrier BUG=chromium:672727 TEST=None Change-Id: If93f54b6135ad9994543d922cf83c0495aaa3e3a Reviewed-on: https://chromium-review.googlesource.com/437809 Commit-Ready: Allen Li <ayatane@chromium.org> Tested-by: Allen Li <ayatane@chromium.org> Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/client/common_lib/barrier.py
|
999fb13dcbf4de5e37ca2b3059ef1061b5faba43 |
|
23-Apr-2010 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
barrier cleanups: * renames barrier.py to base_barrier.py and adds a barrier.py stub to import from base_barrier and override with site_barrier if found. barrier_unittest.py is renamed to match. * Move BarrierAbortError to the error module with everything else. * Add a rendezvous_servers abort=True from the server test case. * Moved get_sync_control_file() from common_lib.utils to server.base_utils where it belongs to avoid a circular import of utils importing barrier. Signed-off-by: Gregory Smith <gps@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@4444 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
02fc0b9199aa71c7f801aee4fcd4b86513e8facb |
|
01-Apr-2010 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
* Rewrite barriertest (the old one was useless|incomplete|partial|broken). * Refactor barrier.py to reduce the public API surface to that which is actually required and used. Cleans up some docstring style as well. No functional changes. This prepares for adding site_barrier support in a future patch. Signed-off-by: Gregory Smith <gps@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@4369 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
dbc5eaf052e936623c4acd5075d8383a81302f25 |
|
19-Mar-2010 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Moved binding/listening on the server socket from barrier.barrier.run_server() to a separate class (barrier.listen_server). Added a keyword argument to barrier to pass a listen_server instance to use it when it needs access to the server socket. When a listen_server instance is not given to barrier it will create one in run_server() (preserving the old semantics). Updated barriertest (used by server side profiler support code) to reuse a listen_server instance in almost all its barrier instances (thus hopefully fixing an issue where we rebind too fast on the same port when packets are in transit from an old connection and get a ECONNRESET on a new connection because of this). Updated unittests. Signed-off-by: Mihai Rusu <dizzy@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@4314 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
12b45582c04b2417036a6f11afc843ac5fddea50 |
|
11-Jan-2010 |
lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> |
Massive permission fix Fix permissions for all the development tree Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@4094 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
5da93b274867e42655d76ecfaedfc46a32f82f4d |
|
21-Dec-2009 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Added support to specify no timeout for barrier by giving it a value of "None". Signed-off-by: Mihai Rusu <dizzy@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@4035 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
35388502fd3f3a4e5cbc4da14313e89129ed79d3 |
|
03-Sep-2009 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Log when aborting the barrier. Signed-off-by: Jean-Marc Eurin <jmeurin@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@3655 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
3a0aae9cf43ea8db2721c5b77b330f111a803331 |
|
03-Sep-2009 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Enabling aborts in barriers. Signed-off-by: Jean-Marc Eurin <jmeurin@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@3653 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
b5df2f9f3269fa820195ae2dd3ed1733fbb8bba6 |
|
24-Aug-2009 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Handle bad requests to the barrier server without crashing the barrier. NOTE: the barrier code is still weak. the client.recv(1024) is blantantly wrong as its not guaranteed to have received sufficient data. current uses have not been triggering that issue yet though. Signed-off-by: Gregory Smith <gps@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@3592 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
b65c5b0bc755c569e3ab03b6b2a70e45f72dde80 |
|
03-Aug-2009 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Use lower ports for profiling. old: 63100 new: 11920 old: 63001, 63101 new: 11921 old: 63002, 63000 new: 11922 Signed-off-by: Rachel Kroll <rkroll@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@3483 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
9c12f77f7eff3cfa90fdfa19d33f82645f43dcb5 |
|
22-Jun-2009 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Fixed the mis-spelling of rendezvous. Signed-off-by: Travis Miller <raphtee@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@3320 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
61a3655c627b4de0905afea51208374abca0fc3f |
|
15-Jun-2009 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
* Update label for barrier timeout Signed-off-by: Ryan Kubiak <rkubiak@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@3274 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
8ad3120c72e2655766724e8249dc0d66f4d90f11 |
|
02-May-2009 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Moved to the new logging. Signed-off-by: Jean-Marc Eurin <jmeurin@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@3083 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
ef8a893962f2de72d2d7652dcac2da8e5662b6cf |
|
15-Sep-2008 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Edited barrier error string to display which barrier it timed out on. Signed-off-by: Bryce Boe <bboe@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@2161 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
8513e32ab88d55f0d47ab8628ed425cac765b95a |
|
16-Jul-2008 |
jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> |
The changes in rev 1840 break the standalone test harness, so remove it for now. Signed-off-by: John Admanski <jadmanski@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@1843 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
e867310401602123035b11d95f67d1fbc9880446 |
|
16-Jul-2008 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Summary: Fixing circular reference issue during barrier module import. The issue was breaking nearly all autotest modules, since it's right on the common_lib setup. The fix was simple, just remove the circular reference to common. Also, changed the placement of the __author__ decorator, and transferred the BarrierError class to the error module, for the sake of consistency (all other modules define their exceptions on error). This patch is the fix for the bug #4 (http://test.kernel.org/trac-autotest/ticket/4) Visibility: High (Makes all modules that import common to work again) Signed-off-by: Lucas Meneghel Rodrigues <lucasmr@br.ibm.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@1840 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
4205d8965f7fdda6a9c24100be912f36f04a3fc9 |
|
14-Jul-2008 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Fix the unittest to make it pass and avoid relying on a fragile parser: - Use the __import__ and import coherently - Use the standard unittest framework Rewrite of the barrier unittest as using fork() completely messed up the overall test suite and ran it 8 times. Visibility: Medium/High - some import changes Risk: Medium Tests: - Ran unittest_suite.py for all and individual directories - Ran coverage_suite.py for all and individual directories - Ran manage.py test from frontend directory. Signed-off-by: Jean-Marc Eurin <jmeurin@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@1827 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
e61037c5f3ca225421860f2d954bfe7ebfa8f959 |
|
12-Jun-2008 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Added some unit tests to test the barriers. Fixed a couple of minor bugs in barrier.py Signed-off-by: Ashwin Ganti <aganti@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@1686 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
0afbb6369aa5aa9a75ea67dd9e95ec4b21c0c181 |
|
06-Jun-2008 |
jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> |
Convert all python code to use four-space indents instead of eight-space tabs. Signed-off-by: John Admanski <jadmanski@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@1658 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
313f12ceca6185ea4890fec8e66baf06fd5d6f40 |
|
16-May-2008 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Did some cleanup work on imports in order to remove any of the remaining "from blah import *" imports. From: Travis Miller git-svn-id: http://test.kernel.org/svn/autotest/trunk@1522 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
6b504ff04e21af766da0cfbcde8e1e352a474dfa |
|
12-Dec-2007 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
Fixed the barriers to exit rendevous when there are no members specied. Signed-off-by: Colby Ranger <cranger@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@1061 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|
e1417fa0334ac4e2ab6064e42de0bb891e561057 |
|
10-Dec-2007 |
mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> |
* Added support for barriers to the server. * Allow slaves to run HTTP servers and let the master connect to them. This is for networks where some connections to machines can only be initiated in one direction. * Added a client test that would kick off profilers and run them in sync with th e server. * Added a server sample test that uses the client test. From: Colby Ranger <cranger@google.com> Signed-off-by: Martin Bligh <mbligh@google.com> git-svn-id: http://test.kernel.org/svn/autotest/trunk@1048 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/barrier.py
|