Opened 5 years ago

Last modified 5 years ago

#3056 closed defect

[CMS] cms.bin.test_server intermittently pauses for several seconds when serving static files — at Version 5

Reported by: kzar Assignee:
Priority: P4 Milestone:
Module: Sitescripts Keywords: cms
Cc: trev, Ross, sebastian, saroyanm Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29327611

Description (last modified by kzar)

Environment

  • Latest revision of CMS (f9fd64fbc629)
  • Ubuntu Linux 15.04 running on a Thinkpad T450
  • Serving the contents of the testpages.adblockplus.org repository with the $generic hide and block test cases.
  • Python version 2.7.9

How to reproduce

  1. Clone testpages.adblockplus.org and cms.
  2. Apply generic hide + block diff to testpages from this code review https://codereview.adblockplus.org/29325987/ . (Alternatively just clone from my fork on GitHub.)
  3. Edit your hosts file to point testpages.adblockplus.org and www.testpages.adblockplus.org at 127.0.0.1.
  4. In the testpages directory launch the test server like ../cms/runserver.py.
  5. Browse to this exact URL http://testpages.adblockplus.org:5000/en/testcases/generic/#01
  6. Keep refreshing the page until the delay problem occurs.

Observed behaviour

There are seemingly random large pauses of several seconds when the server is serving static files like images and scripts. With the example above it happens more than 50% of the time for me.

Expected behaviour

The files should be consistently served quickly.

Notes

I have also noticed a very similar / the same problem with the run_tests.py script in the adblockpluscore repository. The script acts as web server serving the pages and static files required to run the unit tests. The cause of this issue could be related.

I'm working on a simpler example that reproduces the problem, so far I haven't managed though.

Change History (5)

comment:1 Changed 5 years ago by kzar

  • Cc saroyanm added

@saroyanm Have you observed this behaviour as well? So far me and Ross have.

comment:2 Changed 5 years ago by kzar

  • Description modified (diff)

comment:3 Changed 5 years ago by sebastian

  • Cc sebastian added; snoack removed

comment:4 Changed 5 years ago by kzar

  • Description modified (diff)

comment:5 Changed 5 years ago by kzar

  • Description modified (diff)
Note: See TracTickets for help on using tickets.