Skip to content

Add weekly cron job for base and template#116

Draft
TimMonko wants to merge 1 commit into
napari:mainfrom
TimMonko:mnt/cron
Draft

Add weekly cron job for base and template#116
TimMonko wants to merge 1 commit into
napari:mainfrom
TimMonko:mnt/cron

Conversation

@TimMonko
Copy link
Copy Markdown
Contributor

@TimMonko TimMonko commented Nov 27, 2025

Description

This adds a once-per-week scheduled run (cron job) to the github actions. This is the path of least annoyance, because folks can easily ignore the failed jobs. We could create a FAIL_TEMPLATE that gets reported, but this would complicate test_and_deploy and add another file in .github

But, at least folks can learn when dependency updates break their packages

This is a considerably simpler implementation of a cron job compared to #65 (which used reusables and multiple new files)

@TimMonko TimMonko requested review from Czaki, jni and willingc November 27, 2025 20:31
@TimMonko
Copy link
Copy Markdown
Contributor Author

@guiwitz another quick one for you to review 😁


on:
schedule:
- cron: "0 0 * * TUE" # every week on Tuesday at midnight
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I picked Tuesday because that seems like one of the days where I get the least CI spam / cron jobs

@guiwitz
Copy link
Copy Markdown
Collaborator

guiwitz commented Nov 27, 2025

I'm just wondering if some users might be puzzled why they get systematic messages from GitHub and wouldn't even know how to turn it off. I think there might be quite a large crowd that creates plugins without actually using GH at all. Should this maybe be an optional thing in the copier template?

@TimMonko
Copy link
Copy Markdown
Contributor Author

I'm just wondering if some users might be puzzled why they get systematic messages from GitHub and wouldn't even know how to turn it off. I think there might be quite a large crowd that creates plugins without actually using GH at all. Should this maybe be an optional thing in the copier template?

Thank you for the perspective! I've long thought that the .github folder is something that should Just Work, as in a new user doesn't need to peer into its contents.

However, I think you are bringing up a point that if you get systematic messages from a failed cron job than it stops being something that Just Works, and starts being bothersome.

I'll have a think about it more. Maybe something that could go into "advanced maintenance options" in the template prompts. I don't want to fully clutter things up with a bunch of questions, like "do you want a cron job" is probably just as annoying.

Thanks!

@TimMonko
Copy link
Copy Markdown
Contributor Author

Placing this in draft while I think about alternative ways to implement this

@TimMonko TimMonko marked this pull request as draft November 28, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants