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:
Richard Feldman
2025-11-12 17:04:38 -05:00
committed by GitHub
parent b0700a4625
commit ede3b1dae6
3 changed files with 8 additions and 2 deletions

View File

@@ -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))

View File

@@ -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,