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

ICRAR / ngas / 526
69%

Build:
DEFAULT BRANCH: master
Ran 08 Jun 2021 02:47AM UTC
Jobs 6
Files 165
Run time 1min
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
526

push

travis-ci-com

Rodrigo Tobar
Address problems found during testing

Stewart tried out the latest changes to the subscription logic and found
three different problems, all of which are addressed in this commit.

Firstly, a typo in the email message has been fixed. Secondly, a logging
statement was missing a value for a format specifier. These two changes
were minor.

Finally, and most importantly, when a subscription fails to be added
because a similar-looking one already exists, the code tried to remove
the subscription object twice from the list of yet-to-be-created
subscriptions, which raised an unexpected error. However, at the same
time Stewart pointed out that at server shutdown the subscription that
wasn't added *was* removed from the remote server, which is what he
expected to see. This is not exactly great (if we are not adding it we
shouldn't be removing it), but on the other hand I see the appeal on
doing so, and since they are the main users of this feature anyway I'll
follow their preference. To avoid the double removal of the object,
while keeping the code path separate from the fully successful cases, I
created a small function that centralises the marking of a subscription
as active on the local server so it gets removed when the server goes
down.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

7 of 7 new or added lines in 1 file covered. (100.0%)

13650 of 19755 relevant lines covered (69.1%)

4.13 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
src/ngamsServer/ngamsServer/ngamsSrvUtils.py

Uncovered Existing Lines

Lines Coverage ∆ File
3
100.0
src/ngamsCore/ngamsLib/ngamsCore.py
3
100.0
src/ngamsServer/ngamsServer/ngamsSubscriptionThread.py
4
100.0
src/ngamsServer/ngamsServer/commands/subscribe.py
4
100.0
src/ngamsServer/ngamsServer/commands/unsubscribe.py
4
100.0
src/ngamsServer/ngamsServer/ngamsArchiveUtils.py
9
100.0
src/ngamsCore/ngamsLib/ngamsSubscriber.py
10
100.0
src/ngamsServer/ngamsServer/ngamsCmdHandling.py
16
100.0
src/ngamsCore/ngamsLib/ngamsDbNgasSubscribers.py
34
100.0
src/ngamsServer/ngamsServer/ngamsSrvUtils.py
Jobs
ID Job ID Ran Files Coverage
1 526.1 (DB=sqlite3) 08 Jun 2021 02:48AM UTC 0
68.78
Travis Job 526.1
2 526.2 (DB=mysql) 08 Jun 2021 02:49AM UTC 0
68.59
Travis Job 526.2
3 526.3 (DB=postgresql) 08 Jun 2021 02:48AM UTC 0
68.55
Travis Job 526.3
4 526.4 08 Jun 2021 02:48AM UTC 0
68.78
Travis Job 526.4
5 526.5 08 Jun 2021 02:48AM UTC 0
68.89
Travis Job 526.5
6 526.6 08 Jun 2021 02:47AM UTC 0
68.88
Travis Job 526.6
Source Files on build 526
  • Tree
  • List 165
  • Changed 18
  • Source Changed 6
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #526
  • 52427387 on github
  • Prev Build on master (#520)
  • Next Build on master (#528)
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

© 2025 Coveralls, Inc