Skip to content

Commit

Permalink
debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Dec 10, 2024
1 parent 2d11d11 commit 772cbc8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions taskcluster/fxci_config_taskgraph/util/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import requests
import taskcluster
from taskgraph.util.taskcluster import get_ancestors
from taskgraph.util.taskcluster import logging

FIREFOXCI_ROOT_URL = "https://firefox-ci-tc.services.mozilla.com"
STAGING_ROOT_URL = "https://stage.taskcluster.nonprod.cloudops.mozgcp.net"
Expand Down Expand Up @@ -50,17 +51,23 @@ def find_tasks(decision_index_path: str, include_deps: bool = False) -> list[dic
# if attributes.get("test_platform", "").startswith(("android-hw", "macosx")):
# continue

logging.info(f"appending {task['task']}")
tasks.append(task["task"])
if include_deps:
logging.info("including deps")
# TODO: remove hack
import os
orig = os.environ["TASKCLUSTER_ROOT_URL"]
os.environ["TASKCLUSTER_ROOT_URL"] = FIREFOXCI_ROOT_URL
logging.info(f"fetching ancestors for {task['task_id']}")
for label, task_id in get_ancestors(task["task_id"]).items():
# don't want to rerun decision tasks...
if "Decision" in label:
logging.info(f"skipping task: {label}")
continue
logging.info(f"adding task: {label} {task_id}")
tasks.append(queue.task(task_id))
os.environ["TASKCLUSTER_ROOT_URL"] = orig
logging.info("done including deps")

return tasks

0 comments on commit 772cbc8

Please sign in to comment.