Skip to content

Use pull request numbers in CI concurrency groups #67

Done

Description

@Andreas-Garcia

The canonical CI group uses the PR source branch name. Two PRs from different forks can use the same branch name and share a concurrency group, so a new run for one PR can cancel the required check on the other. The original rollout recorded this limitation in BehindTheMusicTree/github-config#69.

Use the PR number for pull_request events and the full Git ref for pushes. Keep the workflow stem and cancel running jobs only on pull_request.

concurrency:
  group: <stem>-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.ref }}
  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
  • Coordinate the rollout with org-conformance: accept both CI forms while the repository workflows are updated, then remove support for the old form. Keep the release and deployment forms as they are.
  • Verify that a newer run cancels an older run on the same PR, that PRs from distinct forks with the same branch name stay independent, and that a merged PR's closed event stays in the PR group rather than the push group.

Activity

  1. Andreas-Garcia commented on Nov 24, 2026

    @Andreas-Garcia
    MemberAuthor

    Recensement de l'ancienne forme (github.head_ref || github.ref)

    Lu sur la branche par défaut des dépôts non archivés de l'org (hear-* exclus, hors périmètre).

    Dépôt Workflows en ancienne forme
    the-music-tree-genre-kit agent-drift, pr-title, validate
    the-music-tree-pipelines agent-drift, ci
    grow-the-music-tree-frontend agent-drift, api-public-health, branch-protection, labeler, pr-size-labeler, pr-type-labeler, validate
    the-music-deck-admin agent-drift, branch-protection, ci
    the-music-deck-game agent-drift, branch-protection, ci
    the-music-tree-brand agent-drift, validate
    python-project-standards agent-guidance
    the-music-tree-frontend agent-drift, lint-test-build
    ui agent-drift, validate
    the-music-tree-api-kit agent-drift, validate
    the-music-tree-geography ci

    Déjà conformes : github-workflows, grow-the-music-tree-api.

    Plan : une PR de migration par dépôt (formes release/deploy inchangées), puis retrait de l'ancienne forme dans conformance/check-concurrency.sh une fois le recensement à zéro.

  2. Andreas-Garcia commented on Nov 24, 2026

    @Andreas-Garcia
    MemberAuthor

    Avancement de la migration

    Fusionnées (squash) : the-music-tree-genre-kit#335, the-music-tree-brand#65, python-project-standards#16, the-music-tree-frontend#88, ui#65, the-music-tree-api-kit#48, the-music-tree-geography#8.

    Ouvertes, auto-merge activé : the-music-deck-admin#660, the-music-deck-game#228, grow-the-music-tree-frontend#593.

    Reste : the-music-tree-pipelines (agent-drift, ci), traité par une autre session.

  3. Andreas-Garcia commented on Nov 24, 2026

    @Andreas-Garcia
    MemberAuthor

    grow-the-music-tree-frontend#593 fusionnée (squash). Restent en attente de CI : the-music-deck-admin#660 (Build) et the-music-deck-game#228 (Typecheck, Build).

  4. Andreas-Garcia commented on Nov 24, 2026

    @Andreas-Garcia
    MemberAuthor

    the-music-deck-admin#660 et the-music-deck-game#228 fusionnées (squash). Prochaine étape : re-scan de l'org pour l'ancienne forme.

  5. Andreas-Garcia commented on Nov 24, 2026

    @Andreas-Garcia
    MemberAuthor

    Déploiement terminé hors pipelines : deck-admin#660, deck-game#228, grow-frontend#593 fusionnées. #76 retire l'ancienne forme du check. Restent : the-music-tree-pipelines@develop (autre session) et the-music-tree-brand@main (migré sur develop, en attente de sa prochaine release). Release de github-workflows et bump des pins en attente de confirmation.

  6. Andreas-Garcia commented on Nov 24, 2026

    @Andreas-Garcia
    MemberAuthor

    Avancement : v6.5.0 publiée ; 19 des 20 PR de bump des pins org-conformance sont fusionnées. Reste audiometa#121 (auto-merge activé, seuls les tests macOS sont en attente). Anciennes formes restantes : the-music-tree-pipelines@develop (autre session) et the-music-tree-brand@main (attend sa release). #67 reste ouverte jusque-là.

  7. Andreas-Garcia commented on Nov 24, 2026

    @Andreas-Garcia
    MemberAuthor

    Vérification sur GitHub terminée. Les PR de test #73 et #74 avaient le même nom de branche source dans deux dépôts distincts (amont et fork). Elles ont pris les groupes concurrency-probe-pr-73 et concurrency-probe-pr-74. La mise à jour de #73 a annulé son exécution précédente, et #74 est allée au bout. PR #73 mise à jour · PR #74 terminée.

    À la fusion de #73, pull_request.closed est resté dans le groupe de la PR et le push a utilisé le groupe de la branche de base. Exécution closed · Exécution push. L’ancienne expression n’est plus présente dans les workflows de pipelines sur main et develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions