• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

allegro / ralph / 5878
85%

Build:
DEFAULT BRANCH: ng
Ran 24 Jun 2016 06:23AM UTC
Jobs 1
Files 191
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5878

push

travis-ci

web-flow
Better way of disabling publishers during handlind subscribers in Ralph2 sync (#2493)

Previously `_handle_post_save` attribute was assigned to the obj, which should prevent firing post_save publisher on it. Unfortunately it wasn't working perfectly - obj could be saved somewhere underneath and thus it wouldn't have this attr assigned, which caused signal (and publisher) to be fired, which may cause pub-sub cycle between Ralph2 and Ralph3.

This PR solves it by temporarly disabling post_save publisher signal during handling subscriber request.

Since signals (connectors) are not thread-safe, you may want to run runserver with `--nothreading` option (this would work with gunicorn out of the box, since it's using processes instead of threads).

34 of 34 new or added lines in 3 files covered. (100.0%)

9667 of 11440 relevant lines covered (84.5%)

0.85 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
100.0
src/ralph/ralph2_sync/helpers.py
8
100.0
src/ralph/ralph2_sync/subscribers.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
src/ralph/ralph2_sync/subscribers.py
Jobs
ID Job ID Ran Files Coverage
2 5878.2 (DJANGO_VERSION=1.8.12 TEST_DB_ENGINE=mysql) 24 Jun 2016 06:23AM UTC 0
84.5
Travis Job 5878.2
Source Files on build 5878
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5878
  • 4d626d59 on github
  • Prev Build on ng (#5873)
  • Next Build on ng (#5880)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc