Skip to content

Make coqbot workaround the GitHub→GitLab 30' lag for syncing the main branches? #234

Description

@erikmd

Context

I remember discussing this issue a long time ago with @Zimmi48 and it seemed "minor" (and/or not essential for maintaining coq/coq), but it actually appeared blocking to me since this comment: rocq-community/docker-coq#50 (comment)

Cc @Alizter @JasonGross also FYI

Current behavior

Expected behavior

It would be nice if coqbot can automatically push the default branch (e.g. master or main or a set of user-specified branches) to GitLab as soon as it detects a push to this/these branches in GitHub.

As a result, with this feature, these two PRs could be merged quasi-simultaneously in this order:

  1. feat: Adapt to https://github.com/coq/coq/pull/15560 rocq-community/docker-coq#50
  2. [build] Consolidation of build system infrastructure rocq#15560

Misc notes

Regarding the potential "risk" that should be tested:

  • If coqbot can push master from github to gilab before the automatic mirroring, one should check that this bot push won't prevent the upcoming, automatic mirroring of (all other) branches.
  • but I guess this shouldn't occur if coqbot only dooes fast-forward pushes of that branch (unlike pushes to pr-* that are typically done with --force)
  • (and… what would happen if coqbot's push and gitlab's auto-sync are almost simultaneous?)

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions