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

CI job to ensure flake works #2026

Closed
teto opened this issue Jul 19, 2021 · 2 comments
Closed

CI job to ensure flake works #2026

teto opened this issue Jul 19, 2021 · 2 comments
Labels
CI Continuous integration os: nixos type: enhancement New feature or request

Comments

@teto
Copy link
Contributor

teto commented Jul 19, 2021

Right now (on c78363f ) the flake doesn't build because of :

haskell-language-server on  master 
➜ nix build
note: keeping build directory '/tmp/nix-build-ghcide-1.4.0.3.drv-2'
error: builder for '/nix/store/67syxhr6zablyh11gnfsysm3jy2mqjy1-ghcide-1.4.0.3.drv' failed with exit code 1;
       last 10 log lines:
       >   $, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:1024:20 in Cabal-3.2.1.0:Distribution.Simple.Configure
       >   configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:477:12 in Cabal-3.2.1.0:Distribution.Simple.Configure
       >   configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:625:20 in Cabal-3.2.1.0:Distribution.Simple
       >   confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:65:5 in Cabal-3.2.1.0:Distribution.Simple.UserHooks
       >   configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:180:19 in Cabal-3.2.1.0:Distribution.Simple
       >   defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:116:27 in Cabal-3.2.1.0:Distribution.Simple
       >   defaultMain, called at /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs:2:8 in main:Main
       > Setup: Encountered missing or private dependencies:
       > implicit-hie-cradle >=0.3.0.5 && <0.4
       >
       For full logs, run 'nix log /nix/store/67syxhr6zablyh11gnfsysm3jy2mqjy1-ghcide-1.4.0.3.drv'.

Would be nice to prevent changes that break it or mark it as broken. There seems to be a CI job for it but it was skipped on the PRs I've looked at.

@jneira jneira added CI Continuous integration type: enhancement New feature or request os: nixos labels Jul 19, 2021
@berberman
Copy link
Collaborator

The current behaviour is somewhat intended:

# Build and then push HLS binaries with developmet shell to cachix
# This job runs when
# 1. PRs are merged to master (runs on master)
# 2. Nix files are changed (runs on PR)

The status of job Nix/build is not required for merging a PR. Why? For a PR that updates one dependency, e.g. #2020, the contributor needs update:

  1. package description (.cabal) file
  2. cabal project (.project) file
  3. stack hpack files for each GHC version we have

since we are maintaining multiple installation methods. Every Haskell programmer should know cabal-install and stack imo, because they are kind of "standard" build tools. However, it would be too annoying to let non-nix users cope with nix specified issues. Maintaining each distribution way requires lots of efforts, so I think nix flake here is a less important bonus, compared with cabal-install and stack, and should never block the merge of PRs. Contributions like #2030 are always welcome.

@teto
Copy link
Contributor Author

teto commented Jul 22, 2021

I get it, the flake is nice to have but not central to development 👍
Thanks for the answer.

I wonder if there could be a nix service that keeps that last revision that worked for the flake. like git bisect but for to find the last revision that flake.nix succeeded to build (pipedream).

@teto teto closed this as completed Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration os: nixos type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants