Skip to content

Ensure managed settings stability with regression tests - #334056

Merged
joshspicer merged 2 commits into
mainfrom
agents/ensure-managed-settings-stability
Sep 2, 2026
Merged

joshspicer merged 2 commits into
mainfrom
agents/ensure-managed-settings-stability

Conversation

@joshspicer

Copy link
Copy Markdown
Contributor

This pull request adds regression tests to confirm the stability of managed settings and ensure that no unintended blocking states occur. The following changes were made:

  • Added Regression Tests: Three new tests were added to defaultAccount.test.ts to validate the behavior of managed settings under various conditions, including:

    • A successful endpoint response followed by a timeout, ensuring that the account remains available and no blocking state is triggered.
    • A scenario where the server returns a malformed truthy value for forceRemoteSettingsRefresh, confirming it does not activate the freshness requirement.
    • Tests for HTTP errors (500, malformed JSON, rate limiting) to verify that these do not lead to a blocking state without the explicit requirement.
  • Confirmed No Bugs: A thorough review of the managed settings pipeline confirmed that the only way to enter a blocking state is through an explicit forceRemoteSettingsRefresh: true or a special HTTP 466 response.

  • Validation: All tests passed successfully, ensuring that the changes do not introduce regressions and that the managed settings functionality remains stable.

This work addresses user concerns about potential regressions and reinforces the stability of the managed settings feature.

Copilot AI balanced review requested due to automatic review settings September 2, 2026 17:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The gate-state assertion occurs before asynchronous gate computation completes.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 1 Medium severity

New issues introduced by this change (1)
Severity Finding
Medium severity src/​vs/​workbench/​services/​accounts/​test/​browser/​defaultAccount.test.ts — AccountPolicyService computes gateInfo asynchronously: its constructor starts…
What changed in this PR

Adds managed-settings regression coverage for non-blocking failure scenarios.

Changes:

  • Tests outages after successful refreshes.
  • Tests malformed refresh controls and non-466 failures.
  • Verifies cached policy and freshness preservation.
File Description
src/​vs/​workbench/​services/​accounts/​test/​browser/​defaultAccount.test.ts Adds managed-settings stability tests.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>
@joshspicer
joshspicer enabled auto-merge (squash) September 2, 2026 20:25
@joshspicer
joshspicer merged commit 2931952 into main Sep 2, 2026
40 checks passed
@joshspicer
joshspicer deleted the agents/ensure-managed-settings-stability branch September 2, 2026 21:07
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants