Commit Graph
39 Commits
Author SHA1 Message Date
Matt Godbolt 9b494f0d06 Move cache logging into a place where we have the key (#3606) 2022-04-29 14:10:50 -05:00
Matt Godbolt 181e2c2a08 Construct one FormattingHandler for all compilers (#3417)
Not my greatest design moment, but putting it in the CompilationEnvironment
is a compromise between creating the handler in the compilation create()
and passing it into all the compilers' constructors.
2022-03-01 05:56:20 -06:00
RabsRincon d6c5752852 Reassign my copyright to Compiler Explorer Authors 2021-07-27 06:03:54 +02:00
Matt Godbolt 25f48a89a0 Reassign my copyright to Compiler Explorer Authors 2021-07-24 08:46:18 -05:00
Matt Godbolt 4e36d206b4 Prefer regex.test() 2021-05-27 23:19:32 -05:00
Matt Godbolt 17c8ab8f46 Add stats for caches (#2300) 2020-10-20 14:51:31 -04:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -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
RabsRincon b7fc8b1759 Ensure backend options are always generated 2020-06-15 12:47:31 +02: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
Matt Godbolt 55bf9939a2 async caches; use null in executable cache instead of throwing an exception for 'not found' 2020-01-14 22:06:04 -06:00
Matt Godbolt e63645cdad Configurable environment passthrough.
You can now configure which of the host's environment variables are
passed through to the compilers with compiler explorer property
environmentPassThrough. Defaults to `LD_LIBRARY_PATH`, `HOME` and `PATH`,
as before.

Also upgrades lint to ECMA 2018.

Fixes #502
2019-11-04 22:23:10 -06:00
Austin Morton bf23550d9e Allow caching of compiler version and argument information to improve startup time 2019-05-29 04:18:19 -04:00
Partouf 493036b0e5 store executables in the same cache 2019-02-08 11:41:24 +01:00
partouf d7b1441856 package executable and dependencies and unpack 2019-02-06 17:37:50 +01:00
partouf 8a08772328 store executables in cache and use them for execution 2019-02-05 00:13:31 +01:00
Matt Godbolt 423f6688ef Move to newer sentry library (hopefully fixes any sentry log issues) 2018-12-06 22:03:05 -06:00
Rubén 1a33902997 Merge compilerProps functions to a general case one (#956)
* Merge both compilerProps functions to general case

* Move compilerProps to lib/properties.js

It's now its own class, which takes a languages object + the ceProps
function to calMove compilerProps to lib/properties.js

* Add compilerProps behvaiour tests

* Add unknown language test
2018-06-19 10:09:44 +02:00
RabsRincon 7c18ffe8cf Drop underscore-node in favour of underscore.js
After some suprises about how outdated the node version was compared to
	the main project, it became clear we needed to do something.
	@jaredwy suggested using the main project as there's now nothing
	stopping us from using it after the switch to webpack.

cc @mattgodbolDrop underscore-node in favour of underscore.js
2018-06-15 15:04:55 +02:00
Matt Godbolt 78c3142977 Use the new caching system for compilation caches. 2018-05-18 10:48:53 -05:00
RabsRincon 2f6cd42e46 Add --noCache EXTRA_ARGA to disable caching
Also changes the way compilation-env works, by only having 1 for
	all compilers, instead of 1 for each. This should decrease
	memory usage as we now better enforce a maximum cache size.

Library UI got a tiny enchancement, but I'm 0% sure about it so let
	me know if this is worse!

Closes #801 #605
2018-03-05 18:31:48 +01:00
RabsRincon 6ef87b5ef9 Fix copyright dates and normalize text 2018-02-27 14:58:21 +01:00
Rubén a414d8addb Merge branch 'master' into fixedes6 2018-02-07 21:25:56 +01:00
jaredwy 8652ecae74 Fixing a few bugs:
1. a missed close function from a merge
2. Moving some logging to happen before raven logs, as it doesn't behave very well locally.
3. Updated/removed a few packages
2018-01-31 18:52:30 +11:00
RabsRincon 9cb7251750 ES6fy CompilationEnv. Fixed some tests cornercases 2018-01-18 20:22:22 +01:00
RabsRincon fc75208dac New year, new date 2018-01-01 16:44:04 +01:00
Matt Godbolt 918b2dd403 Merge branch 'master' into unification 2017-12-22 07:30:49 -06:00
Matt Godbolt 3ccb8b077e Remove unnecessary Promise requirements in server code, switch to separate denodeify 2017-12-22 04:56:56 -06:00
RabsRincon a8763c34c5 Fix lingering issues. Now you can at least compile!
Quite a lot of stuff to do, I've been neglecting this the whole
	weekend (Let me tell you how good A Hat In Time is. GOTY)
2017-12-03 23:37:16 +01:00
RabsRincon 63ed0e79c5 Change enough stuff as to get it running
Not saying it works, but if you hack few more things, you can start
	to use it. Commiting just in case
2017-12-02 04:01:12 +01:00
Matt Godbolt cf407a85ef Add some config parameters that come from AWS itself. Use it to configure raven (sentry.io) on the server 2017-11-21 22:52:58 -06:00
Rubén d193739ecc Bring every file up-to-format-date 2017-10-02 22:01:38 +02:00
Matt Godbolt 89d71b366a Pass LD_LIBRARY_PATH to compiler environment too 2017-09-21 16:23:36 -05:00
Matt Godbolt d7ac386279 Massive WAG at getting site up again 2017-09-21 15:45:25 -05:00
Simon Brand 8dbd5dc139 Add Haskell support 2017-06-08 19:52:50 +01:00
Matt Godbolt 47195c29dc Don't clean up temp diretories if there are pending compilations. Fixes #212. 2017-01-14 23:39:19 -06:00
Matt Godbolt b6e9a4658b Another year, another copyright update 2017-01-02 10:14:46 -06:00
Matt Godbolt 7990e42f7c Refactor individual compilation types into their own files 2016-12-19 18:01:27 -06:00
Matt Godbolt bc5848fa58 Adding more tests; beginnings of a refactor to make compilers more configurable 2016-11-16 21:52:05 -06:00