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

ICRAR / ngas / 323 / 1
68%
master: 69%

Build:
Build:
LAST BUILD BRANCH: config_use_prepared_stmts_for_clients
DEFAULT BRANCH: master
Ran 04 Apr 2019 04:21AM UTC
Files 161
Run time 6s
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

04 Apr 2019 03:45AM UTC coverage: 67.656%. First build
DB=sqlite3

push

travis-ci

rtobar
Unit test servers preparing volume directories

This is a big change: previously, the code in the NGAS server made the
distinction between a "simulation" and non-"simulation" run, and behaved
differently in how it scanned the volume directories when going ONLINE,
which was confusing to begin with. This also meant that most unit test
servers didn't actually exercise what real servers do (the exception
being those servers that "prepared their own volumes").

When in "simulation" mode, the specified online plug-in was *not*
executed, and instead a routine very similar, but slightly different, to
the one found in the generic online plug-in was executed. A similar
situation happened with the offline plug-in, which wasn't executed when
running in "simulation" mode. The generic offline plug-in is a no-op
function anyway, so no differences were expected there.

Given the scenario above, I decided to remove the checks on the
simulation flag, centralize the scanning of volume directories into the
generic online plugin, and use the generic online and offline plug-ins
during testing. Now volume directories of the unit test servers are set
up by the unit test routines every time before a server is started. The
server then uses the generic online plugin, which scans these volumes
and appends them to the list of known volumes. This works just like the
simulation-mode volume discovery logic worked, but only with one caveat:
the generic online plug-in assumes the slot ID is equivalent to the
basename of the volume within the volumes directory, while the
simulation-mode logic constructed this basename using the form
"<storageSetID>-<diskType>-<slotID>". Thus, in order to align the tests
and their expectations I had to re-define the slot IDs of the volumes
defined in the test configuration file to match the volume names that
are produced and expected by the tests.

I also took the opportunity to give a more meaningful value to the disk
type set on each test volume at pr... (continued)

12898 of 19064 relevant lines covered (67.66%)

0.68 hits per line

Source Files on job 323.1 (DB=sqlite3)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 283
  • Travis Job 323.1
  • 3b8d755a on github
  • Next Job for DB=sqlite3 on volumes (#324.1)
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