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

[monorepo] cancel builds after merge group is destroyed #4109

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

Conversation

yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Dec 19, 2024

When a PR gets kicked out of the queue, Cocoon will cancel any remaining LUCI builds to free up resources.

@yjbanov yjbanov requested a review from jtmcdole December 19, 2024 23:46
Copy link
Contributor

@jtmcdole jtmcdole left a comment

Choose a reason for hiding this comment

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

Write a test for the new method that verifies when "get prod builds" returns 3 (complete, started, scheduled); the response is removing the two.

}) async {
log.info('Attempting to cancel builds (v2) for git SHA $sha');

final Iterable<bbv2.Build> builds = await getProdBuilds(sha: sha);
Copy link
Contributor

Choose a reason for hiding this comment

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

remove LHS types

log.info('Attempting to cancel builds (v2) for git SHA $sha');

final Iterable<bbv2.Build> builds = await getProdBuilds(sha: sha);
log.info('Found ${builds.length} builds.');
Copy link
Contributor

Choose a reason for hiding this comment

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

move down to below the isEmpty test

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