-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
mergify
merge queue configuration file (#4917)
* Add mergify.yml. * Abstract out CI jobs to a "success" job so that a change in the CI jobs don't require modification to mergify configuration on stable branch. * Add new jobs to the `needs` list of `test-suite-success`. * Set `batch_max_wait_time` to 60 s.
- Loading branch information
1 parent
69f1b7a
commit 4cf4819
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
queue_rules: | ||
- name: default | ||
batch_size: 8 | ||
batch_max_wait_time: 60 s | ||
checks_timeout: 10800 s | ||
merge_method: squash | ||
queue_conditions: | ||
- "#approved-reviews-by >= 1" | ||
- "check-success=license/cla" | ||
- "check-success=target-branch-check" | ||
merge_conditions: | ||
- "check-success=test-suite-success" | ||
- "check-success=local-testnet-success" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
# Check that $SUCCESS_JOB depends on all other jobs in the given $YAML | ||
|
||
set -euf -o pipefail | ||
|
||
YAML=$1 | ||
SUCCESS_JOB=$2 | ||
|
||
yq '... comments="" | .jobs | map(. | key) | .[]' < "$YAML" | grep -v "$SUCCESS_JOB" | sort > all_jobs.txt | ||
yq "... comments=\"\" | .jobs.$SUCCESS_JOB.needs[]" < "$YAML" | grep -v "$SUCCESS_JOB" | sort > dep_jobs.txt | ||
diff all_jobs.txt dep_jobs.txt || (echo "COMPLETENESS CHECK FAILED" && exit 1) | ||
rm all_jobs.txt dep_jobs.txt | ||
echo "COMPLETENESS CHECK PASSED" |