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

xapi-project / xen-api / 14334579534
80%

Build:
DEFAULT BRANCH: master
Ran 08 Apr 2025 01:19PM UTC
Jobs 1
Files 33
Run time 1min
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
14334579534

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

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 14334579534.1 08 Apr 2025 01:19PM UTC 33
77.72
GitHub Action Run
Source Files on build 14334579534
  • Tree
  • List 33
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14334579534
  • ec7baa38 on github
  • Prev Build on master (#14333706827)
  • Next Build on master (#14338181874)
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

© 2025 Coveralls, Inc