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

Commit c69deed

Browse files
Release 8.7.1 (hotfix) (#3459)
* Remove the retention policy setting (#3452) --------- Co-authored-by: Cheick Keita <[email protected]>
1 parent 2a88838 commit c69deed

Some content is hidden

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

59 files changed

+1389
-872
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
@@ -542,11 +542,9 @@ jobs:
542542
543543
mkdir -p artifacts/linux-libfuzzer
544544
mkdir -p artifacts/linux-libfuzzer-with-options
545-
mkdir -p artifacts/mariner-libfuzzer
546545
(cd libfuzzer ; make )
547546
cp -r libfuzzer/fuzz.exe libfuzzer/seeds artifacts/linux-libfuzzer
548547
cp -r libfuzzer/fuzz.exe libfuzzer/seeds artifacts/linux-libfuzzer-with-options
549-
cp -r libfuzzer/fuzz.exe libfuzzer/seeds artifacts/mariner-libfuzzer
550548
551549
mkdir -p artifacts/linux-libfuzzer-regression
552550
(cd libfuzzer-regression ; make )

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ All notable changes to this project will be documented in this file.
77
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

10+
## 8.7.1
11+
12+
### Fixed
13+
14+
* Service: Removed deprecated Azure retention policy setting that was causing scaleset deployment errors [#3452](https://github.com/microsoft/onefuzz/pull/3452)
15+
1016
## 8.7.0
1117

1218
### Added

CURRENT_VERSION

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

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();
@@ -915,27 +892,6 @@ public record SecretAddress<T>(Uri Url) : ISecret<T> {
915892
public record SecretData<T>(ISecret<T> Secret) {
916893
}
917894

918-
public record JobResult(
919-
[PartitionKey][RowKey] Guid JobId,
920-
string Project,
921-
string Name,
922-
double NewCrashingInput = 0,
923-
double NoReproCrashingInput = 0,
924-
double NewReport = 0,
925-
double NewUniqueReport = 0,
926-
double NewRegressionReport = 0,
927-
double NewCrashDump = 0,
928-
double InstructionsCovered = 0,
929-
double TotalInstructions = 0,
930-
double CoverageRate = 0,
931-
double IterationCount = 0
932-
) : EntityBase() {
933-
public JobResult(Guid JobId, string Project, string Name) : this(
934-
JobId: JobId,
935-
Project: Project,
936-
Name: Name, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) { }
937-
}
938-
939895
public record JobConfig(
940896
string Project,
941897
string Name,
@@ -1100,7 +1056,6 @@ public record TaskUnitConfig(
11001056
string? InstanceTelemetryKey,
11011057
string? MicrosoftTelemetryKey,
11021058
Uri HeartbeatQueue,
1103-
Uri JobResultQueue,
11041059
Dictionary<string, string> Tags
11051060
) {
11061061
public Uri? inputQueue { get; set; }

src/ApiService/ApiService/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ public static async Async.Task Main() {
118118
.AddScoped<IVmOperations, VmOperations>()
119119
.AddScoped<ISecretsOperations, SecretsOperations>()
120120
.AddScoped<IJobOperations, JobOperations>()
121-
.AddScoped<IJobResultOperations, JobResultOperations>()
122121
.AddScoped<INsgOperations, NsgOperations>()
123122
.AddScoped<IScheduler, Scheduler>()
124123
.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)