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

Pipeline times out when looking for workflow on branches with plenty of pipelines #42

Closed
pedroyan opened this issue Sep 16, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@pedroyan
Copy link

Orb version:

1.6.0

What happened:

Pipeline times out when Nx tries to resolve the BASE_SHA by Workflow Name from a long-running branches with lots of pipelines executions

image

Expected behavior:

Pipeline is able to resolve BASE_SHA on long-running branches

Additional Information:

Steps to reproduce

  1. Create a repository
  2. Create a Circle CI config.yml file
  3. Trigger a lot of pipeline executions for a single branch
  4. Configure set-shas to look for a workflow-name that does not exist so it runs through all pipelines
    • The problem also applies if the successful workflow was completed in a pipeline that's behind many executions
@pedroyan pedroyan added the bug Something isn't working label Sep 16, 2022
@pedroyan
Copy link
Author

I forked the repository and when I get some time, I'm thinking about fixing the problem by executing many isWorkflowSuccessful concurrently and then picking the latests successful one from the pipelines queried on that batch.

image

Does that approach make sense?

@pedroyan pedroyan changed the title Pipeline times out when looking for workflow on long Pipeline times out when looking for workflow on branches with plenty of pipelines Sep 16, 2022
@eladhaim
Copy link
Contributor

related to #43, i've created a pr to fix this issue. waiting for maintainers approval.

@meeroslav
Copy link
Collaborator

This should be fixed with #44.

If you still encounter it, please let me know to reopen this issue.

@meeroslav meeroslav self-assigned this Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants