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

jnpkrn / clufter / 684
60%
master: 60%

Build:
Build:
LAST BUILD BRANCH: next
DEFAULT BRANCH: master
Ran 20 Jul 2017 04:21PM UTC
Jobs 3
Files 213
Run time 2min
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

pending completion
684

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>

2 of 2 new or added lines in 1 file covered. (100.0%)

3587 of 5941 relevant lines covered (60.38%)

1.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 684.1 (MAINT_EXTRA=0) 20 Jul 2017 04:23PM UTC 0
60.01
Travis Job 684.1
2 684.2 (MAINT_EXTRA=0) 20 Jul 2017 04:21PM UTC 0
59.65
Travis Job 684.2
5 684.5 (MAINT_EXTRA=0) 20 Jul 2017 04:21PM UTC 0
60.02
Travis Job 684.5
Source Files on build 684
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #684
  • 41efa600 on github
  • Prev Build on next (#683)
  • Next Build on next (#685)
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