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

fix: stop profiles that never reached the host from showing up as failed #22186

Merged
merged 7 commits into from
Sep 19, 2024

Conversation

jahzielv
Copy link
Contributor

@jahzielv jahzielv commented Sep 17, 2024

Related issue: #21891

Checklist for submitter

If some of the following don't apply, delete the relevant line.

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.
  • Added/updated tests
  • Manual QA for all new/changed functionality

Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.22%. Comparing base (b93d262) to head (2f4fb11).
Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22186      +/-   ##
==========================================
+ Coverage   65.19%   65.22%   +0.02%     
==========================================
  Files        1495     1495              
  Lines      117030   117096      +66     
  Branches     3554     3554              
==========================================
+ Hits        76303    76376      +73     
+ Misses      33608    33601       -7     
  Partials     7119     7119              
Flag Coverage Δ
backend 66.51% <100.00%> (+0.02%) ⬆️

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.

@jahzielv jahzielv marked this pull request as ready for review September 19, 2024 13:26
@jahzielv jahzielv requested a review from a team as a code owner September 19, 2024 13:27
s.assertHostAppleConfigProfiles(map[*fleet.Host][]fleet.HostMDMAppleProfile{
mdmHost: {
{Identifier: "i1", OperationType: fleet.MDMOperationTypeInstall, Status: &fleet.MDMDeliveryPending},
{Identifier: "i2", OperationType: fleet.MDMOperationTypeRemove, Status: &fleet.MDMDeliveryPending},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These host profiles got removed from this assertion because, with the logic introduced in this PR, they have been removed from the DB. They were never sent to the host, so they get removed without an additional "Remove" command being sent.

@jahzielv jahzielv merged commit 90c04ee into main Sep 19, 2024
26 checks passed
@jahzielv jahzielv deleted the 21891-mdm-profile-fails branch September 19, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants