Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry pick: Make software batch endpoint asynchronous (#22258) #22270

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

lucasmrod
Copy link
Member

Cherry pick for #22069 into minor-fleet-v4.57.0

#22069

API changes: #22259

QAd by applying 10 pieces of software on a team, which took 3+ minutes
in total (which, before these changes was timing out at 100s.)

With this approach, a GitOps CI run timing out might leave the
background process running (which will eventually be applied to the
database). The team discussed and agreed that we can fix this edge case
later.

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [X] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [X] Added/updated tests
- [X] Manual QA for all new/changed functionality
@iansltx
Copy link
Member

iansltx commented Sep 20, 2024

QA'ing off of this branch and will merge it when it passes QA.

@iansltx
Copy link
Member

iansltx commented Sep 20, 2024

QA plan

Copy link
Member

@iansltx iansltx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA complete. Test failure is a flakey unrelated test. We're good here.

@iansltx iansltx merged commit ce361d6 into minor-fleet-v4.57.0 Sep 20, 2024
15 of 16 checks passed
@iansltx iansltx deleted the cherry-pick-22069-to-4.57.0 branch September 20, 2024 16:23
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 71.49533% with 61 lines in your changes missing coverage. Please review.

Please upload report for BASE (minor-fleet-v4.57.0@6d87096). Learn more about missing BASE report.

Files with missing lines Patch % Lines
ee/server/service/software_installers.go 69.40% 28 Missing and 13 partials ⚠️
server/service/software_installers.go 61.11% 6 Missing and 1 partial ⚠️
server/service/client_software.go 75.00% 3 Missing and 2 partials ⚠️
server/service/redis_key_value/redis_key_value.go 76.47% 2 Missing and 2 partials ⚠️
server/datastore/mysql/software_installers.go 82.35% 2 Missing and 1 partial ⚠️
cmd/fleet/serve.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                  Coverage Diff                   @@
##             minor-fleet-v4.57.0   #22270   +/-   ##
======================================================
  Coverage                       ?   65.22%           
======================================================
  Files                          ?     1494           
  Lines                          ?   117113           
  Branches                       ?     3462           
======================================================
  Hits                           ?    76390           
  Misses                         ?    33589           
  Partials                       ?     7134           
Flag Coverage Δ
backend 66.49% <71.49%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

qa-wolf bot commented Sep 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants