From f95f8192c98eb51d532d6397bb4a1ce64f7f9d3f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 13:51:59 +0000 Subject: [PATCH 1/5] Initial plan From d2ce095449d1f3db4a99ccaa6a1a4d91f9bc93ed Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 13:57:14 +0000 Subject: [PATCH 2/5] Fix build errors: use AddTestSessionLifetimeHandler and suppress CS0618 for CancelledTestNodeStateProperty Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> --- GitHubActionsTestLogger/MtpIntegration.cs | 2 +- GitHubActionsTestLogger/MtpLogger.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/GitHubActionsTestLogger/MtpIntegration.cs b/GitHubActionsTestLogger/MtpIntegration.cs index 997b6d2..9e567bd 100644 --- a/GitHubActionsTestLogger/MtpIntegration.cs +++ b/GitHubActionsTestLogger/MtpIntegration.cs @@ -31,7 +31,7 @@ public void AddGitHubActionsReporting(TextWriter commandWriter, TextWriter summa ); testApplicationBuilder.TestHost.AddDataConsumer(compositeExtension); - testApplicationBuilder.TestHost.AddTestSessionLifetimeHandle(compositeExtension); + testApplicationBuilder.TestHost.AddTestSessionLifetimeHandler(compositeExtension); testApplicationBuilder.CommandLine.AddProvider(() => new MtpLoggerOptionsProvider()); } diff --git a/GitHubActionsTestLogger/MtpLogger.cs b/GitHubActionsTestLogger/MtpLogger.cs index 70ccee7..cf38ca8 100644 --- a/GitHubActionsTestLogger/MtpLogger.cs +++ b/GitHubActionsTestLogger/MtpLogger.cs @@ -109,7 +109,9 @@ CancellationToken cancellationToken ErrorTestNodeStateProperty => TestOutcome.Failed, TimeoutTestNodeStateProperty => TestOutcome.Failed, SkippedTestNodeStateProperty => TestOutcome.Skipped, +#pragma warning disable CS0618 CancelledTestNodeStateProperty => TestOutcome.Skipped, +#pragma warning restore CS0618 _ => TestOutcome.None, }, state.Explanation ?? exception?.Message, From 0cac1969f853ec2d5a797d4794e3b47215b70412 Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Sun, 1 Mar 2026 16:16:41 +0200 Subject: [PATCH 3/5] Apply suggestion from @Tyrrrz --- GitHubActionsTestLogger/MtpLogger.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/GitHubActionsTestLogger/MtpLogger.cs b/GitHubActionsTestLogger/MtpLogger.cs index cf38ca8..ab3cc03 100644 --- a/GitHubActionsTestLogger/MtpLogger.cs +++ b/GitHubActionsTestLogger/MtpLogger.cs @@ -109,6 +109,7 @@ CancellationToken cancellationToken ErrorTestNodeStateProperty => TestOutcome.Failed, TimeoutTestNodeStateProperty => TestOutcome.Failed, SkippedTestNodeStateProperty => TestOutcome.Skipped, +// Backwards compatibility with frameworks that still emit this property #pragma warning disable CS0618 CancelledTestNodeStateProperty => TestOutcome.Skipped, #pragma warning restore CS0618 From 988cff366e1a0f89fc3b37128f65260a689830f2 Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Sun, 1 Mar 2026 16:21:07 +0200 Subject: [PATCH 4/5] Update GitHubActionsTestLogger/MtpLogger.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- GitHubActionsTestLogger/MtpLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitHubActionsTestLogger/MtpLogger.cs b/GitHubActionsTestLogger/MtpLogger.cs index ab3cc03..26b65fc 100644 --- a/GitHubActionsTestLogger/MtpLogger.cs +++ b/GitHubActionsTestLogger/MtpLogger.cs @@ -109,7 +109,7 @@ CancellationToken cancellationToken ErrorTestNodeStateProperty => TestOutcome.Failed, TimeoutTestNodeStateProperty => TestOutcome.Failed, SkippedTestNodeStateProperty => TestOutcome.Skipped, -// Backwards compatibility with frameworks that still emit this property +// Keep support for the obsolete CancelledTestNodeStateProperty for older test frameworks #pragma warning disable CS0618 CancelledTestNodeStateProperty => TestOutcome.Skipped, #pragma warning restore CS0618 From 1cde2da60ac1b3a6fe12a85669ce35971edaa6e5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 14:22:49 +0000 Subject: [PATCH 5/5] Fix formatting: indent comment to match surrounding switch arms Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> --- GitHubActionsTestLogger/MtpLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitHubActionsTestLogger/MtpLogger.cs b/GitHubActionsTestLogger/MtpLogger.cs index 26b65fc..c036045 100644 --- a/GitHubActionsTestLogger/MtpLogger.cs +++ b/GitHubActionsTestLogger/MtpLogger.cs @@ -109,7 +109,7 @@ CancellationToken cancellationToken ErrorTestNodeStateProperty => TestOutcome.Failed, TimeoutTestNodeStateProperty => TestOutcome.Failed, SkippedTestNodeStateProperty => TestOutcome.Skipped, -// Keep support for the obsolete CancelledTestNodeStateProperty for older test frameworks + // Backwards compatibility with frameworks that still emit this property #pragma warning disable CS0618 CancelledTestNodeStateProperty => TestOutcome.Skipped, #pragma warning restore CS0618