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

Handle check_run completions with ci staging #4042

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

Conversation

jtmcdole
Copy link
Contributor

Right now we have "three" stages:

  1. non-monorepo: none (schedule everything)
  2. mono-repo: engine
  3. mono-repo: tests.

To handle monorepo, we need to react to updates from check_run events.
The engine check is hard-coded because to put it somewhere else would be
to either create a new firestore doc or encode it in the tree (e.g. .ci.yaml) - but
we're not interested in building a build-graph right now.

To reduce the QPH quota; we could cache the check-run id to PR lookup in firestore.

Right now we have "three" stages:
  1. non-monorepo: none (schedule everything)
  2. mono-repo: engine, tests.

To handle 2-engine, we need to react to updates from check_run events.
This PR only cares about flutter/flaux right now, but it will care about
any monorepo in the future. The engine check is hard-coded because to
put it somewhere else would be to either create a new firestore doc or
encode it in the tree (e.g. .ci.yaml) - but we're not interested in
building a build-graph right now.
@@ -413,6 +434,22 @@ class Scheduler {
}

// Update validate ci.yaml check
await closeCiYamlCheckRun(pullRequest, exception, slug, ciValidationCheckRun);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think our create/close/lock/unlock could be shared functions.

@jtmcdole
Copy link
Contributor Author

save it for monday @yjbanov

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