mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Adapt servo/servo-taskcluster-experiments’s code for servo/servo
This commit is contained in:
parent
1492bacbca
commit
a6fbab9c5b
2 changed files with 5 additions and 14 deletions
|
@ -5,7 +5,7 @@ policy:
|
||||||
tasks:
|
tasks:
|
||||||
- $if: 'tasks_for == "github-push"'
|
- $if: 'tasks_for == "github-push"'
|
||||||
then:
|
then:
|
||||||
$if: 'event.ref == "refs/heads/master"'
|
$if: 'event.ref in ["refs/heads/auto", "refs/heads/try"]'
|
||||||
then:
|
then:
|
||||||
taskGroupId: {$eval: as_slugid("decision_task")}
|
taskGroupId: {$eval: as_slugid("decision_task")}
|
||||||
taskId: {$eval: as_slugid("decision_task")}
|
taskId: {$eval: as_slugid("decision_task")}
|
||||||
|
@ -14,17 +14,17 @@ tasks:
|
||||||
created: {$fromNow: ''}
|
created: {$fromNow: ''}
|
||||||
deadline: {$fromNow: '1 day'}
|
deadline: {$fromNow: '1 day'}
|
||||||
metadata:
|
metadata:
|
||||||
name: "Taskcluster experiments for Servo: decision task"
|
name: "Servo: decision task"
|
||||||
description: ""
|
description: ""
|
||||||
owner: &task_owner ${event.pusher.name}@users.noreply.github.com
|
owner: &task_owner ${event.pusher.name}@users.noreply.github.com
|
||||||
source: &task_source ${event.compare}
|
source: &task_source ${event.compare}
|
||||||
scopes:
|
scopes:
|
||||||
- "queue:scheduler-id:taskcluster-github"
|
- "queue:scheduler-id:taskcluster-github"
|
||||||
|
|
||||||
# Granted to role "repo:github.com/servo/servo-taskcluster-experiments:branch:master"
|
# Granted to role "repo:github.com/servo/servo:branch:*"
|
||||||
- "queue:create-task:highest:aws-provisioner-v1/servo-*"
|
- "queue:create-task:highest:aws-provisioner-v1/servo-*"
|
||||||
|
- "queue:route:index.project.servo.servo.*"
|
||||||
- "docker-worker:cache:cargo-*"
|
- "docker-worker:cache:cargo-*"
|
||||||
- "queue:route:index.project.servo.servo-taskcluster-experiments.*"
|
|
||||||
|
|
||||||
payload:
|
payload:
|
||||||
maxRunTime: {$eval: '20 * 60'}
|
maxRunTime: {$eval: '20 * 60'}
|
||||||
|
@ -47,4 +47,4 @@ tasks:
|
||||||
cd repo &&
|
cd repo &&
|
||||||
git fetch --depth 1 "$GIT_URL" "$GIT_REF" &&
|
git fetch --depth 1 "$GIT_URL" "$GIT_REF" &&
|
||||||
git reset --hard "$GIT_SHA" &&
|
git reset --hard "$GIT_SHA" &&
|
||||||
python3 decision-task.py
|
python3 etc/ci/taskcluster/decision-task.py
|
||||||
|
|
|
@ -16,15 +16,6 @@ def main():
|
||||||
worker_type="servo-docker-worker",
|
worker_type="servo-docker-worker",
|
||||||
)
|
)
|
||||||
|
|
||||||
# FIXME: remove this before merging in servo/servo
|
|
||||||
os.environ["GIT_URL"] = "https://github.com/SimonSapin/servo"
|
|
||||||
os.environ["GIT_REF"] = "refs/heads/taskcluster-experiments-20180920"
|
|
||||||
os.environ["GIT_SHA"] = "a6dbfdd29f9b3f0ce0c13adc79fad99538a9a44b"
|
|
||||||
decision.docker_image_cache_expiry = "1 week"
|
|
||||||
decision.route_prefix = "project.servo.servo-taskcluster-experiments"
|
|
||||||
# ~
|
|
||||||
|
|
||||||
|
|
||||||
build_artifacts_expiry = "1 week"
|
build_artifacts_expiry = "1 week"
|
||||||
log_artifacts_expiry = "1 year"
|
log_artifacts_expiry = "1 year"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue