Commit 6beb4875 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Run smoke tests on regular PRs (#2364)

Summary:
Currently smoke tests are only executed on nightly jobs.
This is inconvenient as PRs that changes build process do not get
the signal naturally.

This commit changes it by always executing smoke tests.

Pull Request resolved: https://github.com/pytorch/audio/pull/2364

Reviewed By: atalman

Differential Revision: D36171267

Pulled By: mthrok

fbshipit-source-id: e549965ba139b5992177b7a094d87c9ef4432a7f
parent 70d7d696
This diff is collapsed.
......@@ -78,7 +78,7 @@ def build_workflow_pair(btype, os_type, python_version, cu_version, filter_branc
w.append(generate_upload_workflow(base_workflow_name, filter_branch, os_type, btype, cu_version))
if filter_branch == "nightly" and os_type != "macos":
if os_type != "macos":
pydistro = "pip" if btype == "wheel" else "conda"
w.append(
generate_smoketest_workflow(
......@@ -186,13 +186,10 @@ def generate_upload_workflow(base_workflow_name, filter_branch, os_type, btype,
def generate_smoketest_workflow(pydistro, base_workflow_name, filter_branch, python_version, cu_version, os_type):
required_build_suffix = "_upload"
required_build_name = base_workflow_name + required_build_suffix
smoke_suffix = f"smoke_test_{pydistro}".format(pydistro=pydistro)
d = {
"name": f"{base_workflow_name}_{smoke_suffix}",
"requires": [required_build_name],
"requires": [base_workflow_name],
"python_version": python_version,
"cuda_version": cu_version,
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment