Emit the plan target during publish test failures (#17740)

I'm always staring at these wondering which job actually failed
This commit is contained in:
Zanie Blue
2026-01-29 14:51:39 -06:00
committed by GitHub
parent b02ffc5d09
commit 27424e4f08
+6 -3
View File
@@ -541,7 +541,8 @@ def test_reupload_same_files(
or output.count("already exists") != 0
):
raise RuntimeError(
f"PyPI re-upload of the same files failed: "
f"PyPI re-upload of the same files failed for {plan.target} "
f"({plan.configuration.publish_url}): "
f"{output.count('Uploading')} != {len(expected_filenames)}, "
f"{output.count('already exists')} != 0\n"
f"---\n{output}\n---"
@@ -608,7 +609,8 @@ def test_reupload_with_check_url(
expected_filenames
):
raise RuntimeError(
f"Re-upload with check URL failed: "
f"Re-upload with check URL failed for {plan.target} "
f"({plan.configuration.publish_url}): "
f"{output.count('Uploading')} != 0, "
f"{output.count('already exists')} != {len(expected_filenames)}\n"
f"---\n{output}\n---"
@@ -666,7 +668,8 @@ def test_reupload_modified_files(
or "Local file and index file do not match for" not in result.stderr
):
raise RuntimeError(
f"Re-upload with mismatching files should not have been started: "
f"Re-upload with mismatching files should not have been started "
f"for {plan.target} ({plan.configuration.publish_url}): "
f"Exit code {result.returncode}\n"
f"---\n{result.stderr}\n---"
)