-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update saved RDS for the removal of a workflow #19
Conversation
R-CMD-check-strict was recently removed
@etiennebacher Any ideas on what's going on with credentials issue here? I think we are using @rempsyc's credentials? |
Oh no, not this issue again 😅 Apparently the workflow runs fine every 8h on |
The dashboard hasn't been rendered since this PR was merged 😢 |
Actually I can reproduce locally, it fails on this URL: https://github.com/easystats/insight/workflows/R-CMD-check-main/badge.svg |
I'm confused, |
Yeah, Daniel has changed workflows in his repos: easystats/insight@ba37896 We need to figure out how to deal with this in the dashboard now. This is why I didn't want every developer to do make arbitrary changes to the infrastructure; it's impossible to build tooling that works across all repos of interest now. We need to keep carving out exceptions. Another option is to just get rid of this tab showing workflow statuses. It hasn't been that reliable anyway. |
I'd suggest we reduce workflows on main to a minimum (pkgdown, win/Ubuntu devel?) and only run the larger test suite only for PRs. Furthermore, we should remove the workflows for old release, as these don't work anyway. WDYT? |
This sounds reasonable to me but ultimately I think @IndrajeetPatil is most familiar with the
I don't know about those failures, I understood there were some issues with |
@strengejacke I disagree with the part that we don't need to run the workflows on the default branch. The true status of our codebase is the default, and not the status, branch, and we must make sure that the workflows are passing there, if not for every commit than at least on a daily or weekly basis. Otherwise, things can break and you will never know about it in an inactive repo because no workflows are being run, which is exactly the case for the reps you maintain. If we were using dependency management system like renv, it wouldn't be that big of an issue. But we don't. The fact that it fails on R 4.0 but not later versions is a technical problem that can be easily solved. Ripping out a big chunk of the entire CI just because of that is throwing the baby out with the bathwater. |
I don't understand your argumentation. For every change to the repo, we open a PR. All tests are run on that PR. We then merge the PR, and now all the same tests are immediately run again on main. Why? Those checks on main have no additional benefits, as they would replicate the checks results we had seconds before on PR before merging. |
You are assuming a lot here. PRs are rarely reviewed immediately after they are made, let alone merged. Here are some hypothetical scenarios to give you a more tactile feel for how CI passing on PR is no guarantee that it will also pass on the default branch (unless you are using a reproducible environment like renv, which we don't):
In such cases, since we are not running all workflows on the default branch, these problems are going to be discovered only when a PR is made. Also, this is going to be a rude surprise for the next person who makes a PR because they now need to fix things whose breakage has nothing to do with their PR. A lot of these problems can be avoided by using renv. But I would much rather always work with the most recent version of our dependencies to detect and fix any breakage due to a package update because doing so is quick and cheap on GitHub, but not on CRAN. Additionally, we have no control over what our users are doing: even if we use renv in our development workflow, nothing prevents our users to upgrade to recent version of deps and detect breakages or regressions. This is why I have configured all workflows to always upgrade to use the latest version of deps. |
I see the point that the time gap between pushing to a PR, reviewing and merging can cause new problems that haven't been detected due to checks that are already finished. However, once we merge and everything is OK on main, there can also be changes in between that we do not detect because our checks are only started again if we create a new PR - so that's no big difference, anyway. And, that's why I suggested running not all, but some important checks on main after merging, so it's likely we find any serious issues. We don't need to run all checks again. Or, the alternative would be a cronjob that runs all checks once a week or so on main. |
R-CMD-check-strict was recently removed