Skip to content

Please allow custom sorting of jobs organized together vertically #131

Closed

Description

@ry4n1m3

We had 4 parallel pipelines with some conceptual groupings. We recently added a fan-in to synchronize some resource versioning, but in doing so we've lost the conceptual grouping we had without the fan in.

See attached images for a much better idea of what I'm trying to describe (previously, all builds were grouped by upstream source job). The pain we're having is quickly assessing problematic upstream artifacts or any patterns with those artifacts.

Before (grouped by prior job):
sbtup

After (grouping lost due to fan-in):
pipeline_ungrouped

Activity

  1. concourse-bot commented on Aug 17, 2015

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #101436714 Improve ordering of jobs that pass through a shared fan-out

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. vito commented on Oct 6, 2015

    @vito
    Contributor

    We probably won't be implementing custom ordering; in this specific case we should just have a smarter algorithm to figure out a better ordering. There are already similar heuristics in place but it looks like it doesn't figure out this particular configuration.

  3. markus0074 commented on Aug 29, 2019

    @markus0074

    OK. What I do in this case sounds not nice but it works in my case. I fill up with whitespace to sort it. (ugly)

    groups:
    - name: staging
      jobs:
      - stage-myproject-dev (1. Stage)
      - stage-myproject-test (2. Stage)
      - stage-myproject-int   (3. Stage)
      - stage-myproject-live   (4. Stage)
    
  4. nickeeromo commented on Apr 26, 2022

    @nickeeromo

    For anyone else who sees this: to be clear, the default ordering is first by character size of the job name (smallest on top), THEN alphabetically.

    so for
    jobs:

    • authorizer
    • stripe-setup
    • stripe-events

    that would be the order.

    but for
    jobs:

    • applesauce
    • candy
    • elephantee

    The order would be candy, applesauce, elephantee.

    You can cascade them like @markus0074 did, basically adding extra characters. This appears to still be the case in 2022.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions