From 17b538746d7735d3a76933990490cdeaf7d76b22 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 18 Oct 2026 06:39:07 +0200 Subject: [PATCH] Check for leftovers of the period to era rename in CI --- .github/copilot-instructions.md | 2 +- .github/workflows/repo-sanity-checks.yaml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index afc5941..b06a213 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -103,5 +103,5 @@ Verified 2026-08-27; re-check before relying on any of it. | Consumers | HH_bbtautau and HH_bbWW use this as a submodule; H_mumu does not | | Cards | analysis-side, e.g. `HH_bbWW/config/Datacards/CI_card.yaml` | | Tests | none in this repository | -| Workflows | `formatting-check`, `repo-sanity-checks`, `trigger-flaf-integration`. Formatting is checked automatically — do not comment on it | +| Workflows | `formatting-check`, `repo-sanity-checks` (FLAF's sanity checks and FLAF's `run_tools/check_era_rename.py` for leftovers of the `period` → `era` rename), `trigger-flaf-integration`. Formatting is checked automatically — do not comment on it | | Integration test | Triggered by `@cms-flaf-bot please test`; the pipeline configuration lives in `cms-flaf/FLAF_ci` | diff --git a/.github/workflows/repo-sanity-checks.yaml b/.github/workflows/repo-sanity-checks.yaml index 6701ced..c0f16c7 100644 --- a/.github/workflows/repo-sanity-checks.yaml +++ b/.github/workflows/repo-sanity-checks.yaml @@ -13,3 +13,20 @@ jobs: sanity-checks: uses: cms-flaf/FLAF/.github/workflows/repo-sanity-checks.yaml@main secrets: inherit + + # The period -> era rename (multi-era change set): no leftover in this repository's files. + # The check lives in FLAF. + era-rename-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check out the check + uses: actions/checkout@v4 + with: + repository: cms-flaf/FLAF + ref: main + path: flaf_check + sparse-checkout: run_tools/check_era_rename.py + sparse-checkout-cone-mode: false + - name: No leftover of the period -> era rename + run: python3 flaf_check/run_tools/check_era_rename.py --repo .