You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks! OT, but I don't like a core service failing because a contributor must first configure something or is not logged in (as a side note, I've never been able to restart a job even though I am logged in, but I seem to have two accounts connected to my email, which is also very confusing). I suggest that we try to fix this on our side, or consider moving to a different service with better GitHub integration.
happy to entertain alternatives if someone can do the research. IIRC, netlify is awful and GHA has no way of serving the built artifact for inspection, so RTD is the only one I know of that might be worth exploring. But maybe there are others I haven't heard of.
so RTD is the only one I know of that might be worth exploring
I use RTD for my projects and I'm very happy. Building and serving pretty much works out of the box, and I've never had any problems. Their build infrastructure is probably not as powerful, so we'd have to check how long the build process actually takes on their site.
Indeed someone would need to look into it. Right now I see two main disadvantages of CircleCI:
Login issues. There are some login problems for new contributors, and they can be tricky to resolve. The workaround is typically for us maintainers to manually click a button on CircleCI saying to build it anyway, or to merge main into the branch, or to manually push an empty commit.
Cost. We go over the CircleCI free tier usage and pay for it. (Actually most of the cost comes from MNE-BIDS-Pipeline, but even before it started eating credits, we were still over and probably would have had to pay at some point.)
Other than these two issues, CircleCI has been flexible for years for us, and we have a lot of knowledge built around how to get it to do the things we want. Many (most?) other MNE-* packages also use CircleCI as well. So I am not super motivated to look into a change.
To flesh out a bit more why we use CircleCI, here are the advantages / features we make use of for CircleCI that we'd ideally want to keep at a new provider, as all of these things were added to meet a need / improve contribution and/or maintenance experience:
Container specification and large(r than default) compute. We need a larger than default runner for CircleCI at least (memory+CPU), have had to change it in the past, and might need to change it in the future if memory or CPU requirements of examples go up.
Long runtime support. Our main job takes ~1h with parallelization across examples, so the doc build has to tolerate long runtimes.
Running multiple jobs. We currently do both make html and make linkcheck (on different schedules).
Deployment to gh-pages with commit control. Eventually we will probably want to automate the squash step so we can remove it from the release process).
Triaging doc build / Sphinx options based on commit contents and message. For PRs we run just modified examples, unless there's a [circle full] in there, then we run all of them. For main we build all examples, but only on a schedule. This is all possible because we have full control over what gets run when and with which options.
Rurun-with-SSH. I've used this dozens (maybe hundreds across projects!) of times to debug CI issues for MNE in hours that would have taken days by multiple pushes and/or couldn't be adequately tested locally.
Artifact redirection control.circleci-artifact-redirector-action allows us to specify which artifact to point to, not just index.html.
There could be other reasons, too -- these are just the ones that come to mind.
Moreover, if we switch, we'd want to be aware of any new disadvantages that we'd take on. For just one example, RTD at one point injected ads into built docs, which seems like a pretty big negative. Running our own self-hosted GH runner would come with new, un-fun / onerous maintenance overhead, etc.
In #13933, I mentioned that we might want to reconsider disabling the "Organization Settings - Usage Controls - Prevent unregistered user spend" setting, which would enable unregistered users to run the CircleCI jobs. I'm moving this discussion to this issue, here's @larsoner's reply:
I am hesitant to untick the box because based on what I've read a) there is a risk of incurring a financial cost (we pay for CircleCI) if we get it wrong, and b) it will create more maintenance work for me and/or Dan to make sure this isn't the case (monitoring, etc.). That being said, it's not off the table.
Can we not just ask them? We're already paying, so surely we can contact their support?
So far, contributors have been willing to click through the handful of boxes to sign up for CircleCI. But it sounds like you are strongly opposed to this @cbrnr ?
Correct. The reason is not that I'm not willing to click through a handful of boxes, but that it does not work for me. I have tried logging into CircleCI with both my email and via GitHub, I have never been able to restart a job. Same for Azure, even though I'm logged in I cannot restart any job (see #13933 (comment)).
In addition, these services are part of the MNE-Python workflow, so I also think that requiring users to sign up for multiple services (GitHub is a must of course) is just a bad experience. Why would I want to sign up for CircleCI or Azure when I want to contribute to MNE? In my opinion, it is our job to make it as smooth as possible especially for new contributors, and this includes not asking them to sign up for additional services only because we can't make them work. Granted, CircleCI and Azure are two different levels of the problem, because people usually don't have to sign up for Azure unless they want to restart a failed job - if they don't, they can just ask a maintainer (or maintainers will do that anyway in order to get all checks green). CircleCI, on the other hand, (sometimes?) fails completely by default, so there's no way for maintainers to re-run the failed job. It's broken by design, and I don't like that.
In summary, I think it's fine if maintainers have to sign up for other services than GitHub in order to manage jobs (even though it doesn't work for me). However, normal contributors should not be required to do that.
Regarding the reasons why we use CircleCI, I don't think we will find an equivalent service, and it would probably be a lot of effort. RTD is off the table because they only have very limited infrastructure (meaning runtime limits and hardware). GHA would be an option, but it isn't easy to host the HTML artifact, and SSHing into the runner is also not possible. So maybe we can fix the issue we have with CircleCI to have the docs built even if contributors have not signed up.
One option I didn't see mentioned here: separating the building from the serving. The build can stay in CI, but the built HTML could be deployed to a free static host like Cloudflare Workers, which GitHub Actions can push to in a single step — so "GHA has no way of serving the built artifact" might be sidesteppable rather than a hard blocker.
The part that appeals to me re: the contributor-experience concern is that contributors would only ever need GitHub — the Cloudflare token would live in our own CI, so there'd be no third-party signup that can fail by default.
Quite possibly you've already weighed this and I'm missing something. But if it sounds worth exploring, I'm happy to put together a small proof-of-concept to check whether it actually holds up.
On an S3 bucket + cloudfront distribution. One benefit is that you can setup the S3 bucket with lifecycle rules to automatically remove artifacts older than X. I think separating the build and the serving is definitely a good idea.
I think separating the build and the serving is definitely a good idea.
Yes it certainly has benefits, and is cleaner in principle. There are a couple of things to clarify regarding our current workflow when thinking about it though:
build: CircleCI currently does this for both main and PRs
serve: on main, we already serve HTML on GitHub pages (build + serve separated!). On PRs, it's served by CircleCI (built + serve jointly)
In the above discussions, people have talked about maybe using GHA to build docs. In that case, would we want to migrate the build, and presumably just the PR serve to Cloudfare. In that case, we'd move to maintaining three bits of infra for our docs (GHA build, gh-pages main serve, Cloudfare PR serve) instead of two (CircleCI build, gh-pages main serve, CircleCI PR serve -- practically free from the CircleCI build step). This seems like a step backward for maintainability. And there is shared knowledge of CircleCI in mne-tools because MNE-BIDS-Pipeline uses CircleCI way more heavily than GHA because of its particular CI requirements -- so eliminating CircleCI from MNE-Python doesn't really help mne-tools maintainability at this point.
Regarding GHA-based building in particular -- we have already run into job concurrency issues / backlogs in the last months. Adding more jobs there is going to make that problem worse, not better. So having the build stay on CircleCI actually helps the project (all mne-tools projects actually) a bit. This is the same reason we continue to use Azure here even though it's a bit antiquated -- distribute CI load better.
Regarding the contributor experience part, I think if someone is well enough versed to understand a given failure in GHA without a maintainer having to point them in the right direction, odds are very good they can look at a CircleCI failure and diagnose it just as easily (the interface has similar collapsed steps, etc.), and contributors almost never touch CircleCI infra itself. The signup thing, though, seems to be a continued pain point (I don't remember many serious unresolved CircleCI-related complaints before it!). I think it's worth trying to flip the switch on CircleCI to allow unauthenticated users to build. It seems to be the biggest sticking point, and we don't 100% know we'll incur extra charges (even though they suggested we could/would).
@drammock you okay with me hitting that switch and I'll set a reminder in, say, a week and then once a month for the next few months to check CircleCI billing to make sure nothing is amiss?
@drammock you okay with me hitting that switch and I'll set a reminder in, say, a week and then once a month for the next few months to check CircleCI billing to make sure nothing is amiss?
Activity
larsoner commentedon May 28, 2026
Then @drammock mentioned:
and @cbrnr said:
larsoner commentedon May 28, 2026
Indeed someone would need to look into it. Right now I see two main disadvantages of CircleCI:
maininto the branch, or to manually push an empty commit.Other than these two issues, CircleCI has been flexible for years for us, and we have a lot of knowledge built around how to get it to do the things we want. Many (most?) other MNE-* packages also use CircleCI as well. So I am not super motivated to look into a change.
To flesh out a bit more why we use CircleCI, here are the advantages / features we make use of for CircleCI that we'd ideally want to keep at a new provider, as all of these things were added to meet a need / improve contribution and/or maintenance experience:
mainjob takes ~1h with parallelization across examples, so the doc build has to tolerate long runtimes.make htmlandmake linkcheck(on different schedules).gh-pageswith commit control. Eventually we will probably want to automate thesquashstep so we can remove it from the release process).[circle full]in there, then we run all of them. Formainwe build all examples, but only on a schedule. This is all possible because we have full control over what gets run when and with which options.circleci-artifact-redirector-actionallows us to specify which artifact to point to, not justindex.html.There could be other reasons, too -- these are just the ones that come to mind.
Moreover, if we switch, we'd want to be aware of any new disadvantages that we'd take on. For just one example, RTD at one point injected ads into built docs, which seems like a pretty big negative. Running our own self-hosted GH runner would come with new, un-fun / onerous maintenance overhead, etc.
cbrnr commentedon Jun 1, 2026
In #13933, I mentioned that we might want to reconsider disabling the "Organization Settings - Usage Controls - Prevent unregistered user spend" setting, which would enable unregistered users to run the CircleCI jobs. I'm moving this discussion to this issue, here's @larsoner's reply:
Can we not just ask them? We're already paying, so surely we can contact their support?
Correct. The reason is not that I'm not willing to click through a handful of boxes, but that it does not work for me. I have tried logging into CircleCI with both my email and via GitHub, I have never been able to restart a job. Same for Azure, even though I'm logged in I cannot restart any job (see #13933 (comment)).
In addition, these services are part of the MNE-Python workflow, so I also think that requiring users to sign up for multiple services (GitHub is a must of course) is just a bad experience. Why would I want to sign up for CircleCI or Azure when I want to contribute to MNE? In my opinion, it is our job to make it as smooth as possible especially for new contributors, and this includes not asking them to sign up for additional services only because we can't make them work. Granted, CircleCI and Azure are two different levels of the problem, because people usually don't have to sign up for Azure unless they want to restart a failed job - if they don't, they can just ask a maintainer (or maintainers will do that anyway in order to get all checks green). CircleCI, on the other hand, (sometimes?) fails completely by default, so there's no way for maintainers to re-run the failed job. It's broken by design, and I don't like that.
In summary, I think it's fine if maintainers have to sign up for other services than GitHub in order to manage jobs (even though it doesn't work for me). However, normal contributors should not be required to do that.
Regarding the reasons why we use CircleCI, I don't think we will find an equivalent service, and it would probably be a lot of effort. RTD is off the table because they only have very limited infrastructure (meaning runtime limits and hardware). GHA would be an option, but it isn't easy to host the HTML artifact, and SSHing into the runner is also not possible. So maybe we can fix the issue we have with CircleCI to have the docs built even if contributors have not signed up.
bkowshik commentedon Jun 4, 2026
One option I didn't see mentioned here: separating the building from the serving. The build can stay in CI, but the built HTML could be deployed to a free static host like Cloudflare Workers, which GitHub Actions can push to in a single step — so "GHA has no way of serving the built artifact" might be sidesteppable rather than a hard blocker.
The part that appeals to me re: the contributor-experience concern is that contributors would only ever need GitHub — the Cloudflare token would live in our own CI, so there'd be no third-party signup that can fail by default.
Quite possibly you've already weighed this and I'm missing something. But if it sounds worth exploring, I'm happy to put together a small proof-of-concept to check whether it actually holds up.
mscheltienne commentedon Aug 11, 2026
On an S3 bucket + cloudfront distribution. One benefit is that you can setup the S3 bucket with lifecycle rules to automatically remove artifacts older than X. I think separating the build and the serving is definitely a good idea.
larsoner commentedon Aug 11, 2026
Yes it certainly has benefits, and is cleaner in principle. There are a couple of things to clarify regarding our current workflow when thinking about it though:
mainand PRsmain, we already serve HTML on GitHub pages (build + serve separated!). On PRs, it's served by CircleCI (built + serve jointly)In the above discussions, people have talked about maybe using GHA to build docs. In that case, would we want to migrate the build, and presumably just the PR serve to Cloudfare. In that case, we'd move to maintaining three bits of infra for our docs (GHA build, gh-pages main serve, Cloudfare PR serve) instead of two (CircleCI build, gh-pages main serve, CircleCI PR serve -- practically free from the CircleCI build step). This seems like a step backward for maintainability. And there is shared knowledge of CircleCI in mne-tools because MNE-BIDS-Pipeline uses CircleCI way more heavily than GHA because of its particular CI requirements -- so eliminating CircleCI from MNE-Python doesn't really help mne-tools maintainability at this point.
Regarding GHA-based building in particular -- we have already run into job concurrency issues / backlogs in the last months. Adding more jobs there is going to make that problem worse, not better. So having the build stay on CircleCI actually helps the project (all mne-tools projects actually) a bit. This is the same reason we continue to use Azure here even though it's a bit antiquated -- distribute CI load better.
Regarding the contributor experience part, I think if someone is well enough versed to understand a given failure in GHA without a maintainer having to point them in the right direction, odds are very good they can look at a CircleCI failure and diagnose it just as easily (the interface has similar collapsed steps, etc.), and contributors almost never touch CircleCI infra itself. The signup thing, though, seems to be a continued pain point (I don't remember many serious unresolved CircleCI-related complaints before it!). I think it's worth trying to flip the switch on CircleCI to allow unauthenticated users to build. It seems to be the biggest sticking point, and we don't 100% know we'll incur extra charges (even though they suggested we could/would).
@drammock you okay with me hitting that switch and I'll set a reminder in, say, a week and then once a month for the next few months to check CircleCI billing to make sure nothing is amiss?
drammock commentedon Aug 11, 2026
sure, go for it