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

Setup checkout cache for code review production hook #159

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions grants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,7 @@
- grant:
- secrets:get:project/relman/code-review/runtime-production
- hooks:trigger-hook:project-relman/code-review-production
- docker-worker:cache:code-review-production-checkout
to:
- roles:
- project:relman:code-review/runtime/production
Expand Down
1 change: 1 addition & 0 deletions hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ project-relman/code-review-production:
- queue:route:notify.email.*
- queue:scheduler-id:relman
- secrets:get:project/relman/code-review/runtime-production
- docker-worker:cache:code-review-production-checkout
template_file: hooks/project-relman/code-review-production.yml
bindings:
- exchange: exchange/taskcluster-queue/v1/task-completed
Expand Down
6 changes: 5 additions & 1 deletion hooks/project-relman/code-review-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ payload:
public/results:
path: /tmp/results
type: directory
cache: {}
cache:
code-review-production-checkout: '/checkouts'
capabilities: {}
command:
- code-review-bot
- '--taskcluster-secret'
- project/relman/code-review/runtime-production
- '--mercurial-repository'
- '/checkouts'
env:
$merge:
- $if: firedBy == 'triggerHook'
Expand Down Expand Up @@ -54,5 +57,6 @@ scopes:
- 'secrets:get:project/relman/code-review/runtime-production'
- 'index:insert-task:project.relman.production.code-review.*'
- 'notify:email:*'
- 'docker-worker:cache:code-review-production-checkout'
tags: {}
workerType: bot-gcp
Loading