Skip to content

Commit

Permalink
Add tag checks aliases (#1596)
Browse files Browse the repository at this point in the history
* Fine-tune pull request aliases

* Add tag aliases for evergreen

* Define aliases for GitHub Checks
  • Loading branch information
alcaeus authored Jun 26, 2024
1 parent 7e11f6e commit c7df0f7
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 12 deletions.
25 changes: 19 additions & 6 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,30 @@ post:
- func: "stop load balancer"
- func: "cleanup"

# Define aliases for patch builds and PR builds. These only apply if no aliases are defined in project and repo settings
# These aliases define the default variant/tasks to test for pull requests and merge queue
github_pr_aliases: &github_pr_aliases
# Run all tasks in PR variants for PHP 8.3
- variant_tags: ["php8.3", "pr"]
task: ".*"
# Run PR tasks for PR variants
- variant_tags: ["pr"]
# Always test all builds for consistency
- variant_tags: ["pr build"]
task_tags: ["pr"]
# Run all tasks in PR variants for PHP 8.3 (excluding MongoDB latest)
- variant_tags: ["pr php8.3"]
task_tags: ["!latest"]
# Run PR tasks for all PR variants (only MongoDB 7.0)
- variant_tags: ["pr"]
task_tags: ["pr 7.0"]

commit_queue_aliases: *github_pr_aliases

git_tag_aliases:
- git_tag: "^[0-9]+.[0-9]+.[0-9]+"
remote_path: ""
variant_tags: ["tag"]
task_tags: ["tag"]

github_checks_aliases:
- variant: ".*"
task: ".*"

patch_aliases:
- alias: pull-request
variant_tags: ["pr"]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .evergreen/config/templates/test/require-api-version.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tasks:
- name: "test-requireApiVersion-%mongodbVersion%"
tags: [ "standalone", "local", "%mongodbVersion%", "versioned_api", "pr", "tag" ]
tags: [ "standalone", "local", "%mongodbVersion%", "versioned_api", "tag" ]
commands:
- func: "bootstrap mongo-orchestration"
vars:
Expand Down

0 comments on commit c7df0f7

Please sign in to comment.