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

jnpkrn / clufter / 684 / 1
60%
master: 60%

Build:
Build:
LAST BUILD BRANCH: next
DEFAULT BRANCH: master
Ran 20 Jul 2017 04:23PM UTC
Files 213
Run time 8s
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

20 Jul 2017 04:18PM UTC coverage: 60.007% (-0.2%) from 60.183%
MAINT_EXTRA=0

push

travis-ci

jnpkrn
format: XML.etree_rng_validator_proper_specs: use namever_partition

Originally, pacemaker was treating versions of its CIB schema files
as floats, simplifying comparisons in a simplistic single-digit minor
version realms.  As the necessity to roll out a new schema version
catering the new needs is around the corner, it was decided[1] that
pacemaker will not bump the major part abrubtly (against the rules[2]),
but rather the overflow to a new higher digit will occur.  That breaks
the assumption of easy comparisons in two previously common angles:

- string (e.g. when looking at /cib@validate-with XPath within CIB
  or at the available, respectively named schema files)

- mentioned float (when parsing the numerical part out of the string):
  2.11 < 2.2, ....

Here, just the former is relevant; XML.etree_rng_validator_proper_specs
was supposed to return ordered sequence of embedded/available schemas,
which is used, for instance, to grab the lowest possible for the
purpose of upgrading the schema for particular CIB document internally.
Formerly, the sorting was based on lexicographical comparison, now,
thanks to `namever_partition` (added with the previous commit) wired
into the process, it performs combined lexicographical+version
comparison so everything should keep working as expected even
when 2.10+ versions of CIB schemas are common.

[1] https://github.com/ClusterLabs/pacemaker/pull/1308
[2] https://github.com/ClusterLabs/pacemaker/blob/master/xml/Readme.md

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>

3565 of 5941 relevant lines covered (60.01%)

0.6 hits per line

Source Files on job 684.1 (MAINT_EXTRA=0)
  • Tree
  • List 0
  • Changed 10
  • Source Changed 2
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 684
  • Travis Job 684.1
  • 41efa600 on github
  • Prev Job for MAINT_EXTRA=0 on next (#683.5)
  • Next Job for MAINT_EXTRA=0 on next (#685.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