taskcluster-taskgraph 24.2.0__py3-none-any.whl → 24.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: taskcluster-taskgraph
3
- Version: 24.2.0
3
+ Version: 24.2.2
4
4
  Summary: Build taskcluster taskgraphs
5
5
  Project-URL: Repository, https://github.com/taskcluster/taskgraph
6
6
  Project-URL: Issues, https://github.com/taskcluster/taskgraph/issues
@@ -6,7 +6,7 @@ taskgraph/docker.py,sha256=5k9ZjooqvtBDtb3AAZijUdUNzgRcm6CXM5CrmLO0KFA,24429
6
6
  taskgraph/filter_tasks.py,sha256=R7tYXiaVPGIkQ6O1c9-QJrKZ59m9pFXCloUlPraVnZU,866
7
7
  taskgraph/generator.py,sha256=zanO2GOb0HWEGOQkEZGmXP0JySql71xoeENjk-cKOc8,23170
8
8
  taskgraph/graph.py,sha256=GGNY9n44xVgz_LbnprbQDY1IFcNV9oxhrBavu3SW-V8,6202
9
- taskgraph/main.py,sha256=C7x1xHkDuABQE0RP6VGXDsF2YlvQhGDhtvO32TeSo5Y,38970
9
+ taskgraph/main.py,sha256=miuQkXuxD9eAUa0MqORARdyCRVtsqobLA-vW6n1sf_Y,39424
10
10
  taskgraph/morph.py,sha256=pF9_bqM2aNpNfSH7xEFWQz83ohxxVdUUDqdv2yq7waA,9232
11
11
  taskgraph/parameters.py,sha256=dlEC048z06WKdIL8QhH1nu2hy9jF4AQ4KcVfJauIXyk,13867
12
12
  taskgraph/target_tasks.py,sha256=9_v66bzmQFELPsfIDGITXrqzsmEiLq1EeuJFhycKL0M,3356
@@ -50,7 +50,7 @@ taskgraph/transforms/run/toolchain.py,sha256=LhaZ_8iI63QNhkolAY3vU5675vT9kbxbCZk
50
50
  taskgraph/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  taskgraph/util/archive.py,sha256=4XcH0FvUZIDs6MYzopFVlItM5J5JllFEXg9buZB3QVc,5104
52
52
  taskgraph/util/attributes.py,sha256=pPOFmwkDQQ-IqfDpVghZ10YI_qXRY4Bi5JP3xr6XVvc,2964
53
- taskgraph/util/cached_tasks.py,sha256=GKL3X_Pp0bQE96IdIP6PnDM7XTgecWyhbiGuC2H7KVI,4180
53
+ taskgraph/util/cached_tasks.py,sha256=wSXEt29inOaDwGu5XpRSXIj_9l8lga2nSgHsRbu8rnM,4171
54
54
  taskgraph/util/caches.py,sha256=FByNYkpSYI8xdKvpplUXiX0_JCGX4j8aWnOa6Vj7g8s,1711
55
55
  taskgraph/util/copy.py,sha256=-AgF3oPF3lfiUHvAOiGkhUzS68i9kcWRsyDSiBkAVCw,1577
56
56
  taskgraph/util/dependencies.py,sha256=EJjqEadk709fYVgj6joYCZII_1rZJ8Va34YZBCAGMc0,2645
@@ -75,8 +75,8 @@ taskgraph/util/vcs.py,sha256=Z2sCJT0-kwP_AbSUMIzya9lk8SyjWPzMYtQPYJ2WtnA,22496
75
75
  taskgraph/util/verify.py,sha256=hY6xl4rEgXeVuPswG8HCGBHJNKHF2QXx2cTxrrRtDeE,14829
76
76
  taskgraph/util/workertypes.py,sha256=SpqQmf99kB9QxtgOdXeMUvzuVv1o0ZVB4lYahZH3jDY,2534
77
77
  taskgraph/util/yaml.py,sha256=29h6RE7JA4z0U2V3WCu-S39lPMBS9CEZEglv1delDvw,1075
78
- taskcluster_taskgraph-24.2.0.dist-info/METADATA,sha256=SryNjz6kHa2pG1C4xRwkKRp7Nfs66SeQH7Lj8f8fpEM,5065
79
- taskcluster_taskgraph-24.2.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
80
- taskcluster_taskgraph-24.2.0.dist-info/entry_points.txt,sha256=2hxDzE3qq_sHh-J3ROqwpxgQgxO-196phWAQREl2-XA,50
81
- taskcluster_taskgraph-24.2.0.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
82
- taskcluster_taskgraph-24.2.0.dist-info/RECORD,,
78
+ taskcluster_taskgraph-24.2.2.dist-info/METADATA,sha256=dgtz4W6pVH4-KRYuFfTfcs7rJyUUq6AnEVJ9uT56stk,5065
79
+ taskcluster_taskgraph-24.2.2.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
80
+ taskcluster_taskgraph-24.2.2.dist-info/entry_points.txt,sha256=2hxDzE3qq_sHh-J3ROqwpxgQgxO-196phWAQREl2-XA,50
81
+ taskcluster_taskgraph-24.2.2.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
82
+ taskcluster_taskgraph-24.2.2.dist-info/RECORD,,
taskgraph/main.py CHANGED
@@ -179,6 +179,16 @@ def format_taskgraph(options, parameters, overrides, logfile=None):
179
179
  return format_method(tg)
180
180
 
181
181
 
182
+ def format_taskgraph_multiple(*args, **kwargs):
183
+ """Thin wrapper around format_taskgraph to avoid the taskgraph generator
184
+ that it runs using multiple processes. (This function is intended to be
185
+ called by something that is already using a ProcessPoolExecutor, so
186
+ there's no advantage to spawning additional processes in the subprocesses.)"""
187
+
188
+ os.environ["TASKGRAPH_SERIAL"] = "1"
189
+ return format_taskgraph(*args, **kwargs)
190
+
191
+
182
192
  def dump_output(out, path=None, params_spec=None):
183
193
  from taskgraph.parameters import Parameters # noqa: PLC0415
184
194
 
@@ -226,7 +236,7 @@ def generate_taskgraph(options, parameters, overrides, logdir):
226
236
  with ProcessPoolExecutor(max_workers=options["max_workers"]) as executor:
227
237
  for spec in parameters:
228
238
  f = executor.submit(
229
- format_taskgraph, options, spec, overrides, logfile(spec)
239
+ format_taskgraph_multiple, options, spec, overrides, logfile(spec)
230
240
  )
231
241
  futures[f] = spec
232
242
 
@@ -63,9 +63,9 @@ def add_optimization(
63
63
  # Pull requests use a different target cache index route. This way we can
64
64
  # be confident they won't be used by anything other than the pull request
65
65
  # that created the cache in the first place.
66
- if config.params["tasks_for"].startswith(
67
- "github-pull-request"
68
- ) and config.graph_config["taskgraph"].get("cache-pull-requests", True):
66
+ if config.params["tasks_for"] == "github-pull-request" and config.graph_config[
67
+ "taskgraph"
68
+ ].get("cache-pull-requests", True):
69
69
  subs["head_ref"] = config.params["head_ref"]
70
70
  if subs["head_ref"].startswith("refs/heads/"):
71
71
  subs["head_ref"] = subs["head_ref"][11:]