Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All branches synced = workflow tsunami #12

Closed
cbrunnkvist opened this issue Nov 27, 2020 · 5 comments
Closed

All branches synced = workflow tsunami #12

cbrunnkvist opened this issue Nov 27, 2020 · 5 comments
Labels
enhancement New feature or request stale

Comments

@cbrunnkvist
Copy link

When I sync a repo, all branches are get pulled. This means that all branches consequently get their push event triggered on the (GHES) destination side. For some repos this means you involuntarily/perhaps unknowingly set off potentially quite a large backlog of workflows - the repo I just synced contained ~50 branches, ~50 releases, and ~20 workflows, all on: [push]. I suppose I won't be using my workers for anything else for the rest of today... 😢

Ideas

  • Would it make sense to only sync the main branch by default?
  • Should there be some way to allow specifying "branches to sync, per repo-name" (i.e. extending the upstream_org/upstream_repo:destination_org/dstination_repo syntax)?
@andymckay
Copy link
Contributor

Just trying to understand your use case. You are using actions-sync on a repository that itself has Actions on it? So in this case syncing the repo causes those Actions to trigger?

The original intent was the actions in the actions org on GitHub and by default none of those have workflows on them that will trigger, so this might not be a use case we've considered.

@MmAtBosch
Copy link

i tried actions-sync for the first time today. great job 👍🏻

but i also stumbled about this issue that all branches are synced.
When i got it right, the purpose of this tool is to only sync github.com actions to GHES.
So it should be sufficient, when the ghes branch of a workflow repo is synced, as it is the only branch which is used on ghes.
Also all workflow repos after appliance installation only have ghes branch available.

but after syncing a repo with actions-sync, all branches from github.com are available on GHES.

does it make sense to change this behavior or at least add an option to change it?
Would really appreciate it.

@ajaykn ajaykn added the enhancement New feature or request label Nov 30, 2021
@sorekz
Copy link

sorekz commented Apr 6, 2023

Hi, this issue is kinda old but can I still hook onto it?

We recently switched to using the actions-sync from manually syncing with git mirror.
And the action really makes things easier and much faster.

Now we use the action not only for the actions/* but also for other user actions. But the same unpleasant thing applies to the actions/* actions: Whenever there is a new branch that one is synced and when it is deleted in the github.com repo that branch is not cleaned up. Even when the cache-dir is cleaned, it is not removed from the target GHES repo.

In our case all the dev branches are not needed and it would be enough to sync the main branch and tags. It would also help if the action cleans up all the old dev and dependabot branches that are already closed on the github.com repos but now pile up in our GHES target repos.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Apr 21, 2024
Copy link

github-actions bot commented May 5, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

5 participants