Skip to content

Commit edaa893

Browse files
authored
Keep json report in artifacts for easier debugging (#550)
* log wingha status and components * log wingha status and components * add json report to artifacts * separate report for headed tests * always use artifacts * reset logging
1 parent d48befb commit edaa893

File tree

5 files changed

+29
-32
lines changed

5 files changed

+29
-32
lines changed

.cron.yml

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
11
---
2-
32
jobs:
43
- name: new-beta-qa
54
job:
65
type: decision-task
76
treeherder-symbol: STARb
87
target-tasks-method: new_beta_qa
98
when:
10-
- {hour: 0, minute: 15}
11-
- {hour: 1, minute: 15}
12-
- {hour: 2, minute: 15}
13-
- {hour: 3, minute: 15}
14-
- {hour: 4, minute: 15}
15-
- {hour: 5, minute: 15}
16-
- {hour: 6, minute: 15}
17-
- {hour: 7, minute: 15}
18-
- {hour: 8, minute: 15}
19-
- {hour: 9, minute: 15}
20-
- {hour: 10, minute: 15}
21-
- {hour: 11, minute: 15}
22-
- {hour: 12, minute: 15}
23-
- {hour: 13, minute: 45}
24-
- {hour: 14, minute: 15}
25-
- {hour: 15, minute: 15}
26-
- {hour: 16, minute: 15}
27-
- {hour: 17, minute: 15}
28-
- {hour: 18, minute: 15}
29-
- {hour: 19, minute: 15}
30-
- {hour: 20, minute: 15}
31-
- {hour: 21, minute: 15}
32-
- {hour: 22, minute: 15}
33-
- {hour: 23, minute: 15}
9+
- { hour: 0, minute: 15 }
10+
- { hour: 1, minute: 15 }
11+
- { hour: 2, minute: 15 }
12+
- { hour: 3, minute: 15 }
13+
- { hour: 4, minute: 15 }
14+
- { hour: 5, minute: 15 }
15+
- { hour: 6, minute: 15 }
16+
- { hour: 7, minute: 15 }
17+
- { hour: 8, minute: 15 }
18+
- { hour: 9, minute: 15 }
19+
- { hour: 10, minute: 15 }
20+
- { hour: 11, minute: 15 }
21+
- { hour: 12, minute: 15 }
22+
- { hour: 13, minute: 15 }
23+
- { hour: 14, minute: 15 }
24+
- { hour: 15, minute: 15 }
25+
- { hour: 16, minute: 15 }
26+
- { hour: 17, minute: 15 }
27+
- { hour: 18, minute: 15 }
28+
- { hour: 19, minute: 15 }
29+
- { hour: 20, minute: 15 }
30+
- { hour: 21, minute: 15 }
31+
- { hour: 22, minute: 15 }
32+
- { hour: 23, minute: 15 }
3433

3534
- name: new-devedition-qa
3635
job:
3736
type: decision-task
3837
treeherder-symbol: STARd
3938
target-tasks-method: new_devedition_qa
4039
when:
41-
- {hour: 11, minute: 15}
42-
- {hour: 19, minute: 30}
43-
- {hour: 23, minute: 15}
40+
- { hour: 11, minute: 15 }
41+
- { hour: 23, minute: 15 }

.github/workflows/smoke.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ jobs:
187187
needs:
188188
- Smoke-Windows
189189
- Smoke-MacOS
190-
if: ${{ always() && github.event_name == 'pull_request' }}
191190
steps:
192191
- name: Checkout repository
193192
uses: actions/checkout@v4

ci_pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ markers = [
1616
testpaths = [
1717
"tests"
1818
]
19-
addopts = "-vs --ci --run-headless --json-report --reruns 3 --reruns-delay 3 -m 'not incident and not unstable and not headed' --html=artifacts/report.html"
19+
addopts = "-vs --ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not incident and not unstable and not headed' --html=artifacts/report.html"
2020

2121
[tool.ruff]
2222
target-version = "py310"

ci_pyproject_headed.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ markers = [
1616
testpaths = [
1717
"tests"
1818
]
19-
addopts = "-vs --ci --json-report --reruns 3 --reruns-delay 2 -m 'not incident and not unstable and headed' --html=artifacts/report_headed.html"
19+
addopts = "-vs --ci --json-report --json-report-file artifacts/report_headed.json --reruns 3 --reruns-delay 2 -m 'not incident and not unstable and headed' --html=artifacts/report_headed.html"
2020

2121
[tool.ruff]
2222
target-version = "py310"

modules/testrail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def update_test_case(self, case_id, **kwargs):
173173
"""Given a test case id, update according to keyword args"""
174174
if not kwargs:
175175
return None
176-
return self.client.send_post(f"update_case/{case_id}", **kwargs)
176+
return self.client.send_post(f"update_case/{case_id}", kwargs)
177177

178178
def create_test_run_on_plan_entry(
179179
self, plan_id, entry_id, config_ids, description=None, case_ids=None

0 commit comments

Comments
 (0)