Skip to content

Commit f7177c4

Browse files
authored
lint (#520)
1 parent d44eb7e commit f7177c4

File tree

4 files changed

+132
-12
lines changed

4 files changed

+132
-12
lines changed

.cron.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
- name: new-beta-qa
55
job:
66
type: decision-task
7-
treeherder-symbol: smoke-test-dte
7+
treeherder-symbol: STARb
88
target-tasks-method: new_beta_qa
99
when:
1010
- {hour: 0, minute: 15}
@@ -27,7 +27,17 @@ jobs:
2727
- {hour: 17, minute: 15}
2828
- {hour: 18, minute: 15}
2929
- {hour: 19, minute: 15}
30-
- {hour: 20, minute: 00}
30+
- {hour: 20, minute: 15}
3131
- {hour: 21, minute: 15}
3232
- {hour: 22, minute: 15}
3333
- {hour: 23, minute: 15}
34+
35+
- name: new-devedition-qa
36+
job:
37+
type: decision-task
38+
treeherder-symbol: STARd
39+
target-tasks-method: new_devedition_qa
40+
when:
41+
- {hour: 11, minute: 15}
42+
- {hour: 18, minute: 15}
43+
- {hour: 23, minute: 15}

taskcluster/fx_desktop_qa_automation_taskgraph/target_tasks.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,12 @@ def filter(task, parameters):
99
return task.attributes.get("beta-qa", False)
1010

1111
return [l for l, t in full_task_graph.tasks.items() if filter(t, parameters)]
12+
13+
@register_target_task("new_devedition_qa")
14+
def target_tasks_devedition_qa(full_task_graph, parameters, graph_config):
15+
"""Select the set of tasks required for a DevEdition Smoke + Reporting session."""
16+
17+
def filter(task, parameters):
18+
return task.attributes.get("devedition-qa", False)
19+
20+
return [l for l, t in full_task_graph.tasks.items() if filter(t, parameters)]

taskcluster/kinds/new-beta-qa/kind.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ tasks:
5050
pipenv run pytest --fx-executable $FX_EXECUTABLE tests;
5151
export BETA_VERSION=$(pipenv run python collect_executables.py -n)
5252
if ![[ "${BETA_VERSION}" == *"b6"* ]] && ![[ "${BETA_VERSION}" == *"b9"* ]]; then exit 0;
53-
export FX_CHANNEL="devedition";
54-
mv ./ci_pyproject.toml ./pyproject.toml;
55-
./collect_executables.sh;
56-
pipenv run python -c 'from modules import testrail_integration as tri; tri.tc_reportable()' || exit 0;
57-
$FX_EXECUTABLE --version;
58-
pipenv run pytest --fx-executable $FX_EXECUTABLE -n 4 tests;
59-
export FAILURE=${?};
60-
mv ./ci_pyproject_headed.toml ./pyproject.toml;
61-
export REPORTABLE=1;
62-
pipenv run pytest --fx-executable $FX_EXECUTABLE tests;
6353
exit $((${?} | ${FAILURE}))
6454
notify:
6555
recipients:
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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

Comments
 (0)