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

ci(build): fail if there are more than 4 builds running #98

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

Conversation

slonka
Copy link
Contributor

@slonka slonka commented Jul 1, 2024

We can't have more than 4 envoy builds that are either running or finished in the last 2 hours due to how many hosts we have available.

Did you sign your commit? Instructions yes

Have you read Contributing guidelines? yes


RUNNING=$(gh run list --workflow .github/workflows/build-and-release.yaml --json status,conclusion,createdAt,updatedAt | jq '[.[] | select((.status == "in_progress") or (.updatedAt > (now - 7200 | strftime("%Y-%m-%dT%H:%M:%SZ"))))] | length')
if [ "$RUNNING" -gt "4" ]; then
echo "We can't have more than 4 envoy builds that are either running or finished in the last 2 hours"
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 a problem for every OS or just darwin?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lukidzi - you're probably an expert here

Copy link
Contributor

Choose a reason for hiding this comment

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

It's a limit that we have in AWS to allocate only 4 dedicate machines

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.

3 participants