* graduate pipreport

* bump versions
This commit is contained in:
Paul Dorsch 2024-07-10 16:24:06 -04:00 коммит произвёл GitHub
Родитель a2fbc9adeb
Коммит 683f30ee44
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 4 добавлений и 23 удалений

Просмотреть файл

@ -11,7 +11,7 @@ using Microsoft.ComponentDetection.Contracts.Internal;
using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.Extensions.Logging;
public class PipComponentDetector : FileComponentDetector
public class PipComponentDetector : FileComponentDetector, IDefaultOffComponentDetector
{
private readonly IPythonCommandService pythonCommandService;
private readonly IPythonResolver pythonResolver;
@ -38,7 +38,7 @@ public class PipComponentDetector : FileComponentDetector
public override IEnumerable<ComponentType> SupportedComponentTypes { get; } = new[] { ComponentType.Pip };
public override int Version { get; } = 10;
public override int Version { get; } = 11;
protected override async Task<IObservable<ProcessRequest>> OnPrepareDetectionAsync(IObservable<ProcessRequest> processRequests, IDictionary<string, string> detectorArgs)
{

Просмотреть файл

@ -14,7 +14,7 @@ using Microsoft.ComponentDetection.Contracts.Internal;
using Microsoft.ComponentDetection.Contracts.TypedComponent;
using Microsoft.Extensions.Logging;
public class PipReportComponentDetector : FileComponentDetector, IExperimentalDetector
public class PipReportComponentDetector : FileComponentDetector
{
private const string PipReportOverrideBehaviorEnvVar = "PipReportOverrideBehavior";
private const string PipReportSkipFallbackOnFailureEnvVar = "PipReportSkipFallbackOnFailure";
@ -67,7 +67,7 @@ public class PipReportComponentDetector : FileComponentDetector, IExperimentalDe
public override IEnumerable<ComponentType> SupportedComponentTypes { get; } = new[] { ComponentType.Pip };
public override int Version { get; } = 3;
public override int Version { get; } = 4;
protected override bool EnableParallelism { get; set; } = true;

Просмотреть файл

@ -1,18 +0,0 @@
namespace Microsoft.ComponentDetection.Orchestrator.Experiments.Configs;
using Microsoft.ComponentDetection.Contracts;
using Microsoft.ComponentDetection.Detectors.Pip;
/// <summary>
/// Validating the <see cref="PipReportComponentDetector"/>.
/// </summary>
public class PipReportExperiment : IExperimentConfiguration
{
public string Name => "PipReport";
public bool IsInControlGroup(IComponentDetector componentDetector) => componentDetector is PipComponentDetector;
public bool IsInExperimentGroup(IComponentDetector componentDetector) => componentDetector is PipReportComponentDetector;
public bool ShouldRecord(IComponentDetector componentDetector, int numComponents) => true;
}

Просмотреть файл

@ -63,7 +63,6 @@ public static class ServiceCollectionExtensions
services.AddSingleton<IExperimentConfiguration, SimplePipExperiment>();
services.AddSingleton<IExperimentConfiguration, RustCliDetectorExperiment>();
services.AddSingleton<IExperimentConfiguration, VcpkgExperiment>();
services.AddSingleton<IExperimentConfiguration, PipReportExperiment>();
// Detectors
// CocoaPods