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

mendersoftware / deployments / 1678937865
76%
master: 80%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/github.com/ulikunitz/xz-0.5.14
DEFAULT BRANCH: master
Ran 19 Feb 2025 05:28PM UTC
Jobs 2
Files 78
Run time 11s
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: 76.117%. First build
1678937865

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

30 of 30 new or added lines in 2 files covered. (100.0%)

9233 of 12130 relevant lines covered (76.12%)

29.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unittests - 1678937865.1 19 Feb 2025 05:28PM UTC 78
63.51
2 acceptance - 1678937865.2 19 Feb 2025 05:28PM UTC 64
52.35
Source Files on build 1678937865
  • Tree
  • List 78
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • GitLab CI Build #1678937865
  • Pull Request #1048
  • PR Base - master (#1677295574)
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