Commit Graph
457 Commits
Author SHA1 Message Date
Matt Godbolt f371b10324 Fail if compiler discovery fails (#4331)
* Fail if compiler discovery fails
2022-11-23 08:25:21 -06:00
Matt Godbolt b3676c868e Add restrictToLanguages 2022-11-14 22:54:22 -06:00
Rubén Rincón Blanco 05d0fa6e85 Guard against missing buildResult in executor response (#4034) 2022-09-13 17:24:48 +02:00
Rubén Rincón Blanco 0e33cd8b1f Makes webpack-dev-middleware notify on build finish (#3965) 2022-08-18 22:31:30 +02:00
Matt Godbolt cf2d9ad09f Fix filters (#3796) 2022-06-20 12:35:03 -05:00
Jeremy Rifkin 4c2fe0a5ba Site templates feature (#3747)
* Baseline for the ui

* Backend system / frontend baseline

* Automated screenshot generation / integration

* added copyright

* Style improvements

* Reworked config / integrated images into webpack

* Added tree ide template and updated the screenshot generation script

* Added screenshots for each theme

* Updated screenshots to use embed mode and hide the site header

* Added test case, removed leftover console.log

* Renamed /api/getSiteTemplates to /api/siteTemplates

* Renamed site template type
2022-06-09 16:52:45 -04:00
Rubén Rincón Blanco 38d42f216b Allow multiple languages with --language (#3708) 2022-05-26 13:50:09 +02:00
Patrick Quist f83e184623 Minimal version of externalparser asm-parser (#3278) 2022-05-14 18:56:57 +02:00
Matt Godbolt 58337bb5bf Improvements to policy handling (#3595)
* Use webpack loaders to generate both the pug output and the SHA256 hash of it
* Uniformly use pug for HTML templating
* Policy hashes are entirely client-side
* No longer need to have the policy documents available to the server side
2022-04-28 15:19:06 -05:00
Matt Godbolt 7828576a5b Reverts the reversion of the "make" being more prod-like, and fixes it. (#3591)
* Use webpack to autogenerate the files.

That way, we always generate them consistently, be it through
`make` or building for prod. This fixes the `make` issue, and also
means we've further unified the way we build and run with `make`
vs prod.

Unfortunately this doesn't work for `make dev`; which sees the
handlebars content only. That's probably ok though, I think.
2022-04-28 12:59:25 -05:00
Matt Godbolt 5ae6b304e4 Pre-compile typescript in releases (#3570)
* build the release in-place in out/dist
* run the tsc compiler on the code so everything is pre-transpiled
* serve the various generated html snippets uniformly from the web page so they come from one place.
2022-04-27 16:24:50 -05:00
Matt Godbolt cfbabc9212 Remove sentry tracing (#3565)
* Remove sentry tracing
2022-04-26 09:44:14 -05:00
Matt Godbolt aa65eb5e59 Merge branch 'main' into rr/comma-dangle 2022-04-26 07:19:02 -05:00
Matt Godbolt f77dd84690 Async WINE setup (#3558) 2022-04-26 07:09:37 -05:00
RabsRincon 40fe769459 Set comma-dangle to always in server code and es5 in client code 2022-04-26 05:26:48 +02:00
Matt Godbolt 21b764f392 Unify comma configuration; and apply format to some files. (#3559) 2022-04-25 18:22:11 -05:00
Matt Godbolt d64a8d7e89 Sanitize filename (#3560)
Hushes "Uncontrolled data used in path expression".
2022-04-25 18:15:11 -05:00
Patrick Quist 17c01cf349 Fix for msvc library issue (#3501)
* fetch remote libraries on startup and put into client-options
* support remote libs in executor and conformanceview
2022-04-09 17:09:13 -05:00
Matt Godbolt ffb8047276 Add two gauges - one for startup time and one for how long the machine has been up at start. CC @apmorton 2022-03-01 06:15:56 -06:00
Juan José 2cf941d1e5 Move Prometheus metrics server into a separated file (#3391)
This will make the code a bit more readable and the Prometheus server more easy to maintain.
2022-02-26 13:33:46 -06:00
Juan José 89fe5c03c0 Add graceful shutdown (#3390) 2022-02-26 13:32:28 -06:00
Rubén Rincón Blanco 48eee26d2c Group some files to their own folders (#3384)
* Group some files to their own folders

In etc/scripts/, added disasms/, docenizers/, and util/ folders
In lib/, added mapfiles/, and parsers/ folders (+moved google.js to
shortener)
In static/, added widgets/ folder

Added cypress folder to .gitignore

* Address Matt's PR reviews

* Move new Pane renaming to folder
2022-02-22 00:18:21 +01: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