Skip to content
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

DEVPROD-15048: Sort waterfall tasks alphabetically by display name #8777

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

minnakt
Copy link
Contributor

@minnakt minnakt commented Feb 28, 2025

DEVPROD-15048

Description

Right now, we are sorting by task IDs, which can lead to inconsistent results.

Consider the following case:

  • build-and-push-darwin-unsigned
    • evg_build_and_push_display_build_and_push_darwin_unsigned_e2289911f2d07f303e220fd32627eb41c7517a7e_25_02_27_21_09_07
  • build-and-push
    • evg_build_and_push_display_build_and_push_e2289911f2d07f303e220fd32627eb41c7517a7e_25_02_27_21_09_07

Even though build-and-push should come alphabetically before build-and-push-darwin-unsigned, the IDs dictate otherwise due to the randomly determined version hash. We should sort by display name instead.

Testing

On staging.

Before:
incorrect

After:
correct

Also added unit tests.

@minnakt minnakt changed the title DEVPROD-15048: Sort tasks alphabetically by display name DEVPROD-15048: Sort waterfall tasks alphabetically by display name Feb 28, 2025
@minnakt minnakt marked this pull request as ready for review February 28, 2025 21:47
@minnakt minnakt requested review from a team February 28, 2025 21:47
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.

1 participant