Change summary
.github/workflows/run_unit_evals.yml | 2 +-
tooling/xtask/src/tasks/workflows/run_agent_evals.rs | 2 +-
tooling/xtask/src/tasks/workflows/vars.rs | 6 ++++++
3 files changed, 8 insertions(+), 2 deletions(-)
Detailed changes
@@ -65,5 +65,5 @@ jobs:
rm -rf ./../.cargo
shell: bash -euxo pipefail {0}
concurrency:
- group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
+ group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.run_id }}
cancel-in-progress: true
@@ -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,