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

mendersoftware / deployments / 1351052686
80%
master: 80%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/github.com/ulikunitz/xz-0.5.14
DEFAULT BRANCH: master
Ran 27 Jun 2024 04:07PM UTC
Jobs 2
Files 72
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

27 Jun 2024 03:52PM UTC coverage: 79.696% (-0.06%) from 79.752%
1351052686

Pull #1029

gitlab-ci

alfrunes
perf: Optimize database interactions when updating deployment stats

Changed the sequential find and double update ops with a findAndModify
followed by a conditional update if the status actually changed.
This also improves atomicity as there is an inherent race condition when
doing the deployment status aggregation locally.

I also noticed that most internal calls to UpdateDeviceDeploymentStatus
already has the DeviceDeployment already, so I added an internal
updateDeviceDeploymentStatus which skips fetching the device deployment
(again).

Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Pull Request #1029: perf: Optimize database interactions when updating deployment stats

56 of 76 new or added lines in 3 files covered. (73.68%)

349 existing lines in 2 files now uncovered.

8125 of 10195 relevant lines covered (79.7%)

34.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
60.64
0.22% app/app_os.go
1
85.39
0.05% store/mongo/datastore_mongo.go
18
77.45
-0.03% app/app.go

Uncovered Existing Lines

Lines Coverage ∆ File
7
65.48
-3.55% model/device_deployment.go
342
53.02
-23.73% api/http/api_deployments.go
Jobs
ID Job ID Ran Files Coverage
1 acceptance - 1351052686.1 27 Jun 2024 04:07PM UTC 64
52.39
2 unittests - 1351052686.2 27 Jun 2024 04:07PM UTC 70
65.67
Source Files on build 1351052686
  • Tree
  • List 72
  • Changed 3
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • GitLab CI Build #1351052686
  • Pull Request #1029
  • PR Base - master (#1340080745)
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