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

Commit e28f16f

Browse files
authored
Merge branch 'main' into srcview-test
2 parents f8c230d + d464e34 commit e28f16f

File tree

7 files changed

+124
-102
lines changed

7 files changed

+124
-102
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ 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.6.3
11+
12+
### Fixed
13+
14+
* Service: Fixed another duplicate Azure DevOps work item creation case by handling `Microsoft.VSTS.Common.ResolvedReason` field when present [#3383](https://github.com/microsoft/onefuzz/pull/3383)
15+
16+
## 8.6.2
17+
18+
### Fixed
19+
20+
* Agent: Fixed tasks hanging when shutting down by forcefully shutting down the runtime before exiting the main task [#3378](https://github.com/microsoft/onefuzz/pull/3378)
21+
* Service: Refactored Azure DevOps template rendering to fix duplicate bugs being filed due to title truncation and added several validation tests in this area [#3370](https://github.com/microsoft/onefuzz/pull/3370)
22+
1023
## 8.6.1
1124

1225
### Added

CURRENT_VERSION

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

contrib/deploy-onefuzz-via-azure-devops/Pipfile.lock

Lines changed: 98 additions & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ApiService/ApiService/Log.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ private static SeverityLevel GetSeverityLevel(LogLevel logLevel) {
166166
/// <param name="eventId">Event Id information.</param>
167167
private void PopulateTelemetry<TState>(ISupportProperties telemetryItem, TState state, EventId eventId) {
168168
IDictionary<string, string> dict = telemetryItem.Properties;
169+
170+
PopulateTags(telemetryItem);
171+
169172
dict["CategoryName"] = this.categoryName;
170173
dict["Logger"] = nameof(OneFuzzLogger);
171174

@@ -181,11 +184,15 @@ private void PopulateTelemetry<TState>(ISupportProperties telemetryItem, TState
181184
if (string.Equals(item.Key, "{OriginalFormat}")) {
182185
dict["OriginalFormat"] = Convert.ToString(item.Value, CultureInfo.InvariantCulture) ?? $"Failed to convert {item.Value}";
183186
} else {
187+
//if there is an existing tag that is shadowing the log message tag - rename it
188+
if (dict.ContainsKey(item.Key)) {
189+
dict[$"!@#<--- {item.Key} --->#@!"] = dict[item.Key];
190+
}
184191
dict[item.Key] = Convert.ToString(item.Value, CultureInfo.InvariantCulture) ?? $"Failed to convert {item.Value}";
185192
}
186193
}
187194
}
188-
PopulateTags(telemetryItem);
195+
189196
}
190197

191198
/// <param name="telemetryItem"></param>

src/ApiService/ApiService/onefuzzlib/notifications/Ado.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ private static bool IsADODuplicateWorkItem(WorkItem wi) {
528528
// OR it could have System.State == Closed && System.Reason == Duplicate
529529
// I haven't found any other combinations where System.Reason could be duplicate but just to be safe
530530
// we're explicitly _not_ checking the state of the work item to determine if it's duplicate
531-
return wi.Fields.ContainsKey("System.Reason") && string.Equals(wi.Fields["System.Reason"].ToString(), "Duplicate")
531+
return wi.Fields.ContainsKey("System.Reason") && string.Equals(wi.Fields["System.Reason"].ToString(), "Duplicate", StringComparison.OrdinalIgnoreCase)
532+
|| wi.Fields.ContainsKey("Microsoft.VSTS.Common.ResolvedReason") && string.Equals(wi.Fields["Microsoft.VSTS.Common.ResolvedReason"].ToString(), "Duplicate", StringComparison.OrdinalIgnoreCase)
532533
// Alternatively, the work item can also specify a 'relation' to another work item.
533534
// This is typically used to create parent/child relationships between work items but can also
534535
// Be used to mark duplicates so we should check this as well.

src/agent/onefuzz-task/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ fn main() -> Result<()> {
4040
let rt = tokio::runtime::Runtime::new()?;
4141
let result = rt.block_on(run(matches));
4242
atexit::execute();
43+
rt.shutdown_background();
4344
result
4445
}
4546

src/deployment/bicep-templates/feature-flags.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ resource enableWorkItemCreation 'Microsoft.AppConfiguration/configurationStores/
8383
value: string({
8484
id: 'EnableWorkItemCreation'
8585
description: 'Create work items'
86-
enabled: false
86+
enabled: true
8787
})
8888
contentType: 'application/vnd.microsoft.appconfig.ff+json;charset=utf-8'
8989
}

0 commit comments

Comments
 (0)