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

jnpkrn / clufter / 685 / 5
60%
master: 60%

Build:
Build:
LAST BUILD BRANCH: next
DEFAULT BRANCH: master
Ran 20 Jul 2017 04:43PM UTC
Files 213
Run time 7s
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:31PM UTC coverage: 60.02% (+0.01%) from 60.007%
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 schemas
(respectively named 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 in the minor part will occur.  That breaks
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);
  example: pacemaker-2.10 < pacemaker-2.2

- mentioned float (when parsing the numerical part out of the string):
  example: 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>

3564 of 5938 relevant lines covered (60.02%)

0.6 hits per line

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