Skip to content

Commit

Permalink
Setup checkout cache for code review production hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien Abadie committed Nov 4, 2024
1 parent 7177011 commit 8fd514e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
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:*'
- 'generic-worker:cache:code-review-production-checkout'
tags: {}
workerType: bot-gcp

0 comments on commit 8fd514e

Please sign in to comment.