Allow running concurrent unit evals (#42578)
Right now only one unit eval GitHub Action can be run at a time. This permits them to run concurrently. Release Notes: - N/A
This commit is contained in:
@@ -41,7 +41,7 @@ pub(crate) fn run_unit_evals() -> Workflow {
|
||||
.add_input(model_name.name, model_name.input())
|
||||
.add_input(commit_sha.name, commit_sha.input()),
|
||||
))
|
||||
.concurrency(vars::one_workflow_per_non_main_branch())
|
||||
.concurrency(vars::allow_concurrent_runs())
|
||||
.add_env(("CARGO_TERM_COLOR", "always"))
|
||||
.add_env(("CARGO_INCREMENTAL", 0))
|
||||
.add_env(("RUST_BACKTRACE", 1))
|
||||
|
||||
@@ -81,6 +81,12 @@ pub(crate) fn one_workflow_per_non_main_branch() -> Concurrency {
|
||||
.cancel_in_progress(true)
|
||||
}
|
||||
|
||||
pub(crate) fn allow_concurrent_runs() -> Concurrency {
|
||||
Concurrency::default()
|
||||
.group("${{ github.workflow }}-${{ github.ref_name }}-${{ github.run_id }}")
|
||||
.cancel_in_progress(true)
|
||||
}
|
||||
|
||||
// Represents a pattern to check for changed files and corresponding output variable
|
||||
pub(crate) struct PathCondition {
|
||||
pub name: &'static str,
|
||||
|
||||
Reference in New Issue
Block a user