mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
.circleci: Add option to not run build workflow (#50162)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/50162 Adds an option to not run the build workflow when the `run_build` parameter is set to false Should reduce the amount of double workflows that are run by pytorch-probot Uses functionality introduced in https://github.com/pytorch/pytorch-probot/pull/18 Signed-off-by: Eli Uriegas <eliuriegas@fb.com> Test Plan: Imported from OSS Reviewed By: yns88 Differential Revision: D25812971 Pulled By: seemethere fbshipit-source-id: 4832170f6abcabe3f385f47a663d148b0cfe2a28
This commit is contained in:
parent
3270e661c3
commit
dc41d17655
|
|
@ -11,6 +11,9 @@ parameters:
|
||||||
run_binary_tests:
|
run_binary_tests:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
run_build:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
|
||||||
docker_config_defaults: &docker_config_defaults
|
docker_config_defaults: &docker_config_defaults
|
||||||
user: jenkins
|
user: jenkins
|
||||||
|
|
@ -9762,6 +9765,7 @@ workflows:
|
||||||
only:
|
only:
|
||||||
- postnightly
|
- postnightly
|
||||||
executor: windows-with-nvidia-gpu
|
executor: windows-with-nvidia-gpu
|
||||||
|
when: << pipeline.parameters.run_build >>
|
||||||
ecr_gc:
|
ecr_gc:
|
||||||
triggers:
|
triggers:
|
||||||
- schedule:
|
- schedule:
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,10 @@ def gen_build_workflows_tree():
|
||||||
"when": r"<< pipeline.parameters.run_binary_tests >>",
|
"when": r"<< pipeline.parameters.run_binary_tests >>",
|
||||||
"jobs": [f() for f in binary_build_functions],
|
"jobs": [f() for f in binary_build_functions],
|
||||||
},
|
},
|
||||||
"build": {"jobs": [f() for f in build_workflows_functions]},
|
"build": {
|
||||||
|
"when": r"<< pipeline.parameters.run_build >>",
|
||||||
|
"jobs": [f() for f in build_workflows_functions]
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,9 @@ parameters:
|
||||||
run_binary_tests:
|
run_binary_tests:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
run_build:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
|
||||||
docker_config_defaults: &docker_config_defaults
|
docker_config_defaults: &docker_config_defaults
|
||||||
user: jenkins
|
user: jenkins
|
||||||
|
|
|
||||||
2
.github/pytorch-circleci-labels.yml
vendored
2
.github/pytorch-circleci-labels.yml
vendored
|
|
@ -9,3 +9,5 @@ labels_to_circle_params:
|
||||||
- release/.*
|
- release/.*
|
||||||
tags:
|
tags:
|
||||||
- v[0-9]+(\.[0-9]+)*-rc[0-9]+
|
- v[0-9]+(\.[0-9]+)*-rc[0-9]+
|
||||||
|
set_to_false:
|
||||||
|
- run_build
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user