Skip to content

to RC: Reconcile incoming Windows software upgrade_codes with those in exi… - #36317

Merged
jacobshandling merged 1 commit into
rc-minor-fleet-v4.77.0from
36175-to-rc
Nov 25, 2025
Merged

to RC: Reconcile incoming Windows software upgrade_codes with those in exi…#36317
jacobshandling merged 1 commit into
rc-minor-fleet-v4.77.0from
36175-to-rc

Conversation

@jacobshandling

Copy link
Copy Markdown
Contributor

See #36175

…sting correlated `software_title`s (#36175)

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #35724 

This PR addresses Issue 3 in the above unreleased bug: when a new
`software` comes in, its `upgrade_code` is compared with that of any
corresponding `software_title`s, and reconciled appropriately - see code
for the various cases

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually
- [x] Load tests: @AndreyKizimenko since I don't think you've load
tested the original story yet, this change will be covered by those
tests when you do

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

* **Bug Fixes**
* Ensured upgrade_code values on existing software titles are
consistently updated when incoming data provides non-empty values; added
logging and safe retry handling for anomalous states.

* **Tests**
* Added table-driven tests covering upgrade_code reconciliation
scenarios (empty, non-empty, conflicting, NULL) and verification of
resulting title values.

* **Refactor**
* Introduced a lightweight software title summary type and updated
internal mappings to streamline pre-insert and reconciliation
processing.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@codecov

codecov Bot commented Nov 25, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.30435% with 8 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (rc-minor-fleet-v4.77.0@68838d8). Learn more about missing BASE report.

Files with missing lines Patch % Lines
server/datastore/mysql/software.go 91.30% 3 Missing and 5 partials ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##             rc-minor-fleet-v4.77.0   #36317   +/-   ##
=========================================================
  Coverage                          ?   67.84%           
=========================================================
  Files                             ?     1368           
  Lines                             ?   156357           
  Branches                          ?        0           
=========================================================
  Hits                              ?   106087           
  Misses                            ?    39493           
  Partials                          ?    10777           
Flag Coverage Δ
backend 67.84% <91.30%> (?)

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.

@jacobshandling
jacobshandling merged commit 052d13a into rc-minor-fleet-v4.77.0 Nov 25, 2025
36 checks passed
@jacobshandling
jacobshandling deleted the 36175-to-rc branch November 25, 2025 23:08
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