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

feat: expose concurrency at GitHub workflow level #903

Closed
wants to merge 0 commits into from

Conversation

zezke
Copy link
Contributor

@zezke zezke commented Mar 4, 2024

This PR adds a concurrency setting on workflow level, preventing multiple workflows run in parallel which our pipeline does not like.

Copy link
Contributor

@kaizencc kaizencc 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 PR @zezke! I have a few comments, also I would love for you to add this feature to the readme. also, ideally you don't open a PR directly from your main branch. I would rather you close this PR, open a new branch, address the feedback, and then create a PR from the branch itself. This will by default give us the right permissions to push to your branch (we can't push to your main).

Comment on lines 378 to 381
console.log(github.workflowPath);
console.log(github.workflowPath);
console.log(github.workflowPath);
console.log(github.workflowPath);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this part of the concurrency test? how? please document otherwise next time i look at this i will laugh and then delete...

/**
* Conditionally cancel currently running jobs or workflows in the same concurrency group
*/
readonly cancelInProgress?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

add a default here. probably false?

@@ -956,3 +956,17 @@ export interface PublicOptions { }
*/
export interface StatusOptions { }
//#endregion

/**
* Concurrency options
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we link to the relevant github documentation please

@zezke zezke closed this Mar 5, 2024
mergify bot pushed a commit that referenced this pull request Mar 22, 2024
This PR adds a concurrency setting on workflow level, preventing multiple workflows run in parallel which our pipeline does not like. It also addressed the comments by @kaizencc in [the incorrect older PR](#903).

Fixes #915
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.

2 participants