Commit Graph

844 Commits

Author SHA1 Message Date
Alexey Kuleshevich
f5e147ab97
Integration with Pantry and usage of new stackage-snapshots:
* Moved all extensions into modules that are using them, rather than globally,
  since they mess up ghci session and introduce conflicts among
  packages. Removed those from `.ghci` file as well
* Redesigned the schema to use Pantry and moved it into it's own module
* Switched all of the db and cron related stuff to RIO. Yesod part is
  still on classy-prelude
* Got pantry to update stackage-server database from hackage
* Got import of stackage-snapshots implemented
* Moved some logic from all-cabal-tool
* Switched everything to `PackageNameP`, `VersionP`, etc. from a la Text.
* Fixed haddock, so it now does proper redirects and pipes the docs
  correctly. Also implemented piping of json files from S3 bucket,
  so index-doc.json is also served by stackage-server thus making
  Ctrl+S feature work properly on haddock. Fix for commercialhaskell/stackage#4301
* Import of modules is done through cabal file parsing, which slows
  down the initial import process drastically, but incremental update
  is not a problem.
* Just as with modules, dependencies are also imported from cabal file.
* In general improved type safety by introducing a few data types:
  eg. `ModuleNameP`, `HackageCabalInfo`, and many more.
* Implemented pulling of deprecation map from hackages and storing it in db
* Implementation of forward/backward dependencies within a snapshot only.
* Drastically improved performance of cron import job, by checking which
  snapshots are not up to date
* Implemented pulling haddock list from S3 bucket. Modules that have
  documentation are marked from the availability of actual haddock. This
  process happens concurrently with snapshots loading.
* Rearranged modules a bit:
  * github related functions went into it's own module
  * cron related functions where moved from Database to Cron module
  * Split up some functions to reduce individual complexity
* Parallelized package loading in cron job
* Implemented parsed cabal file caching.
* All queries where reqritten with esqueleto
* Syntactic improvements:
  * Added stylish-haskell config
  * Formatted all imports and extensions with stylish-haskell.
  * Fixed inconsistent indentation across all modules
* Many improvements to the package page as well as few others.
* Reimplemented hoogledb creation.
* Dropped dependency on tar in favor of tar-conduit
* Added cli for stackage-server-cron
* Add cabal sha and size to the package page
* Fixed links in hoogle searches. Improved type safety for a hoogle handler
* satckage-server-cron is customizable with cli arguments

Final adjustments for the new stackage server release:

* Upgrade to lts-13.16.
* Stackage server related code has been merged to pantry. Made the code
  compatible with the newer version pantry
* Added cli '--snapshots-repo'
* Add readme to package page
* Adjust snapshots expected format:
  * Added `publish-time`
  * Removed name `field`
  * `compiler` field is now in the `resolver` field with fallback to
    the root
2019-04-30 17:10:33 +03:00
Michael Snoyman
83117bd409
Move to Azure 2019-04-30 16:28:42 +03:00
Deni Bertovic
e7d8a08442 Adds explicit redirect to www 2019-03-27 15:25:40 +01:00
Deni Bertovic
0eac4c309b Sets APPROOT to www.stackage.org for prod 2019-03-26 16:15:32 +01:00
Deni Bertovic
f1e3a8bb23 Adds note about ingress domain order 2019-03-17 20:00:24 +01:00
Deni Bertovic
7b7b1470e6 Adds www subdomain to list of hosts in ingress 2019-03-17 19:46:21 +01:00
Deni Bertovic
3f5c5e8647
Merge pull request #263 from fpco/production-deployment
review-apps: Update gitlab-ci.yml to deploy helm production chart
2019-03-17 17:40:27 +01:00
Deni Bertovic
254ce236b2 Enable cron 2019-03-17 17:38:45 +01:00
Deni Bertovic
52a638def3 Merge branch 'master' into production-deployment 2019-03-17 17:09:24 +01:00
Deni Bertovic
82d9f97586 Temporarily set deployment to manual 2019-02-26 20:07:37 +01:00
Paul Montero
bd9aebc5fe
Updates for production deployment: gitlab-ci.yaml, values, disable cron service 2019-02-26 13:22:06 -05:00
Michael Snoyman
3d549adfaf
Merge pull request #265 from fpco/haskell-lang-rename
Haskell lang rename
2019-02-26 17:02:09 +02:00
Dan Burton
e5ab3e263c
haskell-lang -> haskell.fpcomplete 2019-02-25 21:17:17 -05:00
Dan Burton
809ca83b0a
Bump to lts-13.9 2019-02-25 20:29:58 -05:00
Michael Snoyman
68b7e4079c
Merge pull request #262 from nh2/homepage-details
homepage: Add more details about Stackage.
2019-02-14 05:23:27 +02:00
Paul Montero
96dc7647fc
review-apps: Update gitlab-ci.yml to deploy helm production chart 2019-02-11 13:34:43 -05:00
Niklas Hambüchen
a18d182bf9 homepage: Add more details about Stackage.
In particular, highlight that Stackage is a community project,
explain how it relates to Hackage,
set expectations on how it's maintained and moves forward,
and add credits for development and maintenance sponsorship.
2019-02-11 16:01:17 +01:00
Michael Snoyman
276f4f7f04
Merge pull request #261 from fpco/helm-chart
Setup Helm chart for deployment instead of kube config
2019-02-04 18:00:09 +02:00
Deni Bertovic
c4e2dd6603 Fixes environment name
now it aligns with the values file name
2019-01-21 18:41:27 +01:00
Deni Bertovic
b55da8c55a Fixes helm permission issues 2019-01-21 18:33:39 +01:00
Paul Montero
83e1871e0f
review-apps: Configure helm for the CI deployment 2019-01-14 09:51:54 -05:00
Paul Montero
3608a9d2b1
deployment: migrate Kube conf to helm charts 2018-12-30 14:28:59 -05:00
Michael Snoyman
40e551a6f2
Don't overpopulate the Schema table 2018-12-19 08:55:09 +02:00
Emanuel Borsboom
4f91ac6c73
Merge pull request #258 from fpco/feature/add-ingress
Adds ingress and fixes CI deployment
2018-10-14 05:34:43 -07:00
Deni Bertovic
91dfb99a6e Don't deploy ingress for prod deploys 2018-10-12 17:17:29 +02:00
Deni Bertovic
cca49c10b8 Route ingress hoogle traffic to separate service 2018-10-12 17:14:45 +02:00
Deni Bertovic
0afe4a7ab5 Adds ingress and fixes CI deployment 2018-10-02 18:44:14 +02:00
Michael Snoyman
e0661a0ada
Merge pull request #257 from psibi/local-installation
Support for local installation of stackage-server
2018-08-26 08:30:46 +03:00
Sibi Prabakaran
f037a18415
Make it more clear 2018-08-25 23:49:43 +05:30
Sibi Prabakaran
709a194621
Cleanup 2018-08-25 23:48:30 +05:30
Sibi Prabakaran
79a8cc7044
Update README 2018-08-25 23:42:52 +05:30
Sibi Prabakaran
d6e39d96b8
Update README 2018-08-25 22:14:40 +05:30
Sibi Prabakaran
6498a6365e
Update README 2018-08-25 22:13:26 +05:30
Sibi Prabakaran
9ea91909c2
Add CPP flags 2018-08-25 22:13:09 +05:30
Sibi Prabakaran
62944018d8
Add dev flags to both the executables 2018-08-25 22:12:31 +05:30
Michael Snoyman
64c1f9519e
Navbar link to blog 2018-07-02 07:26:29 +03:00
Michael Snoyman
b81f5b790b
Merge pull request #256 from juhp/patch-1
Add link to blog
2018-07-01 19:00:41 +03:00
Jens Petersen
e032263580
Add link to blog 2018-07-02 00:37:42 +09:00
Michael Snoyman
fcca891217
Newer githash/yesod-gitrev 2018-06-25 18:49:10 +03:00
Michael Snoyman
86d13e8da6
Don't use Haddock 2018-06-25 13:07:32 +03:00
Michael Snoyman
760b356c0c
Use yesod-gitrev and githash 2018-06-25 12:35:42 +03:00
Michael Snoyman
96e9a53a17
Remove system-file(path/io) 2018-06-21 19:30:48 +03:00
Michael Snoyman
014114855b
Switch to cmark-gfm 2018-06-21 19:19:41 +03:00
Michael Snoyman
77b0b3b396
Drop dependency on stackage-curator 2018-06-21 18:52:45 +03:00
Michael Snoyman
856ac728b4
Fix warnings 2018-06-21 17:51:47 +03:00
Michael Snoyman
fe20a6d825
Remove unneeded deps 2018-06-21 17:32:59 +03:00
Michael Snoyman
cf14304ee3
Upgrade snapshots 2018-06-21 17:26:58 +03:00
Michael Snoyman
f8aa5bc4de Error out on no packages 2018-06-05 13:40:23 -06:00
Michael Snoyman
c8c8b971ce Remove the doc bundle (no longer being generated) 2018-06-05 11:57:23 -06:00
Michael Snoyman
75ad28ab56
Add missing template file 2018-04-29 10:46:03 +03:00