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

mendersoftware / deployments / 1678937865 / 2
76%
master: 80%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/tests/mock-workflows/werkzeug-3.1.5
DEFAULT BRANCH: master
Ran 19 Feb 2025 05:33PM UTC
Files 64
Run time 3s
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

19 Feb 2025 05:14PM UTC coverage: 52.349%. First build
1678937865.2

Pull #1048

gitlab-ci

mho-nuro
feat: enable exact artifact name, description, and device type matching in list artifacts requests

When using the List Artifacts APIs to find artifacts by name, the
existing implementation only supports $regex search using the pattern
".*<name>.*". This is CPU intensive on large image collections, when the
user only needs an exact match. On an existing dataset with 60000
images, the existing $regex query took 421ms while the new exact_name
query took 9ms. This was benchmarked using both device_types and name
set. Also, the new exact match makes an index more effective.

Adds exact_name, exact_device_type, and exact_description boolean params
to the GET /artifacts and GET /artifacts/list APIs. For example,
/artifacts/list?name=123.t would match name="123.test" but
/artifacts/list?name=123.t&exact_name would not match.

Tested: Ran a local deployments instance hooked up to a dev mongodb
atlas instance. Used curl with exact_name and exact_device_type, tested
that inexact matches were not returned using the new exact_ params but
were returned without the exact_ params.

Changelog: Title
Ticket: None

Signed-off-by: Michael Ho <callmemikeh@gmail.com>
Pull Request #1048: feat: enable exact artifact name, description, and device type matching in list artifacts requests

5292 of 10109 relevant lines covered (52.35%)

0.55 hits per line

Source Files on job acceptance - 1678937865.2
  • Tree
  • List 64
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build be3f0e
  • GitLab Build #1678937865
  • be3f0e52 on github
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