Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 6a2ad0f

Browse files
AdamL-Microsoftchkeita
authored andcommitted
Release 8.7.1 (hotfix) (#3459)
* Remove the retention policy setting (#3452) --------- Co-authored-by: Cheick Keita <chkeita@microsoft.com>
1 parent f251282 commit 6a2ad0f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1388
-649
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"**/target/**": true
1414
},
1515
"lldb.executable": "/usr/bin/lldb",
16-
"dotnet.server.useOmnisharp": true,
1716
"omnisharp.enableEditorConfigSupport": true,
1817
"omnisharp.enableRoslynAnalyzers": true,
1918
"python.defaultInterpreterPath": "/workspaces/onefuzz/src/venv/bin/python",
@@ -49,4 +48,4 @@
4948
"features": {
5049
"ghcr.io/devcontainers/features/azure-cli:1": {}
5150
}
52-
}
51+
}

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,11 +550,9 @@ jobs:
550550
551551
mkdir -p artifacts/linux-libfuzzer
552552
mkdir -p artifacts/linux-libfuzzer-with-options
553-
mkdir -p artifacts/mariner-libfuzzer
554553
(cd libfuzzer ; make )
555554
cp -r libfuzzer/fuzz.exe libfuzzer/seeds artifacts/linux-libfuzzer
556555
cp -r libfuzzer/fuzz.exe libfuzzer/seeds artifacts/linux-libfuzzer-with-options
557-
cp -r libfuzzer/fuzz.exe libfuzzer/seeds artifacts/mariner-libfuzzer
558556
559557
mkdir -p artifacts/linux-libfuzzer-regression
560558
(cd libfuzzer-regression ; make )

CURRENT_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.9.0
1+
8.9.0

src/ApiService/ApiService/Functions/QueueJobResult.cs

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/ApiService/ApiService/OneFuzzTypes/Model.cs

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,6 @@ public enum HeartbeatType {
3333
TaskAlive,
3434
}
3535

36-
[SkipRename]
37-
public enum JobResultType {
38-
NewCrashingInput,
39-
NoReproCrashingInput,
40-
NewReport,
41-
NewUniqueReport,
42-
NewRegressionReport,
43-
NewCoverage,
44-
NewCrashDump,
45-
CoverageData,
46-
RuntimeStats,
47-
}
48-
4936
public record HeartbeatData(HeartbeatType Type);
5037

5138
public record TaskHeartbeatEntry(
@@ -54,16 +41,6 @@ public record TaskHeartbeatEntry(
5441
Guid MachineId,
5542
HeartbeatData[] Data);
5643

57-
public record JobResultData(JobResultType Type);
58-
59-
public record TaskJobResultEntry(
60-
Guid TaskId,
61-
Guid? JobId,
62-
Guid MachineId,
63-
JobResultData Data,
64-
Dictionary<string, double> Value
65-
);
66-
6744
public record NodeHeartbeatEntry(Guid NodeId, HeartbeatData[] Data);
6845

6946
public record NodeCommandStopIfFree();
@@ -918,27 +895,6 @@ public record SecretAddress<T>(Uri Url) : ISecret<T> {
918895
public record SecretData<T>(ISecret<T> Secret) {
919896
}
920897

921-
public record JobResult(
922-
[PartitionKey][RowKey] Guid JobId,
923-
string Project,
924-
string Name,
925-
double NewCrashingInput = 0,
926-
double NoReproCrashingInput = 0,
927-
double NewReport = 0,
928-
double NewUniqueReport = 0,
929-
double NewRegressionReport = 0,
930-
double NewCrashDump = 0,
931-
double InstructionsCovered = 0,
932-
double TotalInstructions = 0,
933-
double CoverageRate = 0,
934-
double IterationCount = 0
935-
) : EntityBase() {
936-
public JobResult(Guid JobId, string Project, string Name) : this(
937-
JobId: JobId,
938-
Project: Project,
939-
Name: Name, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) { }
940-
}
941-
942898
public record JobConfig(
943899
string Project,
944900
string Name,
@@ -1105,7 +1061,6 @@ public record TaskUnitConfig(
11051061
string? InstanceTelemetryKey,
11061062
string? MicrosoftTelemetryKey,
11071063
Uri HeartbeatQueue,
1108-
Uri JobResultQueue,
11091064
Dictionary<string, string> Tags
11101065
) {
11111066
public Uri? inputQueue { get; set; }

src/ApiService/ApiService/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ public static async Async.Task Main() {
180180
.AddScoped<IVmOperations, VmOperations>()
181181
.AddScoped<ISecretsOperations, SecretsOperations>()
182182
.AddScoped<IJobOperations, JobOperations>()
183-
.AddScoped<IJobResultOperations, JobResultOperations>()
184183
.AddScoped<INsgOperations, NsgOperations>()
185184
.AddScoped<IScheduler, Scheduler>()
186185
.AddScoped<IConfig, Config>()

src/ApiService/ApiService/onefuzzlib/Config.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ private static BlobContainerSasPermissions ConvertPermissions(ContainerPermissio
7171
InstanceTelemetryKey: _serviceConfig.ApplicationInsightsInstrumentationKey,
7272
MicrosoftTelemetryKey: _serviceConfig.OneFuzzTelemetry,
7373
HeartbeatQueue: await _queue.GetQueueSas("task-heartbeat", StorageType.Config, QueueSasPermissions.Add) ?? throw new Exception("unable to get heartbeat queue sas"),
74-
JobResultQueue: await _queue.GetQueueSas("job-result", StorageType.Config, QueueSasPermissions.Add) ?? throw new Exception("unable to get heartbeat queue sas"),
7574
Tags: task.Config.Tags ?? new Dictionary<string, string>()
7675
);
7776

src/ApiService/ApiService/onefuzzlib/Extension.cs

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ public async Async.Task<IList<VMExtensionWrapper>> GenericExtensions(AzureLocati
3636
var extensions = new List<VMExtensionWrapper>();
3737

3838
var instanceConfig = await _context.ConfigOperations.Fetch();
39-
if (vmOs == Os.Windows) {
40-
extensions.Add(await MonitorExtension(region));
41-
}
39+
extensions.Add(await MonitorExtension(region, vmOs));
4240

4341
var depenency = DependencyExtension(region, vmOs);
4442
if (depenency is not null) {
@@ -331,21 +329,37 @@ public async Async.Task<VMExtensionWrapper> AgentConfig(AzureLocation region, Os
331329
throw new NotSupportedException($"unsupported OS: {vmOs}");
332330
}
333331

334-
public async Async.Task<VMExtensionWrapper> MonitorExtension(AzureLocation region) {
332+
public async Async.Task<VMExtensionWrapper> MonitorExtension(AzureLocation region, Os vmOs) {
335333
var settings = await _context.LogAnalytics.GetMonitorSettings();
336334
var extensionSettings = JsonSerializer.Serialize(new { WorkspaceId = settings.Id }, _extensionSerializerOptions);
337335
var protectedExtensionSettings = JsonSerializer.Serialize(new { WorkspaceKey = settings.Key }, _extensionSerializerOptions);
338-
return new VMExtensionWrapper {
339-
Location = region,
340-
Name = "OMSExtension",
341-
TypePropertiesType = "MicrosoftMonitoringAgent",
342-
Publisher = "Microsoft.EnterpriseCloud.Monitoring",
343-
TypeHandlerVersion = "1.0",
344-
AutoUpgradeMinorVersion = true,
345-
Settings = new BinaryData(extensionSettings),
346-
ProtectedSettings = new BinaryData(protectedExtensionSettings),
347-
EnableAutomaticUpgrade = false
348-
};
336+
if (vmOs == Os.Windows) {
337+
return new VMExtensionWrapper {
338+
Location = region,
339+
Name = "OMSExtension",
340+
TypePropertiesType = "MicrosoftMonitoringAgent",
341+
Publisher = "Microsoft.EnterpriseCloud.Monitoring",
342+
TypeHandlerVersion = "1.0",
343+
AutoUpgradeMinorVersion = true,
344+
Settings = new BinaryData(extensionSettings),
345+
ProtectedSettings = new BinaryData(protectedExtensionSettings),
346+
EnableAutomaticUpgrade = false
347+
};
348+
} else if (vmOs == Os.Linux) {
349+
return new VMExtensionWrapper {
350+
Location = region,
351+
Name = "OmsAgentForLinux",
352+
TypePropertiesType = "OmsAgentForLinux",
353+
Publisher = "Microsoft.EnterpriseCloud.Monitoring",
354+
TypeHandlerVersion = "1.0",
355+
AutoUpgradeMinorVersion = true,
356+
Settings = new BinaryData(extensionSettings),
357+
ProtectedSettings = new BinaryData(protectedExtensionSettings),
358+
EnableAutomaticUpgrade = false
359+
};
360+
} else {
361+
throw new NotSupportedException($"unsupported os: {vmOs}");
362+
}
349363
}
350364

351365

src/ApiService/ApiService/onefuzzlib/JobResultOperations.cs

Lines changed: 0 additions & 121 deletions
This file was deleted.

src/ApiService/ApiService/onefuzzlib/OnefuzzContext.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public interface IOnefuzzContext {
1919
IExtensions Extensions { get; }
2020
IIpOperations IpOperations { get; }
2121
IJobOperations JobOperations { get; }
22-
IJobResultOperations JobResultOperations { get; }
2322
ILogAnalytics LogAnalytics { get; }
2423
INodeMessageOperations NodeMessageOperations { get; }
2524
INodeOperations NodeOperations { get; }
@@ -84,7 +83,6 @@ public OnefuzzContext(IServiceProvider serviceProvider) {
8483
public IVmOperations VmOperations => _serviceProvider.GetRequiredService<IVmOperations>();
8584
public ISecretsOperations SecretsOperations => _serviceProvider.GetRequiredService<ISecretsOperations>();
8685
public IJobOperations JobOperations => _serviceProvider.GetRequiredService<IJobOperations>();
87-
public IJobResultOperations JobResultOperations => _serviceProvider.GetRequiredService<IJobResultOperations>();
8886
public IScheduler Scheduler => _serviceProvider.GetRequiredService<IScheduler>();
8987
public IConfig Config => _serviceProvider.GetRequiredService<IConfig>();
9088
public ILogAnalytics LogAnalytics => _serviceProvider.GetRequiredService<ILogAnalytics>();

0 commit comments

Comments
 (0)