-
Notifications
You must be signed in to change notification settings - Fork 433
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
XplatGenerateReleaseNotes V3 selects wrong previous build #934
Comments
Seems a reasonable approach to guarantee the order. I will have a that the PR my test harness That said the Thanks for debugging this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When running the XplatGenerateReleaseNotes V3 task it selects wrong previous builds for comparison.
Running in Azure DevOps (Service) multi-stage YAML pipelines, I tried to use the task to generate release notes by looking for previous builds that successfully deployed to a specific stage.
However it finds very old pipeline runs that happen to match the stage requirement.
Initial debbuging shows that
buildApi.getBuilds(..)
ingetLastSuccessfulBuildByStage
(ReleaseNotesFunctions.ts
) returns the builds in an arbitrary order. The second entry is a build from July 2020 (so nearly half a year ago) that happens to match the requirement.Experementing with the query order parameter of
getBuilds()
- e.g. passingBuildQueryOrder.QueueTimeDescending
- seem to be futile as well - the returned order changes but is still mixed (part lexically on the build number (which we override from within the build to a SemVer2 version) and part ordered by time).The most successful approach I ended up finding was to do a client side sort:
The text was updated successfully, but these errors were encountered: