NixOS / nix.dev

Official documentation for getting things done with Nix.

Home Page:https://nix.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare build/deployment failures following flake-ification

yukiisbored opened this issue · comments

Observations
Cloudflare builds has started failing post c3c97f8.

See the following:

Problem

Cloudflare builds are failing for some reason. I cannot consult the build logs as it is behind Cloudflare.

Approaches

Willing to help?

I'm able to move the deployment process to GitHub actions once the automated Cloudflare deployment is disabled.

Priorities

Add 👍 to issues you find important.

Couple of examples of the site not updating. as of writing:

@NixOS/infra Could you please pull the build logs from Cloudflare Pages so we can fix the build failure? Thanks.

@yukiisbored taking this over on the infra side of things. Sorry for the latency, the people who have time didn't have the access (now fixed), the people who have the access don't have time :)

Is there any special attachment to Cloudflare pages for nix.dev? ~all of the static websites for Nix are currently using Netlify (e.g. nixos.org, search.nixos.org, etc.) and if possible I'd like to avoid fragmenting this further. If there are good reasons to stay on Cloudflare Pages ofc then I'll see how we can make this work.

No reason that binds us to Cloudflare. All we need is to dump a file system tree to be served.

Alright, then unless someone objects I'll try to replicate the search.nixos.org setup, aka. build + deploy to Netlify via a GH Action (which should allow you to do whatever you want build-wise, incl. via Nix, incl. using stuff like Cachix), as well as PR previews.

I'll set that up on a staging domain for now, then once everything seems to be working there we can figure out how to switch nix.dev to point to Netlify.

https://nix-dev-staging.nixos.org/ can you check that everything seems to be as expected?

@delroth looks good, thanks for the quick help!

This can be closed - master pushes now get properly pushed to nix.dev.

Note that there is still an issue with pull request previews, it needs to be fixed by someone who has admin rights on the repo. @zimbatm has already been informed, but if someone else happens to have admin rights, ping me on Matrix and I can tell you the setting that needs to be flipped.

@delroth Could you or someone else who has access to Cloudflare disable the Cloudflare page? It marks the commits as failing. Example: 3f5c86d

Cleared out Cloudflare, the account is now completely empty.