Skip to content

Conversation

@melotic
Copy link
Member

@melotic melotic commented Apr 21, 2023

The logging in ExperimentService was broken as it contained two identical {Count} parameters.

In addition, if the results of an experiment are completely empty (i.e. no components detected in the control group and experiment group), we should skip processing as an empty diff is indicative of a perfect detector.

Lastly, certain detectors running invalidates the experiment results. For instance, in the NPM Lockfile v3 experiment, if the lockfile v2 detector runs, we would be comparing the NpmComponentDetector (which would detect N components), to the NpmLockfile3Detector (which would detect 0 components). So, the experiment is tainted and we should not process it.

@melotic melotic added the type:bug Bug fix of existing functionality label Apr 21, 2023
@melotic melotic requested a review from a team as a code owner April 21, 2023 19:08
@melotic melotic requested a review from amitla1 April 21, 2023 19:08
@melotic melotic changed the title fix(experiment): logs & skip empty results fix(experiment): don't process if empty or tainted Apr 21, 2023
@melotic melotic enabled auto-merge (squash) April 24, 2023 17:18
@melotic melotic merged commit e7ecddd into main Apr 24, 2023
@melotic melotic deleted the justinperez/skip-empty-experiments branch April 24, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Bug fix of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants