Skip to content

Sort list of projects before delivering to appsource#2041

Merged
aholstrup1 merged 10 commits into
microsoft:mainfrom
aholstrup1:aholstrup/deliver_order
Dec 11, 2025
Merged

Sort list of projects before delivering to appsource#2041
aholstrup1 merged 10 commits into
microsoft:mainfrom
aholstrup1:aholstrup/deliver_order

Conversation

@aholstrup1
Copy link
Copy Markdown
Collaborator

@aholstrup1 aholstrup1 commented Nov 26, 2025

❔What, Why & How

Currently the Deliver function iterates over the AL-Go projects in the order they are returned by GetProjectsFromRepository. However, the output of this function is not sorted by dependencies. E.g. in BCApps the order would be:

  • build\projects\Apps (W1)
  • build\projects\Business Foundation Tests
  • build\projects\Performance Toolkit Tests
  • build\projects\System Application
  • build\projects\System Application Modules
  • build\projects\System Application Tests
  • build\projects\Test Stability Tools

This can be an issue when Publishing to AppSource if there are dependencies between the apps you are deploying.

Proposed solution: Deliver in the same order as the build. That would change the order to:

  • build\projects\System Application
  • build\projects\Test Stability Tools
  • build\projects\Apps (W1)
  • build\projects\Business Foundation Tests
  • build\projects\Performance Toolkit Tests
  • build\projects\System Application Modules
  • build\projects\System Application Tests

Related to issue: #2004

✅ Checklist

  • Add tests (E2E, unit tests)
  • Update RELEASENOTES.md
  • Update documentation (e.g. for new settings or scenarios)
  • Add telemetry

@aholstrup1 aholstrup1 requested a review from a team as a code owner November 26, 2025 10:48
Copilot AI review requested due to automatic review settings November 26, 2025 10:48
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

This PR addresses issue #2004 by ensuring projects are delivered in dependency order when publishing to AppSource. Previously, the Deliver action processed projects in the order returned by GetProjectsFromRepository, which doesn't account for dependencies between projects. This could cause failures when deploying dependent apps.

Key changes:

  • Projects are now sorted using AnalyzeProjectDependencies before delivery, matching the build order
  • The sorted project list respects dependency relationships, ensuring base projects are delivered before dependent projects

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

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Comment thread Actions/Deliver/Deliver.ps1 Outdated
Comment thread Actions/Deliver/Deliver.ps1 Outdated
mazhelez
mazhelez previously approved these changes Nov 28, 2025
spetersenms
spetersenms previously approved these changes Dec 2, 2025
Copy link
Copy Markdown
Contributor

@spetersenms spetersenms left a comment

Choose a reason for hiding this comment

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

Copilots comments looks relevant, otherwise looks good.

@aholstrup1 aholstrup1 dismissed stale reviews from spetersenms and mazhelez via fb04b62 December 2, 2025 12:50
@mazhelez
Copy link
Copy Markdown
Collaborator

mazhelez commented Dec 3, 2025

⚠️ Release Notes Update Reminder

Thank you for updating the release notes!

Please ensure that your changes are placed above the new version section (currently ## v8.1) in the RELEASENOTES.md file.

This helps maintain a clear changelog structure where new changes are grouped under the latest unreleased version.

spetersenms
spetersenms previously approved these changes Dec 5, 2025
mazhelez
mazhelez previously approved these changes Dec 8, 2025
Comment thread Tests/Deliver.Module.Test.ps1 Outdated
Removed verification of project order in test.
@aholstrup1 aholstrup1 dismissed stale reviews from mazhelez and spetersenms via 7b5566e December 8, 2025 08:04
@aholstrup1 aholstrup1 enabled auto-merge (squash) December 8, 2025 09:17
@aholstrup1 aholstrup1 merged commit 37f121c into microsoft:main Dec 11, 2025
6 checks passed
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.

4 participants