Skip to content

Conversation

@StephenMolloy
Copy link
Member

Test re-enabling some long-disabled cache tests that I think are probably ok.

@StephenMolloy
Copy link
Member Author

/azp run runtime-linuxbionic

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenMolloy
Copy link
Member Author

/azp list

@azure-pipelines
Copy link

CI/CD Pipelines for this repository:

@StephenMolloy
Copy link
Member Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenMolloy
Copy link
Member Author

/azp run runtime-libraries-mono outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenMolloy
Copy link
Member Author

/azp run runtime-linuxbionic

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenMolloy
Copy link
Member Author

/azp run runtime-libraries-coreclr outerloop

@StephenMolloy
Copy link
Member Author

/azp run runtime-libraries-mono outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenMolloy
Copy link
Member Author

/azp run runtime-linuxbionic

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenMolloy
Copy link
Member Author

/azp run runtime-libraries-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenMolloy
Copy link
Member Author

/azp run runtime-libraries-mono outerloop

@StephenMolloy
Copy link
Member Author

/azp run runtime-linuxbionic

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenMolloy StephenMolloy added this to the 10.0.0 milestone Aug 8, 2025
@StephenMolloy StephenMolloy marked this pull request as ready for review August 8, 2025 00:20
Copilot AI review requested due to automatic review settings August 8, 2025 00:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request re-enables several System.Runtime.Caching tests that were previously disabled due to various issues. The changes remove test skip attributes and ActiveIssue annotations to allow these tests to run again, with the assumption that the underlying issues have been resolved.

Key changes include:

  • Removal of ActiveIssue and platform-specific skip attributes from multiple test methods
  • Addition of a new test case for file change monitoring with reasonable delay
  • Minor code organization improvements in imports

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
MemoryCacheTest.cs Removes ActiveIssue and platform skip attributes from Contains, Trim, TestCacheSliding, TestCacheShrink, and TestCacheExpiryOrdering tests
HostFileChangeMonitorTest.cs Removes ActiveIssue attributes from file change monitoring tests, adds new Reasonable_Delay test, and improves SetupMonitoring method to use unique paths


private static Tuple<string, string, string, IList<string>> SetupMonitoring()
private static Tuple<string, string, string, IList<string>> SetupMonitoring(string uniqueId)
{
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SetupMonitoring method signature change from no parameters to requiring a uniqueId parameter is a breaking change for any existing callers. Consider making the uniqueId parameter optional with a default value to maintain backward compatibility.

Suggested change
{
private static Tuple<string, string, string, IList<string>> SetupMonitoring(string uniqueId = null)
{
if (uniqueId == null)
uniqueId = Guid.NewGuid().ToString("N");

Copilot uses AI. Check for mistakes.
File.WriteAllText(setup.Item2, "I am the first file. Updated.");

// Wait for the monitor to detect the change - 5s should be more than enough
for (int i = 0; i < 250; i++)
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The magic number 250 for loop iterations should be extracted to a named constant to improve code readability and maintainability.

Suggested change
for (int i = 0; i < 250; i++)
for (int i = 0; i < MaxWaitIterations; i++)

Copilot uses AI. Check for mistakes.
{
if (!mc.Contains("key"))
break;
Thread.Sleep(20);
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The magic number 20 for sleep duration should be extracted to a named constant to improve code readability and maintainability.

Suggested change
Thread.Sleep(20);
Thread.Sleep(PollingIntervalMilliseconds);

Copilot uses AI. Check for mistakes.
@StephenMolloy StephenMolloy deleted the SRC_Re-enable_Tests branch August 8, 2025 00:25
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant