Commit Graph

872 Commits

Author SHA1 Message Date
Sebastián Estrella
a773f49dc5 Update build status badge 2019-12-03 08:53:18 -05:00
Michael Snoyman
ab8d383cd5
Disable custom Haddock style by default #278 2019-10-15 09:55:10 +03:00
Michael Snoyman
2701f186ca
Try to avoid chunkedFile #275 2019-09-25 14:43:31 +03:00
Michael Snoyman
dfe0122edf
Cron job: more Hoogle debug info 2019-09-25 12:02:18 +03:00
Michael Snoyman
f2a70752c3
Merge pull request #273 from lehins/implement-hackage-undeprecation
Implemented automatic undeprecation of previously deprecated packages
2019-07-31 08:44:49 +03:00
Alexey Kuleshevich
cbfb68bdc8
Implemented automatic undeprecation of previously deprecated packages, also:
* Made sure update of deprecated is done each run, independently of Hackage update
2019-07-30 13:28:17 +03:00
Michael Snoyman
537a295bfb
Merge pull request #272 from lehins/fix-doc-display
Make sure links to haddocks are not generated for modules that have no haddock
2019-07-11 16:45:38 +03:00
Alexey Kuleshevich
39d1e0c867
Make sure links to haddocks are not generated for modules that have no haddock 2019-07-11 14:07:42 +03:00
Michael Snoyman
5dbb09a256
Autodeploy master branch 2019-07-07 09:40:15 +03:00
Michael Snoyman
b9a38540fc
Merge pull request #271 from lehins/use-global-hints-as-secondary
Fix priority of core packages:
2019-07-07 09:39:33 +03:00
Alexey Kuleshevich
05307bded8
Fix priority of core packages:
* `global-hints.yaml` is now used as a fallback for packages that
  are not included in the snapshot
* Fix ordering of dependencies on the package page
2019-07-06 20:52:52 +03:00
Michael Snoyman
148cc8258c
Merge pull request #270 from fpco/ci
Few minor fixes from yesterday
2019-06-27 19:12:59 +03:00
Alexey Kuleshevich
c18e98d981
Merge pull request #269 from lehins/fix-latest-package-version
Fix the query for selecting the newest package version.
2019-06-26 14:48:34 +03:00
Alexey Kuleshevich
3d426e1e9d
Fix the query for selecting the newest package version. Related to 07f3ef293f 2019-06-26 14:06:48 +03:00
Michael Snoyman
ebdde64745
Merge pull request #268 from lehins/fix-leak-and-latest-hackage
Two minor fixups
2019-06-26 12:42:02 +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