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

xcp-ng / xen-api / 14460419984 / 1
80%
master: 80%

Build:
DEFAULT BRANCH: master
Ran 15 Apr 2025 03:15AM UTC
Files 33
Run time 1s
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

08 Apr 2025 01:08PM UTC coverage: 77.719%. Remained the same
14460419984.1

push

github

web-flow
xapi_message: Implement proper expression handling in get_all_records_where (#6411)

Messages are not stored in the database, so their handling is done
through Custom_actions. The custom implementation of
get_all_records_where, in particular, used to ignore the query
expression altogether (as if expr = true).

Expand the existing handler to evaluate the query and match against the
messages retrieved and parsed from disk.

An alternative approach would have instead special cased filtering code
in the database itself, but in my attempts this was awkward and
duplicated quite a lot of code.

With this it is possible to filter messages properly now:
```
>>> session.xenapi.message.get_all_records_where('field "name" = "VM_STARTED"')
<list of messages with name = VM_STARTED>
>>> session.xenapi.message.get_all_records_where('field "name" = "VM_STARTED" and field "obj_uuid" = "3c61111f-1d67-7db4-95a5-f0287aff57bf"')
<list of messages with name = VM_STARTED and obj_uuid with such value>
```

Also update the documentation to match new behaviour.

Closes #6340

3359 of 4322 relevant lines covered (77.72%)

0.78 hits per line

Source Files on job python3.11 - 14460419984.1
  • Tree
  • List 33
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 14460419984
  • ec7baa38 on github
  • Prev Job for on master (#14436634906.1)
  • Next Job for on master (#14483864214.1)
  • Delete
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