mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
.github: Output expected vs. actual (#67703)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/67703 Had this script fail on me within CI without actually telling me what was wrong so adding some more output here to showcase what the actual vs. the expected result is Signed-off-by: Eli Uriegas <eliuriegas@fb.com> Test Plan: Imported from OSS Reviewed By: janeyx99 Differential Revision: D32112898 Pulled By: seemethere fbshipit-source-id: dfc9a82c709d52e0dde02d1e99a19eecc63c5836
This commit is contained in:
parent
90d311b268
commit
618bab593c
1 changed files with 10 additions and 1 deletions
11
.github/scripts/ensure_actions_will_cancel.py
vendored
11
.github/scripts/ensure_actions_will_cancel.py
vendored
|
|
@ -46,11 +46,20 @@ if __name__ == "__main__":
|
|||
"group": concurrency_key(filename),
|
||||
"cancel-in-progress": True,
|
||||
}
|
||||
if data.get("concurrency", None) != expected:
|
||||
actual = data.get("concurrency", None)
|
||||
if actual != expected:
|
||||
print(
|
||||
f"'concurrency' incorrect or not found in '{filename.relative_to(REPO_ROOT)}'",
|
||||
file=sys.stderr,
|
||||
)
|
||||
print(
|
||||
f"expected: {expected}",
|
||||
file=sys.stderr,
|
||||
)
|
||||
print(
|
||||
f"actual: {actual}",
|
||||
file=sys.stderr,
|
||||
)
|
||||
errors_found = True
|
||||
|
||||
if errors_found:
|
||||
|
|
|
|||
Loading…
Reference in a new issue