Commit Graph

858 Commits

Author SHA1 Message Date
Alexey Kuleshevich
3d426e1e9d
Fix the query for selecting the newest package version. Related to 07f3ef293f 2019-06-26 14:06:48 +03:00
Alexey Kuleshevich
78b019a915
Fix missing "Latest on Hackage" for packages from global-hints 2019-06-26 12:21:01 +03:00
Alexey Kuleshevich
d9a285a87f
Fix memory leak during stackage cron job when caching is enabled 2019-06-26 12:15:23 +03:00
Deni Bertovic
8ae7dc234a
Bumps build image
We need a newer version of helm
2019-06-20 14:10:12 +02:00
Deni Bertovic
f909a18e83
Merge pull request #267 from fpco/healthz-as-middleware
healthz is a middleware
2019-06-20 14:08:34 +02:00
Michael Snoyman
07f3ef293f
Cast text[] to integer[] for version comparison 2019-06-20 10:12:54 +03:00
Michael Snoyman
0eea4ca99a
healthz is a middleware 2019-06-19 12:07:08 +03:00
Deni Bertovic
98d0d61958 Adds /healthz endpoint
And points k8s readiness and liveness probes on it
2019-06-18 10:11:43 +02:00
Deni Bertovic
82f363c24a
Increase timeoutSeconds
This is a temporary fix for the k8s restarts
2019-06-18 09:38:07 +02:00
Deni Bertovic
d2ee4f0f13
Temporary switch to new k8s secrets name
This is needed to we can easily migrate to the new db with the
recent pantry changes. If something goes wrong we can simply revert to
the old secret (and hence the old db).

Once the upgrade is done (and verified) we can update the old secret and
update the name in this commit (back to it's original name)
2019-06-17 15:21:59 +02:00
Michael Snoyman
3a97473118
Add a missing update 2019-05-26 13:15:09 +03:00
Alexey Kuleshevich
13ec0dec3f
Merge branch 'switch-to-pantry' into ci 2019-05-25 23:29:32 +03:00
Alexey Kuleshevich
385620e185
Made status reporting and cabal file caching optional for the cron job 2019-05-25 20:00:28 +03:00
Deni Bertovic
567d456ca7
Fixes helm chart values 2019-05-07 15:09:16 +02:00
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