Skip to content

Fix tests and bump packages #5149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 26, 2025
Merged

Fix tests and bump packages #5149

merged 3 commits into from
Feb 26, 2025

Conversation

andyleejordan
Copy link
Member

Fixes the unit test that needs to be bumped due to PowerShell 7.5 releasing. Fixes the OneBranch pipeline to rely on built-in PSResourceGet now that PowerShell 7.4 is (ironically) finally used. Bumps minor versions of packages automatically and carefully/manually bumps major versions.

PowerShell 7.5 was released so the update test needed its usual fix.
Ironically, OneBranch now uses 7.4 so we can rely on PSResourceGet existing.
@Copilot Copilot AI review requested due to automatic review settings February 26, 2025 20:00
@andyleejordan andyleejordan requested a review from a team as a code owner February 26, 2025 20:00
@andyleejordan andyleejordan enabled auto-merge (rebase) February 26, 2025 20:00
Copy link

@Copilot 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.

PR Overview

This pull request updates the PowerShell pipeline and unit tests to accommodate changes in PowerShell versions by relying on built‐in PSResourceGet and adjusting version expectations in the tests.

  • Update the pipeline script to remove redundant repository registration commands and rely on built-in PSResourceGet.
  • Adjust unit tests by updating version details and assertions for both LTS and stable update checks.

Reviewed Changes

File Description
.pipelines/vscode-powershell-Official.yml Simplified the installation step by replacing manual module registration with a direct script call.
test/features/UpdatePowerShell.test.ts Updated version details and assertion expectations in multiple test cases to reflect the new PowerShell version bump.

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

test/features/UpdatePowerShell.test.ts:117

  • In the LTS update test, the previous allowance for tag starting with 'v7.2' was removed. Confirm that the new behavior (expecting only tags starting with 'v7.4') is intended given the updated input version.
assert(tag.startsWith("v7.4"));

test/features/UpdatePowerShell.test.ts:131

  • The stable update test now expects tags starting with 'v7.5' instead of 'v7.4'. Verify that this change correctly reflects the updated requirements for stable version updates.
assert(tag?.startsWith("v7.5"));

Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

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

LGTM!

@andyleejordan andyleejordan merged commit 3920717 into main Feb 26, 2025
12 checks passed
@andyleejordan andyleejordan deleted the bump-packages branch February 26, 2025 20:27
@andyleejordan andyleejordan added the Ignore Exclude from the changelog. label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ignore Exclude from the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants