Commit Graph

1117 Commits

Author SHA1 Message Date
Bryan Richter
3de34d60a0
Merge pull request #369 from menelaos/use-snapshot-everywhere
Some checks failed
CI / stack test (push) Has been cancelled
CI / flake check and push (push) Has been cancelled
biweekly cache warmup / stack test (push) Has been cancelled
Use `snapshot` instead of `resolver`
2026-04-16 17:21:53 +03:00
Andreas Schacker
67ad9faee5 Use snapshot instead of resolver 2026-04-14 13:37:39 +02:00
Bryan Richter
cf71b274a3
Merge pull request #368 from commercialhaskell/b/better-ci-cache
Some checks failed
CI / stack test (push) Has been cancelled
CI / flake check and push (push) Has been cancelled
biweekly cache warmup / stack test (push) Has been cancelled
Experiment: do I need to cache myself?
2026-04-13 13:51:26 +03:00
Bryan Richter
e224e51254
Fix more fast mistakes
When combined with the duplicate job, condition should have been
dropped.
2026-04-13 11:26:02 +03:00
Bryan Richter
baf625250f
Experiment: do I need to cache myself? 2026-04-13 11:22:19 +03:00
Bryan Richter
d931edead9
Fix copypasta 2026-04-13 11:20:31 +03:00
Bryan Richter
ee32f787b7
Revert "Experiment: do I need to cache myself?"
This reverts commit b271ebaf44.
2026-04-13 11:11:41 +03:00
Bryan Richter
b271ebaf44
Experiment: do I need to cache myself? 2026-04-13 10:59:01 +03:00
Bryan Richter
08d08c472f
Merge pull request #367 from commercialhaskell/b/cache-warmup
CI cache warmup
2026-04-13 10:35:19 +03:00
Bryan Richter
29cee69f8a
Make the reusable workflow a reusable action 2026-04-13 10:21:49 +03:00
Bryan Richter
a4e934b5e2
Automate action updates 2026-04-13 09:39:15 +03:00
Bryan Richter
536f0311cf
Clean up unneeded flake-check duplication
The cachix action already only pushes from protected branches, based on
the presence of the auth token.
2026-04-13 09:37:16 +03:00
Bryan Richter
e9456a0e30
Run stack-test regularly to keep cache warm 2026-04-13 09:36:45 +03:00
Bryan Richter
6e6ec93006
Merge pull request #366 from commercialhaskell/b/revert-api-break
Re-enable Accept-varying content for /snapshots
2026-04-13 09:29:37 +03:00
Bryan Richter
51c2939880
Re-enable Accept-varying content for /snapshots
Fixes https://github.com/commercialhaskell/stackage-server/issues/365
2026-04-13 09:02:03 +03:00
Bryan Richter
e84c1a82be
Try to cache stack and ghc install
Some checks failed
check and push / stack test (push) Has been cancelled
check and push / flake check (no push) (push) Has been cancelled
check and push / flake check and push (push) Has been cancelled
2026-02-13 10:41:05 +02:00
Bryan Richter
33ca535e17
Fall back to previous cache key 2026-02-13 10:29:07 +02:00
Bryan Richter
4c42c3b913
Generalize cache key to just follow stack.yaml 2026-02-13 10:10:10 +02:00
Bryan Richter
c9c601ab6e
Cancel earlier pipelines
Why this isn't a default is beyond me.
2026-02-13 10:05:37 +02:00
Bryan Richter
851323f3b4
Add a justfile 2026-02-13 10:03:36 +02:00
Bryan Richter
c4b2b4095e
Fix copypasta 2026-02-13 10:00:34 +02:00
Bryan Richter
cd11e992bd
Merge pull request #362 from commercialhaskell/b/update-cabal
Update LTS; get Cabal-3.12
2026-02-13 09:55:41 +02:00
Bryan Richter
c31c0f9669
Reconfigure caching
Caching .stack-work seems sketchy -- I'd rather have a full build of the
local project each time.

~/.ghcup, on the other hand, is the toolchain and seems like a good
cache candidate.
2026-02-12 22:01:25 +02:00
Bryan Richter
4c8835e5ad
Fix broken stack build
See comment in stack.yaml.

Finally, a mystery is solved.
2026-02-12 21:20:14 +02:00
Bryan Richter
d9ef4c726a
Use ghcup to get stack and ghc 2026-02-12 14:49:34 +02:00
Bryan Richter
720f6af78d
Add flake check and push 2026-02-12 14:36:46 +02:00
Bryan Richter
8c9e35c8ba
Refresh generated packages 2026-02-12 14:19:45 +02:00
Bryan Richter
b88bf9ea14
Update lts and amazonka, jailbreak barrier 2026-02-12 14:19:45 +02:00
Bryan Richter
51592009a1
Nix integration cleanup
Some checks failed
build / Haskell GHC (push) Has been cancelled
Keep the shell used by Stack defined in one place.
2025-11-20 20:12:21 +02:00
Bryan Richter
1a4328b7d9
Default rtsopts tweaks
-T as a default is odd -- let's do that at runtime.
-O2 is usually not what you want.
2025-11-20 19:16:01 +02:00
Bryan Richter
4099ddf87e
Merge pull request #356 from commercialhaskell/bryan/split-SnapshotsR
Split out SnapshotsR API
2025-07-10 11:14:19 +03:00
Bryan Richter
a3dd2c7389
Add yesod to dev shell 2025-07-10 09:53:18 +03:00
Bryan Richter
10c9d8364d
Split JSON API out of /snapshots
Fixes #355
2025-07-10 09:52:25 +03:00
Bryan Richter
f5dac7092f
Accept snapshot branches at /api/v1/snapshot 2025-06-19 10:34:15 +03:00
Bryan Richter
a2cc25d6f0
Add /api/v1/snapshot 2025-06-17 16:23:45 +03:00
Jens Petersen
ba3aa93423 diff: add links to snapshots
This makes the names of the two snapshots be links to their pages
2025-06-17 15:04:21 +03:00
Bryan Richter
810e0f3253
Warn and continue if orig.tar is 404 2025-03-18 14:47:23 +02:00
Bryan Richter
cbe4038c12
Don't error if hoogle inputs are missing 2025-03-18 14:01:29 +02:00
Bryan Richter
9523039dee
Make logs a little quieter 2025-03-18 14:00:59 +02:00
Bryan Richter
0205d03302
Add a nix shell 2025-03-18 13:59:53 +02:00
Bryan Richter
a384248d68
Merge pull request #343 from commercialhaskell/b/disk-cleanup
Post Hoogle generation disk cleanup
2025-03-18 10:45:03 +02:00
Bryan Richter
6771516cec
Remove stray temp file 2025-02-27 15:14:27 +02:00
Bryan Richter
c344ce21ce
Use non-permanent temp dir for intermediate files
This commit also removes some extraneous error checking in favor of just
crashing if things go wrong.
2025-02-27 15:05:44 +02:00
Bryan Richter
672099d68e
Document more stackage-server-cron steps 2025-02-27 15:05:44 +02:00
Bryan Richter
608cf0f4f6
Remove scary "handleAny"
Simply let the process die on exception. It's a one-shot process that
gets run on a timer, anyway.
2025-02-27 15:05:44 +02:00
Bryan Richter
885dd2a01e
Drop unused subdirectory 2025-02-27 15:05:44 +02:00
Bryan Richter
66c5361458
Document more learnings 2025-02-27 15:05:44 +02:00
Bryan Richter
d0eba4e31e
Add a warning when NoSnapshotFile 2025-02-27 15:05:44 +02:00
Bryan Richter
6bf160f210
Refactor decideOnSnapshotUpdate for understanding
Putting this in a separate commit since I'm actually refactoring code
rather than just changing names.
2025-02-27 15:05:44 +02:00
Bryan Richter
935a5012fe
Use names and Haddocks to improve understanding 2025-02-27 15:05:43 +02:00