Skip to content

Commit a59c40d

Browse files
authored
Do not pass freethreaded pars
1 parent 33fd63f commit a59c40d

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

.github/scripts/check-releases.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,12 @@ def version_sort_key(cpython_tag: str) -> tuple[int, int, int, int, int]:
127127
return (3, minor, patch, stage_order, stage_num)
128128

129129

130-
def dispatch_workflow(repo: str, token: str, cpython_tag: str, ft: bool) -> None:
130+
def dispatch_workflow(repo: str, token: str, cpython_tag: str) -> None:
131131
body = json.dumps(
132132
{
133133
"ref": "main",
134134
"inputs": {
135135
"cpython_tag": cpython_tag,
136-
"freethreaded": "true" if ft else "false",
137136
},
138137
}
139138
).encode("utf-8")
@@ -176,10 +175,10 @@ def wait_run_complete(repo: str, token: str, run_id: int) -> str | None:
176175
return data.get("conclusion")
177176

178177

179-
def run_build(repo: str, token: str, tag: str, ft: bool, baseline: set[int]) -> tuple[str, str | None]:
180-
log(f"[{tag}] dispatching build-python.yml (freethreaded={str(ft).lower()})")
178+
def run_build(repo: str, token: str, tag: str, baseline: set[int]) -> tuple[str, str | None]:
179+
log(f"[{tag}] dispatching build-python.yml")
181180
after_ts = datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
182-
dispatch_workflow(repo, token, tag, ft)
181+
dispatch_workflow(repo, token, tag)
183182
run = find_dispatched_run(repo, token, baseline, after_ts)
184183
if run is None:
185184
log(f"[{tag}] WARN: could not locate dispatched run within timeout")
@@ -228,7 +227,7 @@ def main() -> int:
228227
existing_tags = {r.get("tag_name") or "" for r in releases}
229228

230229
# Decide what to dispatch
231-
to_dispatch: list[tuple[str, bool]] = []
230+
to_dispatch: list[str] = []
232231
for tag in candidates:
233232
match = CPYTHON_TAG_RE.match(tag)
234233
assert match is not None
@@ -249,14 +248,13 @@ def main() -> int:
249248
log(" in denylist, skipping")
250249
continue
251250

252-
ft = minor >= 13
253-
log(f" queued for dispatch (freethreaded={str(ft).lower()})")
254-
to_dispatch.append((tag, ft))
251+
log(f" queued for dispatch")
252+
to_dispatch.append(tag)
255253

256254
log("")
257255
log(f"=== {len(to_dispatch)} candidate(s) to build ===")
258-
for tag, ft in to_dispatch:
259-
log(f" {tag} (ft={str(ft).lower()})")
256+
for tag in to_dispatch:
257+
log(f" {tag}")
260258

261259
if dry_run:
262260
log("")
@@ -277,8 +275,8 @@ def main() -> int:
277275
failures: list[str] = []
278276
with cf.ThreadPoolExecutor(max_workers=max_parallelism) as pool:
279277
futures = [
280-
pool.submit(run_build, repo, token, tag, ft, baseline)
281-
for tag, ft in to_dispatch
278+
pool.submit(run_build, repo, token, tag, baseline)
279+
for tag in to_dispatch
282280
]
283281
for fut in cf.as_completed(futures):
284282
try:

0 commit comments

Comments
 (0)