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

ICRAR / ngas
63%
master: 69%

Build:
Build:
LAST BUILD BRANCH: config_use_prepared_stmts_for_clients
DEFAULT BRANCH: master
Repo Added 30 Jun 2017 02:01AM UTC
Files 165
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

LAST BUILD ON BRANCH v11
branch: v11
CHANGE BRANCH
x
Reset
  • v11
  • 98-query-ignore
  • NGAS-163
  • aiosmtpd
  • avoid-installing-bsddb3-in-py27
  • bbcp_fixes
  • c_client_warning_fixes
  • centos7-compatibility-changes
  • clone-fix
  • clone-order-fixes
  • correct-janitor-init
  • correct-logging-c
  • coverage-stability
  • direct_sql
  • doc-updates
  • docs-fix
  • document-future-removal-of-27
  • fits_optional_arcfile
  • fix-requests-dependency-specs
  • fs-monitor
  • fs-monitor-fixes
  • github-actions
  • improve-register-error-message
  • issue-103
  • issue-13
  • issue-38
  • issue-44
  • issue-50
  • issue-51
  • janitor-thread-startup
  • macos-hostnames
  • macos-travis-fix
  • macos-travis-update
  • master
  • netifaces-fix
  • next
  • no-create-venv
  • none-reg-parameters
  • partner_sites
  • plugins-importing
  • py311
  • py39
  • python-client-improvements
  • relaxed-netifaces
  • release-12.0
  • remove-2.7-builds
  • remove-test-generic-registration-plugin
  • requests-pinning
  • richer-archiving-event
  • separate-test-servers
  • servers-flag
  • small-improvements
  • smtp-testing
  • stream-proxy-request
  • subscription-def
  • subscription_thread_ng
  • travis-errors
  • travis-fixes
  • travis-focal
  • update-travis-matrix
  • uwe-fixes
  • v12
  • v12.0
  • various_improvements
  • volumes

pending completion
343

push

travis-ci

rtobar
Preventing TypeError during date comparison

The type of lastSchedule up to this point is either NoneType or str,
but on the other hand lastDelivery is a float (the type we use
internally to hold date/times). These two values are compared for order,
and while python2 happily compares strings v/s floats, python3 refuses
to do so and bombs out with a TypeError.

Because the subscription code is so convolved, it's a bit difficult to
fix this at the very source of the problem, but ensuring the correct
data representation just before the comparison is sufficient.

This problem was obviously not caught by our unit test suite because the
conditions to trigger it were not coded into any of them. I'm thus
adding a new unit test that reproduces the original problem, and that
will ensure this doesn't happen again.

This patch solves #6.

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

19406 of 30656 relevant lines covered (63.3%)

2.66 hits per line

Relevant lines Covered
Build:
Build:
30656 RELEVANT LINES 19406 COVERED LINES
2.66 HITS PER LINE
Source Files on v11
  • List 0
  • Changed 18
  • Source Changed 2
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
343 v11 Preventing TypeError during date comparison The type of lastSchedule up to this point is either NoneType or str, but on the other hand lastDelivery is a float (the type we use internally to hold date/times). These two values are compared for orde... push 28 Aug 2019 03:49AM UTC rtobar travis-ci pending completion  
339 v11 Clarify volume checking This adds an additional logging statement to specify which file is being looked for, and corrects two bits of documentation. Pull #4 27 Aug 2019 04:23AM UTC web-flow travis-ci pending completion  
298 v11 Correct ingestion rate calculation The previous calculation was plain wrong (it was the other way around!) and it also produced a float, while in reality we store an integer number in the database. Signed-off-by: Rodrigo Tobar <rtobar@icrar.org> push 19 Mar 2019 03:13AM UTC rtobar travis-ci pending completion  
271 v11 Travis: don't fail if python@2 is installed Signed-off-by: Rodrigo Tobar <rtobar@icrar.org> push 05 Mar 2019 10:58AM UTC rtobar travis-ci pending completion  
269 v11 Missing bytes-to-string conversion Signed-off-by: Rodrigo Tobar <rtobar@icrar.org> push 05 Mar 2019 10:28AM UTC rtobar travis-ci pending completion  
266 v11 NGAS-150 column name matches data in QUERY cmd For a long time simple 'SELECT * FROM ...' sql commands have been used to satisfy some of the queries supported by the QUERY command. This of course means that the order in which columns appear on ea... push 05 Mar 2019 09:49AM UTC rtobar travis-ci pending completion  
254 v11 ngas version 11.0.2 This includes a simple but important fix found on the master branch and backported to the v11 branch (only affects these two) that prevents the STATUS command module from importing correctly in actual NGAS installations. Sign... push 07 Nov 2018 11:10AM UTC rtobar travis-ci pending completion  
250 v11 ngas version 11.0.1 This includes a simple but important fix found on the master branch and backported to the v11 branch (only affects these two) that prevents data from being deleted from the NGAS root directory. Signed-off-by: Rodrigo Tobar <r... push 01 Nov 2018 07:14AM UTC rtobar travis-ci pending completion  
249 v11 Adding back 'processing' path element This additional path element, added in c64803a2, was incorrectly removed in 92061532. This removal produces the removal of the entire NGAS root directory if the processing directory, as configured by the user... push 01 Nov 2018 05:50AM UTC rtobar travis-ci pending completion  
248 v11 ngas version 11.0 Signed-off-by: Rodrigo Tobar <rtobar@icrar.org> push 30 Oct 2018 09:06AM UTC rtobar travis-ci pending completion  
See All Builds (534)
  • Repo on GitHub
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