Skip to content
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

Where could we run nixpkgs-swh? #445

Open
nlewo opened this issue Feb 22, 2023 · 6 comments
Open

Where could we run nixpkgs-swh? #445

nlewo opened this issue Feb 22, 2023 · 6 comments

Comments

@nlewo
Copy link
Member

nlewo commented Feb 22, 2023

Until recently, the nixpkgs-swh script was executed every day by a buildkite agent. However, this agent no longer exists.

Would it be possible to run a daily systemd cron jobs?
Since it evaluates the whole nixpkgs repository, it takes a bit of time (about 20min on my laptop i guess).
Moreover, we would need to expose the generated JSON file. We would then have to spawn a nginx server to serve it. Note this file doesn't strictly need to be persisted since it is generated each day.

Note that using hydra.nix-community.org seems to be difficult because the script calls hydra.nixos.org to get latest evaluated nixpkgs commits.

WDYT?

@zowoq
Copy link
Contributor

zowoq commented Feb 23, 2023

Would it be possible to run a daily systemd cron jobs?

Sounds okay.

Moreover, we would need to expose the generated JSON file. We would then have to spawn a nginx server to serve it. Note this file doesn't strictly need to be persisted since it is generated each day.

Skimming though the scripts in https://github.com/nix-community/nixpkgs-swh, looks like could also serve the analysis from nginx and drop the github pages publish steps?

@nlewo
Copy link
Member Author

nlewo commented Feb 23, 2023

Sounds okay.

Cool! I will start working on it then.

Skimming though the scripts in https://github.com/nix-community/nixpkgs-swh, looks like could also serve the analysis from nginx and drop the github pages publish steps?

Yes, that was included in my plan :)

@zowoq
Copy link
Contributor

zowoq commented Feb 23, 2023

Just curious, is this going to be running here indefinitely?

@nlewo
Copy link
Member Author

nlewo commented Feb 23, 2023

@zowoq yes, i don't have any other plan (and i don't have too much time to spend on this project atm for a bigger move).

@zowoq
Copy link
Contributor

zowoq commented Jun 16, 2023

@nlewo The nixos org infra team was recently split and expanded to better handle running this sort of thing, I'd suggest opening an issue in nixos-org-configurations to see if there is any interest in running it on official infra, might also find some people willing to work on implementing it given the recent s3 cache problems.

NixOS/foundation#79 (comment)
Edit: actually, the more significant problem that I see is that people tend to host things left and right, and then the NixOS project starts becoming dependent on those single-deployer services. Eg: I use https://nixpk.gs/ quite a bit. In order to combat this, the best is to have a common infrastructure where it's relatively easy to deploy onto.

cc @zimbatm

@zimbatm
Copy link
Member

zimbatm commented Jun 17, 2023

It's going to take a while for the infra team to scale up. Most of the focus will probably be on the core for a while.

If you're up for hosting the service here that's fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants