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

installer: make sure we can always test the installer in ci and locally #12059

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Dec 14, 2024

Just now there is a dependency on cachix, which means we cannot test the installer in CI if forks do not have the necessary secrets set up. We replace this with a simple http server that serves the installer and can be both used in CI and locally.

Another nice side effect is that now every pull request has a downloadable installer: https://github.com/NixOS/nix/actions/runs/12340760590

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@Mic92 Mic92 requested a review from edolstra as a code owner December 14, 2024 17:24
@Mic92 Mic92 marked this pull request as draft December 14, 2024 22:05
@Mic92 Mic92 force-pushed the installer-test branch 15 times, most recently from 346a437 to 6d5cf02 Compare December 15, 2024 17:01
Just now there is a dependency on cachix, which means we cannot test
the installer in CI if forks do not have the necessary secrets set up.
We replace this with a simple http server that serves the installer and
can be both used in CI and locally.
@Mic92 Mic92 marked this pull request as ready for review December 15, 2024 17:26
@Mic92
Copy link
Member Author

Mic92 commented Dec 15, 2024

When merging this test, please also update "Required checks" in the github settings, as the installer test is now a build matrix.

pid=$!

while ! curl -s "http://localhost:$PORT"; do
sleep 1
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
sleep 1
sleep 0.1

@roberth
Copy link
Member

roberth commented Dec 16, 2024

Related

@roberth roberth merged commit 18770c7 into NixOS:master Dec 16, 2024
13 checks passed
@roberth roberth added backport 2.24-maintenance Automatically creates a PR against the branch backport 2.25-maintenance Automatically creates a PR against the branch labels Dec 16, 2024
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-12-16-nix-team-meeting-minutes-203/57483/1

@Mic92 Mic92 deleted the installer-test branch December 16, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.24-maintenance Automatically creates a PR against the branch backport 2.25-maintenance Automatically creates a PR against the branch
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants