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

don't run scheduled tests in forks #2615

Open
mathause opened this issue Dec 12, 2024 · 6 comments · May be fixed by #2649
Open

don't run scheduled tests in forks #2615

mathause opened this issue Dec 12, 2024 · 6 comments · May be fixed by #2649
Labels
question Further information is requested testing

Comments

@mathause
Copy link
Contributor

Scheduled workflows also run on forks (e.g. https://github.com/mathause/ESMValCore/actions) - they should be restricted to the main repository on https://github.com/ESMValGroup/ESMValCore. To achieve this see e.g. pydata/xarray#5267 where such a change was implemented.

Not a bug but in lack of a better category I post it here.

@valeriupredoi
Copy link
Contributor

valeriupredoi commented Dec 12, 2024

hi @mathause - this is an excellent point! Cheers 🍻 Here are my takes on it:

@valeriupredoi valeriupredoi added testing question Further information is requested labels Dec 12, 2024
@mathause
Copy link
Contributor Author

mathause commented Dec 12, 2024

hi @mathause - this is an excellent point! Cheers 🍻 Here are my takes on it:

  • the xarray implementation is terrible: it's a recipe for disaster in many ways, one of them being Github API changing, another being an eventual package name change etc

Yes using the github API is certainly a terrible idea! Because you can totally not use the github API when interacting with github actions! And name changes of repos happen all the time. So sorry for suggesting to use github API! How stupid of me.

I didn't know that and consider myself an experience github user. But yes that's a viable option - so fair enough. You do push the action to the user, which I find unnecessary and most people also don't unsubscribe from emails they never read but 🤷‍♂️

I don't see how running actions on your personal fork provide any value - in contrast to the ones on the main repo but that can be up to personal taste of course. So obviously fine with me if you want to keep it as is.

@valeriupredoi
Copy link
Contributor

I don't see how running actions on your personal fork provide any value - in contrast to the ones on the main repo but that can be up to personal taste of course. So obviously fine with me if you want to keep it as is.

I like freebies 😁 No, but scheduled/cron actions on a fork are not useful to me either, unless the fork is so different than the upstream, that it becomes a separate repo on its own, needing scheduled actions for CI 🍺

@bouweandela
Copy link
Member

bouweandela commented Dec 20, 2024

It would be nice to consider our carbon footprint too. Avoiding running useless jobs in CI is a really easy way to do something about that. As far as I can see, we only use GitHub actions for things that do not need to be run on forks, so I agree that if there is some way for us to turn them off, we should do it.

As an additional measure, we could also consider only running the actions with the lowest and highest supported version of Python, instead of the full range. I've never seen a case where testing the middle versions provided new insights.

@bouweandela
Copy link
Member

I looked into this in a bit more detail, and according to the GitHub documentation here:

When a public repository is forked, scheduled workflows are disabled by default.

So these runs appear to be either a bug in GitHub or caused by users enabling them manually.

@valeriupredoi
Copy link
Contributor

valeriupredoi commented Jan 17, 2025

thank you @bouweandela - I meant to post exactly this myself when you pinged me about this a few days ago, but then I did what I usually do in such cases - got distracted with another shiny problem to look into 😁 EDIT (I did it again!): it's 99.9% not a GH bug since we have quite a few forks and GAs they're not running in those forks - unless it's a very infrequent bug, that is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants