Commit Graph
14 Commits
Author SHA1 Message Date
Matt Godbolt 19ddc3384e Port cache code to Typescript (#3605)
* Port cache subsystem to typescript
* Extract an interface class
* Use async for s3 cache; add tests for failure case
2022-05-02 15:19:13 -05: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
Matt Godbolt 17c8ab8f46 Add stats for caches (#2300) 2020-10-20 14:51:31 -04:00
Austin Morton de85aecc7d Normalize and enforce license disclaimer headers (#2234) 2020-09-27 00:20:19 -04:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton 9052568afd Fix incorrect usage of Promise/async in test suite
In most cases the result was assertions simply not being run.

This was verified by changing the assertion in a way that should
have resulted in failure, and observing no tests failing.

Another case resulted in tests being registered to the wrong suite.

The common theme here is that if you are dealing with async in mocha
you must await everything or return any promise objects you create.

The simplest thing to do is convert the function to use async/await,
except in a `describe` callback where async can *not* be used.  If the
async code is not going to generate any test cases, you can make use of
`before(async () => {});`.  If you are going to dynamically generate any
test cases, you must do so synchronously within the `describe` callback.
2020-09-23 01:20:40 -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 1b7fe24990 Perform some general maintenance on the test suite (#1840) 2020-02-18 00:03:15 -05:00
Rubén Rincón 9741539276 Fixes on disk caches windows test
Related issue: #1647
2019-11-11 15:55:15 +01:00
Matt Godbolt d33afe157c Add some tests. Fiddle around AWS stuff 2018-08-11 11:24:17 -05:00
Nicole Mazzuca 9ddf22f090 Support Visual C++ and Windows well
This commit adds support for hosting on windows, as well as better
support for the Visual C++ compiler. Specific interesting changes are:

  - switch from /FAsc to /FA
  - order functions in file order
  - support demangling win32-style identifiers with undname
  - clang++ and vc++ on win32 host are both supported
2018-07-28 15:18:43 -07:00
Matt Godbolt 5ba712213a Addressing @RabsRincon comments 2018-05-20 11:10:52 -05:00
Matt Godbolt 72760b65a4 Support creation of cache chains from config strings 2018-05-18 08:21:24 -05:00
Matt Godbolt 36b720806a First attempt at some new caching; including in-memory, on-disk, and on S3 2018-05-17 23:01:52 -05:00