[release/v7.5.6] Delay update notification for one week to ensure all packages become available by daxian-dbw · Pull Request #27220 · PowerShell/PowerShell · GitHub
Skip to content

[release/v7.5.6] Delay update notification for one week to ensure all packages become available#27220

Merged
daxian-dbw merged 1 commit intoPowerShell:release/v7.5.6from
daxian-dbw:backport/release/v7.5.6/27095-a625d2d45
Apr 9, 2026
Merged

[release/v7.5.6] Delay update notification for one week to ensure all packages become available#27220
daxian-dbw merged 1 commit intoPowerShell:release/v7.5.6from
daxian-dbw:backport/release/v7.5.6/27095-a625d2d45

Conversation

@daxian-dbw
Copy link
Copy Markdown
Member

Backport of #27095 to release/v7.5.6

Triggered by @daxian-dbw on behalf of @daxian-dbw

Original CL Label: CL-General

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Customer Impact

  • Customer reported
  • Found internally

Adjusts the update notification timing so users are not prompted before all v7.5.6 packages are expected to be available. Expected behavior is that update prompts appear only after package distribution has settled across channels; previously the prompt could appear too early.

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Cherry-pick applied cleanly to release/v7.5.6. The change is a narrowly scoped update to the update notification backoff logic in UpdatesNotification.cs and was previously validated by CI on the original PR. Backport validation relies on backport PR CI for the release branch.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Low risk because the change only adjusts the update notification delay constant and related logic in a single code path without affecting package installation or runtime execution.

@daxian-dbw daxian-dbw added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Apr 9, 2026
Copilot AI review requested due to automatic review settings April 9, 2026 06:14
Copy link
Copy Markdown
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

Backport to release/v7.5.6 adjusting the update-notification behavior so users aren’t prompted immediately after a new release, reducing cases where a notification appears before packages are broadly available across channels.

Changes:

  • Add a 7-day minimum age requirement (based on the update publish date) before showing update notifications at startup.
  • Replace the inline “< 7 days” update-check backoff comparison with a named constant.

Comment on lines +31 to +33
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

This PR is described as a backport of #27095, which (per the linked PR summary) also increases the update-check backoff from 7 to 14 days. In this backport, UpdateCheckBackoffDays is still set to 7, so either the backport is incomplete or the PR description/linkage should be updated to reflect that only the notification delay is being backported.

Copilot uses AI. Check for mistakes.
Comment on lines +98 to +99
DateTime today = DateTime.UtcNow;
if ((today - lastUpdateDate).TotalDays < NotificationDelayDays)
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

lastUpdateDate is parsed from the update file name using DateTimeStyles.AssumeLocal (see TryParseUpdateFile), but this logic compares it against DateTime.UtcNow. That UTC/local mismatch can skew the effective delay by up to ~1 day depending on timezone/DST. Consider normalizing both to the same basis (e.g., compare DateTime.UtcNow.Date to lastUpdateDate.ToUniversalTime().Date, or parse the date as UTC) so the 7-day notification delay is consistent across locales.

Suggested change

Copilot uses AI. Check for mistakes.
@daxian-dbw daxian-dbw merged commit 87feb94 into PowerShell:release/v7.5.6 Apr 9, 2026
40 checks passed
@daxian-dbw daxian-dbw deleted the backport/release/v7.5.6/27095-a625d2d45 branch April 9, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants