Skip to content

Fix Packager base dir for Azure Arc - #370

Closed
kjohn-msft wants to merge 1 commit into
masterfrom
kjohn-archf
Closed

Fix Packager base dir for Azure Arc#370
kjohn-msft wants to merge 1 commit into
masterfrom
kjohn-archf

Conversation

@kjohn-msft

Copy link
Copy Markdown
Collaborator

This addresses an issue in Arc where unzipping the latest version is not working with PowerShell Core-based unzip.

There is no issue with this in Azure.

@kjohn-msft kjohn-msft added the bug Something isn't working label Jul 30, 2026
Copilot AI review requested due to automatic review settings July 30, 2026 05:34

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.

Pull request overview

This PR adjusts how the extension ZIP is created by the packager so the resulting archive has the expected base directory layout when unzipped in Azure Arc (notably with PowerShell Core’s unzip behavior), while keeping Azure behavior unchanged.

Changes:

  • Update shutil.make_archive’s base_dir from .. to . so the ZIP contents are rooted correctly from the out directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.10%. Comparing base (fc7f336) to head (9885d11).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #370   +/-   ##
=======================================
  Coverage   94.10%   94.10%           
=======================================
  Files         109      109           
  Lines       20642    20642           
=======================================
  Hits        19425    19425           
  Misses       1217     1217           
Flag Coverage Δ
python27 94.10% <ø> (ø)
python312 94.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kjohn-msft

Copy link
Copy Markdown
Collaborator Author

Had a different team member push the change.

@kjohn-msft kjohn-msft closed this Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants