You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Records bounded, consent-gated upload outcomes and forwards incomplete-scan summaries for fixed-category counters. Upload failures expose status categories without response bodies, and permanent rejections are not retried.
Validation: 74 automated loader tests passed (2 live-service tests skipped). MelonLoader, BepInEx 5, BepInEx 6 Mono, and BepInEx 6 IL2CPP builds passed against published MLVScan.Core 1.10.0 with deployment copy targets disabled. No in-game runtime smoke was performed.
Release notes
Upload outcomes now feed a bounded, consent-gated telemetry path. Duplicate, in-flight, oversized, and empty-file cases record a reason.
Upload failures report a status category. They do not include response bodies.
Non-retryable upload rejections no longer retry. Only 5xx responses are retryable.
Sample preparation failures report size_limit or read_error through a new RecordPreparationFailure callback. All report-upload call sites pass this callback.
Incomplete scan diagnostics include each finding's description as the reason summary.
Scan telemetry adds review_candidate_count and file_sharing_enabled.
A new PostHogScanTelemetry.SendUploadOutcomeAsync sends one upload outcome event. It accepts only accepted, failed, or skipped outcomes, clamps attempts to 0–3, and returns false on invalid input or delivery failure.
No actionable comments were generated in the recent review.
Walkthrough
The upload service now records consent-gated upload outcomes and sample-preparation failures. Telemetry includes additional scan fields and incomplete-finding descriptions. BepInEx and MelonLoader upload paths pass the preparation-failure callback.
Changes: Upload telemetry
Layer / File(s)
Summary
Telemetry event fields and results Services/Diagnostics/PostHogScanTelemetry.cs
SendAsync adds review candidate and file-sharing fields. A new method sends validated upload-outcome events with bounded attempt counts. Incomplete findings now contribute their descriptions as completeness-reason summaries.
Upload outcome tracking and call sites Services/ReportUploadService.cs, BepInEx/*.cs, MelonLoader/MelonLoaderPlugin.cs
ReportUploadService records preparation and upload outcomes, classifies HTTP failures, and stops retries for non-retryable upload errors. BepInEx and MelonLoader call sites pass the preparation-failure callback.
ifBars/MLVScan Issue 12: The change adds incomplete-finding descriptions to completeness reasons and includes review-category counts in telemetry. It does not add the requested user-facing loader messages or unsupported-input explanations.
ifBars/MLVScan Issue 13: The change adds bounded, consent-gated upload outcome reporting and status-based failure reasons. The supplied context says it does not establish rollout coverage or production event accounting.
Merge Risk: Minimal · up to 06967
The change adds consent-gated upload outcome telemetry and classifies upload failures without exposing response bodies. No merge-blocking issue was found.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Add private upload outcome diagnostics" matches the main change. The PR records bounded, consent-gated upload outcomes through ReportUploadService and PostHogScanTelemetry, and it forwards …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Add private upload outcome diagnostics" matches the main change. The PR records bounded, consent-gated upload outcomes through ReportUploadService and PostHogScanTelemetry, and it forwards incomplete-scan summaries. The title is 38 characters, which is under the 50-character guideline. It uses plain English and proper casing.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks each sample’s size And notes the reason when it skips A counted try, a status code Becomes a message on the road The telemetry hops along While carrots cheer the upload song
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 1d537638-c907-4885-8b59-c3d88119d5e3
Commits
Reviewing files that changed from the base of the PR and between 5412bb8 and 06967fe.
Files selected for processing: 6
BepInEx/BepInExConsentPlugin.cs
BepInEx/BepInExIl2CppConsentPlugin.cs
BepInEx/BepInExReportGenerator.cs
MelonLoader/MelonLoaderPlugin.cs
Services/Diagnostics/PostHogScanTelemetry.cs
Services/ReportUploadService.cs
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Records bounded, consent-gated upload outcomes and forwards incomplete-scan summaries for fixed-category counters. Upload failures expose status categories without response bodies, and permanent rejections are not retried.
Validation: 74 automated loader tests passed (2 live-service tests skipped). MelonLoader, BepInEx 5, BepInEx 6 Mono, and BepInEx 6 IL2CPP builds passed against published MLVScan.Core 1.10.0 with deployment copy targets disabled. No in-game runtime smoke was performed.
Release notes
size_limitorread_errorthrough a newRecordPreparationFailurecallback. All report-upload call sites pass this callback.review_candidate_countandfile_sharing_enabled.PostHogScanTelemetry.SendUploadOutcomeAsyncsends one upload outcome event. It accepts onlyaccepted,failed, orskippedoutcomes, clamps attempts to 0–3, and returnsfalseon invalid input or delivery failure.Contributions by author