Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions tools/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import yaml
from ptscripts import Context, command_group
from rich.markup import escape

import tools.utils
import tools.utils.gh
Expand Down Expand Up @@ -780,7 +781,7 @@ def workflow_config(
slugs: str | list[str] = []

ctx.info(f"{'==== environment ====':^80s}")
ctx.info(f"{pprint.pformat(dict(os.environ))}")
ctx.info(escape(pprint.pformat(dict(os.environ))))
ctx.info(f"{'==== end environment ====':^80s}")
ctx.info(f"Github event path is {gh_event_path}")

Expand Down Expand Up @@ -830,11 +831,11 @@ def workflow_config(
)

ctx.info(f"{'==== requested slugs ====':^80s}")
ctx.info(f"{pprint.pformat(requested_slugs)}")
ctx.info(escape(pprint.pformat(requested_slugs)))
ctx.info(f"{'==== end requested slugs ====':^80s}")

ctx.info(f"{'==== labels ====':^80s}")
ctx.info(f"{pprint.pformat(labels)}")
ctx.info(escape(pprint.pformat(labels)))
ctx.info(f"{'==== end labels ====':^80s}")

config["skip_code_coverage"] = True
Expand All @@ -848,13 +849,13 @@ def workflow_config(
ctx.info("Skipping code coverage.")

ctx.info(f"{'==== github event ====':^80s}")
ctx.info(f"{pprint.pformat(gh_event)}")
ctx.info(escape(pprint.pformat(gh_event)))
ctx.info(f"{'==== end github event ====':^80s}")

config["testrun"] = _define_testrun(ctx, changed_files, labels, full)

ctx.info(f"{'==== testrun ====':^80s}")
ctx.info(f"{pprint.pformat(config['testrun'])}")
ctx.info(escape(pprint.pformat(config["testrun"])))
ctx.info(f"{'==== testrun ====':^80s}")

jobs = {
Expand Down Expand Up @@ -886,15 +887,15 @@ def workflow_config(
for platform in platforms
}
ctx.info(f"{'==== build matrix ====':^80s}")
ctx.info(f"{pprint.pformat(config['build-matrix'])}")
ctx.info(escape(pprint.pformat(config["build-matrix"])))
ctx.info(f"{'==== end build matrix ====':^80s}")
config["artifact-matrix"] = []
for platform in platforms:
config["artifact-matrix"] += [
dict({"platform": platform}, **_) for _ in config["build-matrix"][platform]
]
ctx.info(f"{'==== artifact matrix ====':^80s}")
ctx.info(f"{pprint.pformat(config['artifact-matrix'])}")
ctx.info(escape(pprint.pformat(config["artifact-matrix"])))
ctx.info(f"{'==== end artifact matrix ====':^80s}")

# Get salt releases.
Expand Down Expand Up @@ -988,7 +989,7 @@ def workflow_config(
if _.slug in requested_slugs and "photon" not in _.slug
]
ctx.info(f"{'==== pkg test matrix ====':^80s}")
ctx.info(f"{pprint.pformat(pkg_test_matrix)}")
ctx.info(escape(pprint.pformat(pkg_test_matrix)))
ctx.info(f"{'==== end pkg test matrix ====':^80s}")

# We need to be careful about how many chunks we make. We are limitied to
Expand Down Expand Up @@ -1104,7 +1105,7 @@ def workflow_config(
)

ctx.info(f"{'==== test matrix ====':^80s}")
ctx.info(f"{pprint.pformat(test_matrix)}")
ctx.info(escape(pprint.pformat(test_matrix)))
ctx.info(f"{'==== end test matrix ====':^80s}")
config["pkg-test-matrix"] = pkg_test_matrix
config["test-matrix"] = test_matrix
Expand Down
Loading