Skip to content

Commit f5fcbb6

Browse files
authored
Ben/fix ci not reportable (#959)
* more logging * flip reportable * remove extra line * disable reader view test linux/ci
1 parent 2a08114 commit f5fcbb6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

manifests/key.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,10 +784,12 @@ profile:
784784
- smoke
785785
reader_view:
786786
test_improved_type_control_panel:
787-
result: pass
787+
result:
788+
linux: unstable
789+
mac: pass
790+
win: pass
788791
splits:
789792
- smoke
790-
- ci
791793
test_reader_view_close_sidebar:
792794
result: pass
793795
splits:

modules/testrail_integration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def reportable(platform_to_test=None):
248248

249249
plan_entries = this_plan.get("entries")
250250
if os.environ.get("FX_L10N"):
251-
logging.warning("Getting reportability for L10n...")
251+
logging.warning(f"Getting reportability for L10n in {platform}...")
252252
beta_version = int(minor_num.split("b")[-1])
253253
distributed_mappings = select_l10n_mappings(beta_version)
254254
expected_mappings = sum(map(lambda x: len(x), distributed_mappings.values()))
@@ -274,7 +274,7 @@ def reportable(platform_to_test=None):
274274
# Only report when there is a new beta without a reported plan or if the selected split is not completely reported.
275275
return covered_mappings < expected_mappings
276276
else:
277-
logging.warning("Getting reportability for STARfox...")
277+
logging.warning(f"Getting reportability for STARfox in {platform}...")
278278
covered_suites = []
279279
for entry in plan_entries:
280280
for run_ in entry.get("runs"):
@@ -298,7 +298,7 @@ def reportable(platform_to_test=None):
298298
os.environ["STARFOX_SPLIT"], suite_numbers=True
299299
)
300300

301-
uncovered_suites = set(expected_suites) - set(covered_suites)
301+
uncovered_suites = list(set(expected_suites) - set(covered_suites))
302302
if len(uncovered_suites):
303303
suite_names = []
304304
for suite in tr_session.get_suites(TESTRAIL_FX_DESK_PRJ):
@@ -308,7 +308,7 @@ def reportable(platform_to_test=None):
308308
logging.warning("\t-" + "\n\t-".join(suite_names))
309309
else:
310310
logging.warning("All suites covered, not reporting.")
311-
return not uncovered_suites
311+
return bool(uncovered_suites)
312312

313313

314314
def testrail_init() -> TestRail:

0 commit comments

Comments
 (0)