Skip to content

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

Merged
roberth merged 2 commits intoNixOS:masterfrom
Mic92:installer-test
Dec 16, 2024
Merged

installer: make sure we can always test the installer in ci and locally#12059
roberth merged 2 commits intoNixOS:masterfrom
Mic92:installer-test

Conversation

@Mic92
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

roberth commented Dec 16, 2024

Related

@nixos-discourse
Copy link
Copy Markdown

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
Mic92 added a commit that referenced this pull request Jan 6, 2025
…2059

installer: make sure we can always test the installer in ci and locally (backport #12059)
Mic92 added a commit that referenced this pull request Jan 6, 2025
…2059

installer: make sure we can always test the installer in ci and locally (backport #12059)
@roberth roberth added automatic backport This PR is a backport produced by automation (does not trigger backporting) and removed automatic backport This PR is a backport produced by automation (does not trigger backporting) labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants