-
Notifications
You must be signed in to change notification settings - Fork 8
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
Problems with scheduled builds? #36
Comments
AFAIK it's basically up to the owner to re-enable CI when/if it gets disabled :/. |
I haven't observed this actual issue but I can believe that it's true. But yes, what can we do... GitHub simply has chronic issues that will never be solved.
|
Option 1: Don't suggest schedule. No fun, we'd really like to have it on libraries. Option 2: Suggest two workflows, one for push/pull_request and one scheduled. The scheduled one could just trigger the other. Won't save us from losing the scheduled workflow, but at least it won't take the push/pull_request workflow down with it. Option 3: ? Anything I've not thought of? Or, nothing of course. I like option two, in order to limit the damage as much as is possible. |
I really don't think there's anything we can reasonably do here. This is just an action that works in GitHub's actions environment with all it's intricacies. We could theoretically consider suggesting a workaround such as having two workflows where the scheduled one just triggers the other. But I think that's too much complexity and has nothing to do with this action specifically. It's a general workaround for a GitHub issue. |
Answer from GitHub is, unsuprisingly, "expected behaviour", and they then suggest the solution from option 2...
You'll have to unpack that for me. Working around a GitHub issue has nothing to do with a GitHub action? I've seen projects where bugs snug onto main because of this "expected behaviour", and the workaround is, if unpretty, not horrific, so why not go with it? |
Well like I said, this is nothing specific about this particular action. So I wouldn't know what we would could possibly do in this action's context. |
Well, no, but it's an issue that affects the users of this action. Would be nice if GitHub would fix the issue, but apparently not.
Not suggest a configuration that might cause some to shoot themselves in the foot? If not suggesting the workaround, then maybe inserting a comment mentioning that disabled workflows is a thing? I assume that most people will use the configurator, because, who really wants to write actions? So I think it should deliver the most safe configuration. |
The configurator suggests scheduled builds for libraries, and a lot of shards seems to be doing this.
But it seems that GitHub might have a bug in the scheduler handling. I got the suspicion on
naqvis/crystal-vips
and after a lot of digging through repos trying to find someone with the same prerequisites, I foundhugopl/pango.cr
which exhibit the same symptoms.It seems that if GitHub disables the scheduled workflow due to repository inactivity, it doesn't just disable the scheduled run of the workflow, but the entire workflow, on push, pull_request, the works.
The scheduled workflow on
crystal-vips
was disabled last month. Looking at the history, the fixed memory usage issue from ten months ago ran both workflows in the repository, but the Merge pull request #6 from two weeks ago only ran one.Similarly, the workflow on
pango.cr
was disabled 7 months ago, and the Release v0.2.0. commit from last year ran it, while the Release v0.3.0. from 5 months ago, didn't run anything.This isn't a problem for some ecosystems where code churn is high, but it is for Crystal, where code has a longer shelf life. And it seems that it's an issue likely to be missed by the maintainers (actions failing to run is very easy to overlook).
I've created a ticket at https://support.github.com/contact/bug-report, but I fear it might be by design, so
install-crystal
might want to take this into consideration.The text was updated successfully, but these errors were encountered: