@@ -5,7 +5,6 @@ transforms:
5
5
task-defaults :
6
6
label : " Smoke Tests"
7
7
description : " Runs Smoke Tests and Notifies Slack"
8
- worker-type : t-linux-wayland
9
8
worker :
10
9
taskcluster-proxy : true
11
10
max-run-time : 1800
@@ -18,9 +17,70 @@ task-defaults:
18
17
scopes :
19
18
- queue:route:notify.slack-channel.C07AHPJ525V # notify mobile-alerts-sandbox on failure
20
19
- notify:slack-channel:C07AHPJ525V
20
+ notify :
21
+ recipients :
22
+ - type : slack-channel
23
+ channel-id : C07AHPJ525V
24
+ status-type : on-defined
25
+ content :
26
+ slack :
27
+ blocks : [
28
+ {
29
+ " type " : " header" ,
30
+ " text " : {
31
+ " type " : " plain_text" ,
32
+ " text " : " firefox-desktop :firefox: ${task.metadata.name} Linux\n "
33
+ }
34
+ },
35
+ {
36
+ " type " : " divider"
37
+ },
38
+ {
39
+ " type " : " section" ,
40
+ " text " : {
41
+ " type " : " mrkdwn" ,
42
+ " text " : " *Task*: <https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId}|Taskcluster>"
43
+ }
44
+ },
45
+ {
46
+ " type " : " section" ,
47
+ " text " : {
48
+ " type " : " mrkdwn" ,
49
+ " text " : " *Owner*: ${task.metadata.owner}"
50
+ }
51
+ },
52
+ {
53
+ " type " : " section" ,
54
+ " text " : {
55
+ " type " : " mrkdwn" ,
56
+ " text " : " *Commit*: <${task.metadata.source}>"
57
+ }
58
+ },
59
+ {
60
+ " type " : " section" ,
61
+ " text " : {
62
+ " type " : " mrkdwn" ,
63
+ " text " : " *Test Summary*: <https://firefoxci.taskcluster-artifacts.net/${status.taskId}/0/public/results/report.html?sort=result> :debug:"
64
+ }
65
+ },
66
+ {
67
+ " type " : " divider"
68
+ },
69
+ {
70
+ " type " : " context" ,
71
+ " elements " : [
72
+ {
73
+ " type " : " mrkdwn" ,
74
+ " text " : " :testops-notify: created by Desktop QA Test Engineering"
75
+ }
76
+ ]
77
+ }
78
+ ]
79
+ text : " {task[name]} with id $taskId has finished!"
21
80
22
81
tasks :
23
82
linux :
83
+ worker-type : t-linux-wayland
24
84
run :
25
85
using : run-task
26
86
cwd : " {checkout}"
@@ -29,75 +89,13 @@ tasks:
29
89
mkdir -p artifacts;
30
90
pip3 install 'pipenv==2023.11.15';
31
91
pip3 install 'ruff>=0.4.8,<0.5';
32
- mv ./ci_pyproject.toml ./pyproject.toml;
33
92
pipenv install;
34
93
./collect_executables.sh;
35
94
./firefox/firefox --version;
36
95
. ./keyring-unlock.sh
37
96
pipenv run python3 choose_ci_set.py
38
- pipenv run pytest --fx-executable ./firefox/firefox -n 4 $(cat selected_tests)
97
+ pipenv run python3 run_tests.py -s --pyproject ci_pyproject.toml
39
98
export FAILURE=${?}
40
- mv ./ci_pyproject_headed.toml ./pyproject.toml;
41
99
pipenv run python3 choose_ci_set.py
42
- pipenv run pytest --fx-executable ./firefox/firefox $(cat selected_tests)
100
+ pipenv run python3 run_tests.py -s --headed --pyproject ci_pyproject_headed.toml
43
101
exit $((${?} | ${FAILURE}))
44
- notify :
45
- recipients :
46
- - type : slack-channel
47
- channel-id : C07AHPJ525V
48
- status-type : on-defined
49
- content :
50
- slack :
51
- blocks : [
52
- {
53
- " type " : " header" ,
54
- " text " : {
55
- " type " : " plain_text" ,
56
- " text " : " firefox-desktop :firefox: ${task.metadata.name} Linux\n "
57
- }
58
- },
59
- {
60
- " type " : " divider"
61
- },
62
- {
63
- " type " : " section" ,
64
- " text " : {
65
- " type " : " mrkdwn" ,
66
- " text " : " *Task*: <https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId}|Taskcluster>"
67
- }
68
- },
69
- {
70
- " type " : " section" ,
71
- " text " : {
72
- " type " : " mrkdwn" ,
73
- " text " : " *Owner*: ${task.metadata.owner}"
74
- }
75
- },
76
- {
77
- " type " : " section" ,
78
- " text " : {
79
- " type " : " mrkdwn" ,
80
- " text " : " *Commit*: <${task.metadata.source}>"
81
- }
82
- },
83
- {
84
- " type " : " section" ,
85
- " text " : {
86
- " type " : " mrkdwn" ,
87
- " text " : " *Test Summary*: <https://firefoxci.taskcluster-artifacts.net/${status.taskId}/0/public/results/report.html?sort=result> :debug:"
88
- }
89
- },
90
- {
91
- " type " : " divider"
92
- },
93
- {
94
- " type " : " context" ,
95
- " elements " : [
96
- {
97
- " type " : " mrkdwn" ,
98
- " text " : " :testops-notify: created by Desktop QA Test Engineering"
99
- }
100
- ]
101
- }
102
- ]
103
- text : " {task[name]} with id $taskId has finished!"
0 commit comments