Commit graph

93 commits

Author SHA1 Message Date
Dennis Gosnell 6f41cccb9e
haskell: don't pin stack to version in LTS, but take the latest from hackage 2023-07-26 11:09:53 +09:00
Theodore Ni ac69020750
treewide: remove unused nix-prefetch-github from shebangs 2023-07-18 18:16:17 -07:00
sternenseemann 6dcc0ab9b5 maintainers/haskell/merge-and-open-pr: only push haskell-updates
If we want to push only one branch, we'll have to specify branch and
remote explicitly. Pushing to origin doesn't work for everyone, since
some of us have a origin remote that can't be pushed to. Using plain
`git push` has the problem that it'll try pushing all checked out
branchs which fails e.g. if some branches (staging, staging-next, …) are
behind their remote counterparts.

The solution is to require everyone to configure a per branch pushRemote
for haskell-updates which will then be used by merge-and-open-pr.sh.
2023-05-19 16:33:56 +02:00
maralorn ef41eed24f maintainers/scripts/haskell/*transitive-broken*: Fix an error message 2023-05-02 12:07:16 +02:00
maralorn 05e9a22322 maintainers/scripts/haskell/regenerate-transitive-broken-packages.sh: Make more robust against eval errors 2023-05-01 02:36:37 +02:00
maralorn 1cfb18d793 maintainers/scripts/haskell/merge-and-open-pr.sh: Pass --fast to regeneration script 2023-05-01 02:23:54 +02:00
maralorn e4b66fa1a1 maintainers/scripts/haskell: Integrate transitive-broken into regeneration script 2023-04-23 10:47:36 +02:00
sternenseemann b79286ea28 maintainers/haskell/upload-package-list: support 3.10 config dir
cabal-install 3.10 has some quirky new logic for config, cache, …
directory discovery. We reimplement this in this simple bash script,
additionally respecting the CABAL_DIR environment variable.
2023-04-14 18:35:33 +02:00
sternenseemann 35c00c639a haskellPackages.hackage-db: 2.1.2 -> 2.1.3
This update adds support for $CABAL_DIR as well as the new
$XDG_CACHE_HOME location of the hackage db.

Since we maintain hackage-db, having the latest version always is nice
even though it has more reverse dependencies than the other libraries we
maintain.
2023-04-13 14:13:40 +02:00
maralorn 632d358c64 maintainers/scripts/haskell: Add reference to manual to PR template 2023-04-08 00:24:31 +02:00
Ellie Hermaszewska d7c630ca17
maintainers/haskell/update-stackage.sh: Strip out with-compiler from stackage config
It was previously just being inserted alphabetically into the list
2023-04-05 15:21:47 +08:00
Dennis Gosnell 35295aed71
haskellPackages: in hydra-report.hs, split Linux and Darwin build failures
This commit changes hydra-report.hs to split up Linux and Darwin build
failures into two different sections.  Darwin failures are hidden by
default.
2023-03-26 18:10:08 +09:00
Dennis Gosnell bd9bb50ad2
haskellPackages: remove error about outstanding jobs on aarch64-darwin in hydra-report.hs 2023-03-26 18:08:30 +09:00
Dennis Gosnell 19b5676361
haskellPackages: add newtype for PkgName and PkgSet in hydra-report.hs
Add a newtype for a package name and a package set.  This is less for
correctness, and more just to make the code a little easier to read
through without having to keep in mind what each Text refers to.
2023-03-25 23:00:56 +09:00
Dennis Gosnell b2af201c0e
haskellPackages: add newtype for JobName in hydra-report.hs
This commits changes the `job` field in `Build` to a newtype.  This is
mostly just to have a place to document exactly what a job name consists
of.
2023-03-25 19:24:13 +09:00
Dennis Gosnell 28f22d86d7
haskellPackages: slight refactoring of hydra-report.hs 2023-03-25 18:21:55 +09:00
Dennis Gosnell c574a8c37e
haskellPackages: add a little documentation to hydra-report.hs 2023-03-25 17:44:26 +09:00
Dennis Gosnell 265a3a3b15
haskellPackages: add types and some formatting to hydra-report.hs 2023-03-24 20:55:52 +09:00
Dennis Gosnell 3aea75b8fc
haskellPackages: fix indentiation in hydra-report.hs 2023-03-24 20:26:01 +09:00
Bernardo Meurer 6e55733359
Merge pull request #219747 from Stunkymonkey/deprecate-isNull 2023-03-16 11:10:22 -03:00
sternenseemann 100d887968 release-haskell.nix: add aarch64-darwin
nixpkgs:trunk also builds aarch64-darwin these days, so this forces our
hand a little bit. We can still refuse to care about failures _too_
much, but at least we will stop merging as big a rebuilds as we are
currently.
2023-03-10 14:43:00 +01:00
Felix Buehler d10e69c86b treewide: deprecate isNull
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
2023-03-06 22:40:04 +01:00
maralorn 0debf1453d maintainers/scripts/haskell/hydra-report: Add comments with error causes to broken list 2023-02-20 00:36:43 +01:00
sternenseemann b7e41b825e maintainers/haskell: generate core-pkgs hackage2nix configuration
`ghc-pkg list` tells us everything hackage2nix needs to know. In the
past the core-packages list and compiler setting in hackage2nix was
maintained manually which inevitably leads to it being forgot once in a
while – this will then mess with flag resolution when generating the
package set in some cases. Luckily, we can just let a simple derivation
do this for us.

Resolves #202621.
2023-02-19 19:52:17 +01:00
Ingo Blechschmidt 168d9a5f1e agda: 2.6.2.2 -> 2.6.3 2023-02-14 14:45:39 +01:00
sternenseemann 3dfbe2b6a3 maintainers/haskell/test-configurations.nix: support ghcHEAD
Since we now have a versioned configuration-ghc-*.nix file for GHC HEAD,
we don't need to add a super special case to the package set logic in
test-configurations.nix anymore. We can just create a versioned
attribute for the ghcHEAD package set (which is not exposed) and keep
using the normal discovery logic.

The only tricky bit is that GHC HEAD's configuration file is named after
the GHC release that will be branched off from it, so a little bit of
arithmetic is involved.
2023-02-13 14:42:03 +01:00
Dennis Gosnell 4be2c3acd5
haskellPackages: ignore maintainers without email
The Haskell Hydra report generator
(`maintainers/scripts/haskell/hydra-report.hs`) uses this
`maintainer-handles.nix` script for generating a mapping of email
addresses to GitHub handles.

This `maintainer-handles.nix` script is necessary because the Haskell
Hydra report generator gets Hydra job status info as input, but needs to
ping users on GitHub.  Hydra job status info only contains user emails (not
GitHub handles).  So the `maintainer-handles.nix` script is necessary
for looking up GitHub handles from email addresses.

This commit fixes the `maintainers-handles.nix` code to ignore
maintainers that don't have email addresses.  The code was originally
assuming that all maintainers have email addresses, but there was
recently a maintainer added without an email address.
2023-01-30 08:27:03 +09:00
maralorn a8fa46a964 maintainers/../haskell/mark-broken: Insert eval info in commit msg 2023-01-10 00:49:56 +01:00
maralorn 931fef04f9
Merge pull request #207764 from qowoz/shellcheck
shellcheck: add override for newer version
2022-12-29 15:44:15 +01:00
zowoq 232b508059 haskellPackages.ShellCheck: unpin 2022-12-28 10:42:13 +10:00
Andy e677218d32
Haskell: Fix dead link in report 2022-12-27 14:59:25 +01:00
Naïm Favier 755d5259c7
maintainers/scripts/haskell: fix regenerate-transitive-broken
- use `restrict-eval` so that we're not affected by the user's environment
- use jq instead of the horrible echo+sed hack

The second point also fixes the indentation before each line to be two
spaces instead of one, so I set it back to one space to avoid a diff.
2022-12-24 13:38:34 +01:00
sternenseemann ff920c5f7b haskellPackages.cabal2nix-unstable: 2022-07-22 -> 2022-10-10 2022-10-12 14:51:01 +02:00
maralorn 7c2fda45cc haskell-language-server: 1.7.0.0 -> 1.8.0.0 2022-09-21 05:23:07 +02:00
Malte Brandy f6333fe939 maintainers/scripts/haskell/hydra-report: fix capitalisation 2022-08-02 10:22:56 +02:00
Malte Brandy b4d1872885 maintainers/scripts/haskell/hydra-report: Add hint about eval errors 2022-07-22 00:26:52 +02:00
Malte Brandy 5c42976597 maintainers/scripts/haskell/hydra-report.hs: remove redundant pragmas 2022-05-20 21:41:30 +02:00
Malte Brandy cb20a40177 maintainers/scripts/haskell/hydra-report.hs: fix outdated hydra-unstable reference 2022-05-20 21:27:31 +02:00
Rick van Schijndel 3a7f7c1153 hydra-unstable -> hydra_unstable 2022-05-10 23:32:02 +02:00
Dennis Gosnell 2e8743b8e5
haskell: update link to calendar for maintainer rotation 2022-04-05 09:16:20 +09:00
Malte Brandy fa552e76e6 maintainers/scripts/haskell: add script to find broken maintained packages 2022-03-23 13:03:31 +01:00
sternenseemann 9b8dfcd9bf haskellPackages: stackage Nightly 2022-03-17 -> LTS 19.0
This commit has been generated by maintainers/scripts/haskell/update-stackage.sh
2022-03-20 11:11:10 +01:00
sternenseemann 57b1c86e74 maintainers/haskell/update-stackage.sh: always mktemp for tmp files
In theory, another program would be free to create "$tmpfile.new".
2022-03-20 11:09:58 +01:00
sternenseemann cd0ddefb43 maintainers/haskell/update-stackage.sh: make shellcheck happy
* Annotate shell type
* Make trap expansion safer
2022-03-20 11:09:38 +01:00
sternenseemann 22ced213c0 maintainers/haskell/update-stackage.sh: make solver configurable
Accept either Nightly or LTS as the solver configuration variable in the
script. The Stackage version is now considered a tuple of solver and
version, allowing the script to handle updates and switches between
solvers gracefully.

Tested updating Nightly and updating from Nightly to LTS.
2022-03-20 11:02:58 +01:00
sternenseemann f5c34205ad Merge remote-tracking branch 'origin/master' into haskell-updates 2022-03-11 16:47:23 +01:00
Profpatsch a23d59e2ed regenerate-hackage-packages.sh: use runCommandLocal
Running tar will not benefit from running on a builder (it’s mostly
I/O load and cannot be parallelized), and the network will dominate.
2022-03-11 14:32:36 +01:00
sternenseemann f10a7e5a3b haskellPackages.cabal-install: ignore stackage bound
We have generally shipped the latest cabal-install version. Stackage has
re-added cabal-install recently which caused cabal-install to get
downgraded to 3.4 to match the Cabal version shipped by GHC 9.0.2. This
commit reverts that change.
2022-02-27 11:47:32 +01:00
sternenseemann b5489b75ee haskellPackages: Stackage LTS 18.25 -> Stackage Nightly 2022-02-07 2022-02-18 18:24:22 +01:00
sternenseemann 90a8618c03 maintainers/scripts/test-configuration.nix: improve overlay call
configuration-nix.nix uses builtins.intersectAttrs to not any overrides
for packages not present in `super` (presumably for use outside of
nixpkgs?). To accomodate it, we pass an attribute set with every
attribute of haskellPackages, but set to `null` as `super`, and — while
we're at it — a fix point as `self`.
2021-12-15 17:23:04 +01:00