• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1version: 1
2
3# Rules to match for a machine to qualify
4target:
5{% if tags %}
6{% set b2ctags = tags.split(',') %}
7  tags:
8{% for tag in b2ctags %}
9    - '{{ tag | trim }}'
10{% endfor %}
11{% endif %}
12
13timeouts:
14  first_console_activity:  # This limits the time it can take to receive the first console log
15    minutes: {{ timeout_first_minutes }}
16    retries: {{ timeout_first_retries }}
17  console_activity:        # Reset every time we receive a message from the logs
18    minutes: {{ timeout_minutes }}
19    retries: {{ timeout_retries }}
20  boot_cycle:
21    minutes: {{ timeout_boot_minutes }}
22    retries: {{ timeout_boot_retries }}
23  overall:                 # Maximum time the job can take, not overrideable by the "continue" deployment
24    minutes: {{ timeout_overall_minutes }}
25    retries: 0
26    # no retries possible here
27
28console_patterns:
29    session_end:
30        regex: >-
31          {{ session_end_regex }}
32    session_reboot:
33        regex: >-
34          {{ session_reboot_regex }}
35    job_success:
36        regex: >-
37          {{ job_success_regex }}
38    job_warn:
39        regex: >-
40          {{ job_warn_regex }}
41
42# Environment to deploy
43deployment:
44  # Initial boot
45  start:
46    kernel:
47      url: '{{ kernel_url }}'
48      cmdline: >
49        SALAD.machine_id={{ '{{' }} machine_id }}
50        console={{ '{{' }} local_tty_device }},115200 earlyprintk=vga,keep
51        loglevel={{ log_level }} no_hash_pointers
52        b2c.service="--privileged --tls-verify=false --pid=host docker://{{ '{{' }} fdo_proxy_registry }}/mupuf/valve-infra/telegraf-container:latest" b2c.hostname=dut-{{ '{{' }} machine.full_name }}
53        b2c.container="-ti --tls-verify=false docker://{{ '{{' }} fdo_proxy_registry }}/mupuf/valve-infra/machine_registration:latest check"
54        b2c.ntp_peer=10.42.0.1 b2c.pipefail b2c.cache_device=auto b2c.poweroff_delay={{ poweroff_delay }}
55        b2c.minio="gateway,{{ '{{' }} minio_url }},{{ '{{' }} job_bucket_access_key }},{{ '{{' }} job_bucket_secret_key }}"
56        b2c.volume="{{ '{{' }} job_bucket }}-results,mirror=gateway/{{ '{{' }} job_bucket }},pull_on=pipeline_start,push_on=changes,overwrite{% for excl in job_volume_exclusions %},exclude={{ excl }}{% endfor %},expiration=pipeline_end,preserve"
57{% for volume in volumes %}
58        b2c.volume={{ volume }}
59{% endfor %}
60        b2c.container="-v {{ '{{' }} job_bucket }}-results:{{ working_dir }} -w {{ working_dir }} {% for mount_volume in mount_volumes %} -v {{ mount_volume }}{% endfor %} --tls-verify=false docker://{{ local_container }} {{ container_cmd }}"
61        {% if cmdline_extras is defined %}
62        {{ cmdline_extras }}
63        {% endif %}
64
65    initramfs:
66      url: '{{ initramfs_url }}'
67
68