code change · fixPlatform, DevOps & Performanceofficial - Microsoftreviewed - checked by Opus

#2440 Sort artifacts by creation time when determining latest artifacts for release

AL-Go now sorts artifacts by creation time when determining the latest artifacts for release in multi-project repositories, fixing cases where Create Release with app version latest could select artifacts from different CI/CD runs.

Pull request · merged into main on 2026-11-06 by mazhelez · 3 files (+60 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • After collecting non-expired artifacts, the script sorts them by created_at descending instead of trusting the endpoint order, which is by artifact id
  • latest now resolves each project to its most recently created artifact, and explicit-version lookups also prefer the newest match
  • The commit-mismatch error now names the artifact, the project and both commits
  • Regression tests replay out-of-order artifact ids and check the new error message
  • Behaviour changes for users or extensions.

AL objects touched

  • Actions/DetermineArtifactsForRelease/DetermineArtifactsForRelease.ps1: modified, not in the BC? snapshot

Context

  • Systems: platform

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).