|
| 1 | +transforms: |
| 2 | + - fx_desktop_qa_automation_taskgraph.transforms.new_beta_qa:transforms |
| 3 | + - taskgraph.transforms.notify:transforms |
| 4 | + |
| 5 | +task-defaults: |
| 6 | + label: "Test New DevEdition Version" |
| 7 | + description: "Checks for new DevEdition builds (b5), tests them, reports to TestRail and Slack" |
| 8 | + worker-type: t-linux-wayland |
| 9 | + worker: |
| 10 | + taskcluster-proxy: true |
| 11 | + max-run-time: 1800 |
| 12 | + artifacts: |
| 13 | + - name: public/results |
| 14 | + path: checkouts/vcs/artifacts |
| 15 | + type: directory |
| 16 | + env: |
| 17 | + TESTRAIL_REPORT: "true" |
| 18 | + routes: |
| 19 | + - notify.slack-channel.C07AHPJ525V.on-resolved |
| 20 | + scopes: |
| 21 | + - secrets:get:project/mozilla/fx-desktop-qa-automation/level-3/* |
| 22 | + - queue:route:notify.slack-channel.C07AHPJ525V # notify mobile-alerts-sandbox on failure |
| 23 | + - notify:slack-channel:C07AHPJ525V |
| 24 | + |
| 25 | +tasks: |
| 26 | + linux: |
| 27 | + attributes: |
| 28 | + devedition-qa: true |
| 29 | + run-on-tasks-for: [] |
| 30 | + run: |
| 31 | + using: run-task |
| 32 | + cwd: "{checkout}" |
| 33 | + command: |- |
| 34 | + export PATH=$HOME/.local/bin:$PWD:$PATH |
| 35 | + mkdir -p artifacts; |
| 36 | + pip3 install 'pipenv==2023.11.15'; |
| 37 | + pip3 install 'ruff>=0.4.8,<0.5'; |
| 38 | + mv ./ci_pyproject.toml ./pyproject.toml; |
| 39 | + pipenv install; |
| 40 | + export FX_CHANNEL="devedition"; |
| 41 | + ./collect_executables.sh; |
| 42 | + export FX_EXECUTABLE=./firefox/firefox; |
| 43 | + pipenv run python -c 'from modules import testrail_integration as tri; tri.tc_reportable()' || exit 0; |
| 44 | + $FX_EXECUTABLE --version; |
| 45 | + . ./keyring-unlock.sh |
| 46 | + pipenv run pytest --fx-executable $FX_EXECUTABLE -n 4 tests; |
| 47 | + export FAILURE=${?}; |
| 48 | + mv ./ci_pyproject_headed.toml ./pyproject.toml; |
| 49 | + export REPORTABLE=1; |
| 50 | + pipenv run pytest --fx-executable $FX_EXECUTABLE tests; |
| 51 | + exit $((${?} | ${FAILURE})) |
| 52 | + notify: |
| 53 | + recipients: |
| 54 | + - type: slack-channel |
| 55 | + channel-id: C07AHPJ525V |
| 56 | + status-type: on-defined |
| 57 | + content: |
| 58 | + slack: |
| 59 | + blocks: [ |
| 60 | + { |
| 61 | + "type": "header", |
| 62 | + "text": { |
| 63 | + "type": "plain_text", |
| 64 | + "text": "firefox-desktop :firefox: ${task.metadata.name} Linux\n " |
| 65 | + } |
| 66 | + }, |
| 67 | + { |
| 68 | + "type": "divider" |
| 69 | + }, |
| 70 | + { |
| 71 | + "type": "section", |
| 72 | + "text": { |
| 73 | + "type": "mrkdwn", |
| 74 | + "text": "*Task*: <https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId}|Taskcluster>" |
| 75 | + } |
| 76 | + }, |
| 77 | + { |
| 78 | + "type": "section", |
| 79 | + "text": { |
| 80 | + "type": "mrkdwn", |
| 81 | + "text": "*Owner*: ${task.metadata.owner}" |
| 82 | + } |
| 83 | + }, |
| 84 | + { |
| 85 | + "type": "section", |
| 86 | + "text": { |
| 87 | + "type": "mrkdwn", |
| 88 | + "text": "*Commit*: <${task.metadata.source}>" |
| 89 | + } |
| 90 | + }, |
| 91 | + { |
| 92 | + "type": "section", |
| 93 | + "text": { |
| 94 | + "type": "mrkdwn", |
| 95 | + "text": "*Test Summary*: <https://firefoxci.taskcluster-artifacts.net/${status.taskId}/0/public/results/report.html?sort=result> :debug:" |
| 96 | + } |
| 97 | + }, |
| 98 | + { |
| 99 | + "type": "divider" |
| 100 | + }, |
| 101 | + { |
| 102 | + "type": "context", |
| 103 | + "elements": [ |
| 104 | + { |
| 105 | + "type": "mrkdwn", |
| 106 | + "text": ":testops-notify: created by Desktop QA Test Engineering" |
| 107 | + } |
| 108 | + ] |
| 109 | + } |
| 110 | + ] |
| 111 | + text: "Cron {task[name]} with id $taskId has finished!" |
0 commit comments