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

ICRAR / ngas
70%
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 uwe-fixes
branch: uwe-fixes
CHANGE BRANCH
x
Reset
  • uwe-fixes
  • 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
  • v11
  • v12
  • v12.0
  • various_improvements
  • volumes

pending completion
635

push

travis-ci-com

Rodrigo Tobar
Ensure python 3 compatibility

The ngasCheckFileCopies tool wasn't ready for python 3, as it relied on
dict.keys() returning a list, which was then sorted. Since these lists
were short-lived we are better off using the sorted() builtin though,
which takes any iterable as input.

While doing this I realised some comments in the code didn't make sense,
so I changed them slightly. While testing I also found problems with the
calculation of the file lists, which apparently includes all files from
all disks. These two facts, plus other details (the logging
configuration being fixed at module import time, for instance) suggest
that a rewriting of this tool would not be a bad idea.

This addresses the original problem raised in #95.

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

13694 of 19660 relevant lines covered (69.65%)

4.85 hits per line

Relevant lines Covered
Build:
Build:
19660 RELEVANT LINES 13694 COVERED LINES
4.85 HITS PER LINE
Source Files on uwe-fixes
  • Tree
  • List 165
  • Changed 35
  • Source Changed 0
  • Coverage Changed 35
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
635 uwe-fixes Ensure python 3 compatibility The ngasCheckFileCopies tool wasn't ready for python 3, as it relied on dict.keys() returning a list, which was then sorted. Since these lists were short-lived we are better off using the sorted() builtin though, whi... push 10 Jul 2022 05:54AM UTC Rodrigo Tobar travis-ci-com pending completion  
632 uwe-fixes Check presence of all DB parameters in RC file Some of the parameters the NGAS utilities read from the RT file can be missing, as these files are written by users. No error is normally raised When such parameters are not found (None is returned i... push 28 Jun 2022 04:47AM UTC Rodrigo Tobar travis-ci-com pending completion  
630 uwe-fixes Use base64.b64{encode,decode} for python 3 support The old {encode,decode}string functions were marked as deprecated in python 3.1, and removed in python 3.9. We should use the corresponding b64{encode,decode} functions instead, which are present... push 31 May 2022 03:10AM UTC Rodrigo Tobar travis-ci-com pending completion  
627 uwe-fixes Initialise members with consistent type The __ioTime member of ngamsDapiStatus is always used as a float value, but it is initialised as an integer. While not a problem on itself, it can be confusing; moreover static analysis tools complain about... push 30 May 2022 12:50PM UTC Rodrigo Tobar travis-ci-com pending completion  
626 uwe-fixes Initialise members with consistent type The __ioTime member of ngamsDapiStatus is always used as a float value, but it is initialised as an integer. While not a problem on itself, it can be confusing; moreover static analysis tools complain about... push 30 May 2022 12:45PM UTC Rodrigo Tobar travis-ci-com 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