Commit Graph
436 Commits
Author SHA1 Message Date
partouf 077943879d disovery thign 2022-01-21 03:03:28 +00:00
Matt Godbolt a6682987dc New build and deploy setup (#3269)
* New build and deploy setup

* kills a lot of makefile complexity
* users will only ever use node-env=development for all practical
  purposes. Hopefully fixes issues where something node_modules
  is missing non-dev dependencies
* script building now pulled into a bash file
2022-01-18 20:46:33 -06:00
Patrick QuistandMatt Godbolt 6e79e098c4 Minimal backend typescript support (#3207)
* minimal ts support

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2021-12-22 20:44:51 +01:00
Matt Godbolt a619af73e8 Update prom-client 2021-12-21 11:20:40 -06:00
Matt Godbolt 7c20613c5d Move to using webpack5 (#3197)
* Bumps a lot of the auxiliary webpack projects to latest
* Minor tweaks to get webpack5 working
* Replace css minimizer with new https://webpack.js.org/plugins/css-minimizer-webpack-plugin/
* es6 shim uniquely named
2021-12-21 10:20:15 -06:00
Matt Godbolt 73c758671a Update eslint et al 2021-12-13 22:40:03 -06:00
Matt Godbolt cf7d70402e Await for things (#3086)
* Await for things

We had a number of things that aren't await()ing their promises.
That led to non-deterministic compiler settings like Intel support.
I used the IDE to find them all and fix the ones that I thought looked
important.

More generally we should use tslint (once we're all typescript) to
ensure this more generally. I tried the eslint equivalent but it
either overreacted or didn't catch anything.

Closes #3085
2021-10-31 15:31:45 -05:00
partouf 55cf3ef437 fixes #3040 2021-10-15 19:11:29 +00:00
Patrick Quist 1ca884c367 Seperate compiler finding process (#3022) 2021-10-15 18:22:33 +02:00
RabsRincon 16ff1a8a4b Add api/version and api/releaseBuild GET endpoints 2021-08-13 05:31:40 +02:00
Matt Godbolt 009d448402 Fix up error when there's no languages 2021-07-08 21:35:16 -05:00
Patrick Quist 36524372fc New calls for embed and code (#2680)
* support embedded from clientstate

* unstored code handler

* rename
2021-06-10 17:33:59 +02:00
Matt Godbolt cb50486d27 Bump eslint dependencies and suppress most of the warnings 2021-05-27 23:06:42 -05:00
Matt Godbolt 4562542c20 A big fat update of packages 2021-05-27 21:45:05 -05:00
Austin Morton b8bdd322b3 Use route parameters in legacy google shortlink route
This will fix the sentry performance metrics for this route.
Also clean up the error behavior while we are there.
2021-04-06 09:58:16 -04:00
Austin Morton 9e678ebd75 Exclude healthcheck from sentry tracing 2021-03-30 04:48:31 -04:00
RabsRincon a877144445 Fix previous commit
Oopos
2021-03-15 13:35:54 +01:00
RabsRincon a630eafce4 Add compiler scan count log 2021-03-15 12:54:39 +01:00
Austin Morton 28219f9e1e Add loki log transport (#2302) 2021-02-19 08:20:51 -05:00
Matt Godbolt 17b2bb8a58 Move /shortener to /api/shortener (#2426)
We still support /shortener (though will scrape logs to see when
we can remove).

The route under /api/shortener will have the CORS headers set up
properly for things like @foonathan's lexy visualiser.
2021-02-15 12:52:46 -06:00
Matt Godbolt 459afeb426 Goodbye, travis 2021-02-13 09:23:17 -06:00
Melven Roehrig-Zoellner 829500f408 Allow to listen on unix socket instead of port (#2393)
* Allow to listen on unix socket instead of port
2021-01-19 08:54:14 -06:00
Matt Godbolt 69d830740b Log 500+ errors so without sentry one has a chance of debugging locally 2021-01-16 14:36:16 -06:00
Austin Morton 82883c27db Add cumulative event loop lag metric 2020-10-16 17:34:14 -04:00
Matt Godbolt 6962bc739b Very simple metrics (#2289)
If --metricsPort XX is supplied, run a server on port XX that
responds with metrics. Configure only default node metrics for
now; hope to get more interesting stats in soon.
2020-10-15 22:59:19 -05:00
Austin Morton 9e36ef238a Enable request ip logging in server-side sentry reports 2020-10-11 13:08:07 -04:00
Austin Morton 8bc2b57c32 Avoid re-stringifying client-options.js on every request 2020-10-11 12:04:23 -04:00
Austin Morton 8695b51663 Enable sentry performance tracing 2020-10-11 11:07:49 -04:00
Austin Morton 8c130eda2d Disable webpack development middleware statistic logging (#2247) 2020-10-02 07:17:44 -04:00
Austin Morton de85aecc7d Normalize and enforce license disclaimer headers (#2234) 2020-09-27 00:20:19 -04:00
Matt Godbolt f68198af9e Reassign copyright to Compiler Explorer Authors (#2233) 2020-09-26 17:50:40 -05:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton bac07fea6d Eliminate all dynamic require statements (#2230) 2020-09-25 11:21:30 -04:00
Austin Morton a49c0523a2 Refactor shortener implementation in preparation for es6 modules 2020-09-23 16:09:34 -04:00
Austin Morton dde5ef02fa Move some files in preparation for es6 modules 2020-09-23 04:30:15 -04:00
Patrick Quist 0f01b99846 Fix curl API (#2184)
* manually parse formdata to be compatible with curl examples

* only parse formdata when /noscript/compile, add unittests

* no need to parse formdata in these cases

* use specific handling per url
2020-09-05 12:22:44 +02:00
Patrick Quist 32aadc90e7 [#RandomThingsNobodyAskedFor] Noscript pages (#2120)
* hello world again

* alt texts for sponsor icons

* lintfixes

* moved noscript alongside normal views and things

* language listitems

* offer link to noscript version when needed

* filter fixes and add execution output to text output

* reuse more things, add special css, support filters and execution to noscript

* bugfix

* bugfixes

* add icons because why not

* main sponsor urls

* support noscript z links

* start of better mobile view in noscript mode

* move files to noscript folder, fixes

* try to run script in mobile

* script works now

* refactoring

* scale textarea when theres css

* fix sponsorlink

* hide hidden compilers

* duplicate change from trunk
2020-08-29 21:33:37 +02:00
Austin Morton 01f198bfa8 Restrict bit names to normal word characters 2020-08-08 07:13:06 -04:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
Austin Morton fb2f43b579 Ensure sentry environment is set for node backend
fixes #2104
2020-07-27 14:11:52 -04:00
Patrick Quist 01f59fd22c [WIP] Mobile View-only mode (#2037)
* just the important bits

* hide arrows by default

* remove share button when in mobileviewmode

* oops

* support executor

* compiler output support, tools, executor, lot of refactoring

* support skipAsm filter
2020-06-20 21:32:41 +02:00
RabsRincon b7fc8b1759 Ensure backend options are always generated 2020-06-15 12:47:31 +02:00
Matt Godbolt bc042d22af Fix inevitable typo in a late-breaking rename 2020-04-12 18:13:55 -05:00
Matt Godbolt ecffaefaab Read thanks/sponsors on demand.
Implement @apmorton's idea. Not sure about either `partial`, `_partial` or
the `bits` I went with...thoughts welcomed!
2020-04-12 18:12:08 -05:00
RabsRincon 433e5ad895 Use path.join to... join the paths 2020-04-12 05:20:24 +02:00
Matt Godbolt 420462bdfd Move thanks to "sponsors"
* Implement (server-side) templating and parsing of sponsors to take some
  of the toil out of updating what was thanks.html, and pave the way for
  making this dynamically loaded outside of the codebase.
* Support corporate sponsorships. Currently showing two (unapproved, NOT
  for merging) ideas of possible sponsors.
* Some minor tweaks to try and support small screens better for these.
2020-04-11 18:11:41 -05:00
Austin Morton cadbdf59ff Switch to p-queue package, implement compilationEnvTimeoutMs, and improve temp cleanup logging (#1877)
These changes are an attempt to help diagnose a queue halting issue that decreases parallelism and prevents temp dir cleanup.

see #1875
2020-03-07 01:50:49 -05:00
Austin Morton 4760ae92de Update dependencies (#1842) 2020-02-25 02:46:41 -05:00
Austin MortonandRubén Rincón Blanco 7ce90a3388 Update to latest monaco webpack plugin (#1836)
* Update to latest monaco webpack plugin to get content hashes on worker script path
* Move to Monaco built-in Pascal mode

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2020-02-17 17:09:47 -05:00
Austin Morton 95cd401609 Apparently express requires the 4th argument be present to consider a handler for errors 2020-02-14 14:46:37 -05:00