Skip to content

Conversation

IvanChalukov
Copy link
Contributor

@IvanChalukov IvanChalukov commented Mar 7, 2025

Changes proposed by this PR

The order-pipelines command with the --team option does not seem to work as expected. If you attempt to order pipelines from a team different from the one you are logged into, the operation will fail.

closes #9099
related to item in #5215

  • implement fix
  • add tests

Notes to reviewer

Sample scenario: If you are logged into the main team (which has two pipelines: sample1 and sample2) and attempt to order pipelines from other-team (which has test1 and test2), the command will fail with the following error:

> fly -t lc order-pipelines  --alphabetical --team other-team
failed to order pipelines: pipeline 'sample' not found

This suggests that the --team option is not correctly switching context to the specified team, causing the command to reference pipelines from the currently logged-in team instead.

Release Note

  • Fix order-pipelines command with --team Option

Signed-off-by: IvanChalukov <ichalukov@gmail.com>
@IvanChalukov IvanChalukov requested a review from a team as a code owner March 7, 2025 23:46
@IvanChalukov IvanChalukov requested a review from taylorsilva March 7, 2025 23:50
Copy link
Contributor

@Kump3r Kump3r left a comment

Choose a reason for hiding this comment

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

Not sure how to trigger the checks, but in any case I tested both scenarios with the old fly and your changes. The issue seems to be correctly handled by your change, that the old order-pipelines --alphabetical fetches the pipelines for the team it is currently in. I also confirmed that the code won't some how regress and break the functionality with order-pipelines --pipeline <some-pipeline-name> --pipeline <other-pipeline-name>. Thanks for the PR!
Screenshots from testing
Screenshot 2025-03-08 at 13 12 24
Screenshot 2025-03-08 at 13 24 04

@IvanChalukov
Copy link
Contributor Author

Thanks for the validation @Kump3r. I am not sure how to trigger checks too.

Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

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

Thanks for the fix and the additional tests 🙏

@taylorsilva
Copy link
Member

The checks trigger automatically. There's a reconfigure pipeline here (which I just made public): https://ci.concourse-ci.org/teams/main/pipelines/reconfigure
That creates all the PR pipelines.

Each job may take a while to report in but they will eventually. I made a change to the PRs pipeline: https://github.com/concourse/ci/blob/master/pipelines/pr.yml
so all the testing jobs don't run in parallel. I did this because right now there is only one PR worker 😞 See the one ci-pr-worker-* below:
image

I've found if I have two or more PRs in-flight at the same time that the chance of tests flaking due to CPU stress greatly increases. I would add more PR workers but that's a Broadcom decision at this time.

@taylorsilva taylorsilva merged commit fc16cbd into concourse:master Mar 9, 2025
12 checks passed
@IvanChalukov
Copy link
Contributor Author

Thanks for the detailed explanation! I was wondering if I had missed something, but now I understand how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fly --team flag is nonfunctional for order-pipelines command
3 participants