Skip to content

Cherry-pick #46106: Skip VPP label validation in dry runs - #46262

Merged
jkatz01 merged 1 commit into
rc-minor-fleet-v4.86.0from
jkatz01/skip-vpp-label-validation-dry-run-cp
May 27, 2026
Merged

Cherry-pick #46106: Skip VPP label validation in dry runs#46262
jkatz01 merged 1 commit into
rc-minor-fleet-v4.86.0from
jkatz01/skip-vpp-label-validation-dry-run-cp

Conversation

@jkatz01

@jkatz01 jkatz01 commented May 27, 2026

Copy link
Copy Markdown
Member

Cherry-pick of #46106 into the RC branch.

Resolves #45844
Introduced to main in #46106

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #45844
Skips label validation against the database in dry runs, because if new
ones are being applied in the same run then they wouldnt be in the db
ahead of time.

# Checklist for submitter

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

- [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/guides/committing-changes.md#changes-files)
for more information.


## Testing

- [x] Added/updated automated tests
- [ ] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)

- [x] QA'd all new/changed functionality manually
- Added a new label and vpp reference to it, both dry run and real run
worked.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes

**Bug Fixes**
* GitOps dry runs no longer fail when a VPP app references a label that
is introduced within the same run.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/fleetdm/fleet/pull/46106?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@codecov

codecov Bot commented May 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (rc-minor-fleet-v4.86.0@6890ef8). Learn more about missing BASE report.

Files with missing lines Patch % Lines
ee/server/service/vpp.go 60.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.86.0   #46262   +/-   ##
=========================================================
  Coverage                          ?   66.79%           
=========================================================
  Files                             ?     2748           
  Lines                             ?   219590           
  Branches                          ?    10784           
=========================================================
  Hits                              ?   146668           
  Misses                            ?    59672           
  Partials                          ?    13250           
Flag Coverage Δ
backend 68.61% <60.00%> (?)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jkatz01
jkatz01 marked this pull request as ready for review May 27, 2026 16:12
@jkatz01
jkatz01 requested a review from a team as a code owner May 27, 2026 16:12

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@jkatz01
jkatz01 merged commit 0cdf8aa into rc-minor-fleet-v4.86.0 May 27, 2026
38 checks passed
@jkatz01
jkatz01 deleted the jkatz01/skip-vpp-label-validation-dry-run-cp branch May 27, 2026 17:11
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