604 Commits
Author SHA1 Message Date
Matt Godbolt 6c476bbccc Support abandoned queued compilations (#5278)
After some time we know either the client or CloudFront will give up on
pending compilations. As such, if we continue to process compilations
after the client's timed out we're just clogging up the compilation
queue with pointless work.

As such, this change now supports the notion of "stale" work which will
be abandoned once it's made it to the front of the queue. Only compiles
coming from the user will be abandoned, so discovery and health checks
are unaffected.

Hopefully this will mitigate the number of nodes marked unhealthy due to
being overloaded: work they were doing was "pointless" anyway, and them
being killed by going unhealthy is equivalent to abandoning all the work
in flight anyway, but this means there's a fighting chance the node will
recover quickly enough to return a "healthy" status.
2023-08-07 22:17:12 -05:00
Matt Godbolt b23e60460e Remove apparently deprecated test class in favour of the new one (#5306) 2023-07-30 19:01:16 -05:00
Patrick Quist 9b983d6965 Load and show creation_date of shortlink (#5236) 2023-07-17 23:36:36 +02:00
Jorge Lopez a90dfab5f5 Add a line break before kill (#5258)
A fix for
https://github.com/compiler-explorer/compiler-explorer/issues/5233
2023-07-15 10:37:01 -05:00
Matt Godbolt 87024e2239 Bump latest deps (#5252) 2023-07-10 21:31:04 -05:00
Patrick Quist d1b75456ac Library code filter fix (#5204) 2023-07-03 21:32:30 +02:00
Jeremy Rifkin 4260313e13 Common utilities and type work (#5200)
This PR refactors some common utilities out of lib/ and into shared/ and
eliminates some use of underscore.js, as well as general type
improvements done along the way.
2023-06-28 20:13:10 -04:00
Jeremy Rifkin 3638f6026c Support control flow graphs for more compilers (#5209)
This PR should make cfg generation available for all clang compilers,
icc, and any compiler whose instructionSet property is x86, arm, or
llvm.
2023-06-28 08:07:33 -04:00
Patrick Quist 40ae2261e0 Headers via conan (#5179) 2023-06-23 12:25:30 +02:00
Jeremy Rifkin d907f34bdc Fix handling when the opt output is truncated (#5189)
Fixes #2984
2023-06-21 21:26:55 -04:00
Guo Ci 7651874a98 add Stack Usage Viewer (#5160)
For #4834
2023-06-19 20:26:15 -05:00
Jeremy Rifkin 59a53d5419 LLVM IR control flow graphs (#5154)
![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/5a2eb341-4f3e-4175-82a3-7cce513ed0ae)

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/8fe56ced-338a-4c40-bd54-bff5725d9cf5)

Closes #4658
2023-06-17 10:55:24 -04:00
Jeremy Rifkin 4814293ee1 Some quick llvm ir fixes (#5153)
Fixes three issues
- Newlines at start of an ir dump
- Annotations like `!llvm.loop !21`
- Demangling not working
2023-06-17 10:52:51 -04:00
Jeremy Rifkin 60ce06b02f Improve cache handling on the frontend, cache executions on the backend, and improve controls on the exec pane (#5111) 2023-06-11 19:10:30 -04:00
Jeremy Rifkin 34292238c1 Identify unused imports during lint (#5130) 2023-06-11 17:35:59 -04:00
Jeremy Rifkin 10851a1dda LLVM IR pane improvements (#5078)
This PR will add filtering and other output options to the LLVM IR pane


![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/ffc865ea-b3fa-441f-b501-4ec4b68e261f)

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/936be326-b55e-40cd-ba47-22b121c1acfb)


Closes #5062
Related to #5045
2023-06-11 17:00:53 -04:00
Guo Ci 79bba4c1d1 Add PTX and SASS docs (#5129)
For CUDA C++, add PTX and SASS docs.
2023-06-11 17:00:38 -04:00
fodinaborandMatt Godbolt e28e67d972 Add new "Debug intrinsics" filter. (#5045)
For now, this removes all `llvm.dbg.*` calls from LLVM IR. This is
useful to keep coloring the line correspondence between source and IR,
while not polluting the IR with the debug intrinsics.

Admittedly, I don't have much of a clue of what's going on here, so I
might be missing obvious adaptions (e.g. can we disable this for all
non-LLVM compilers for now somehow?).
Also, not really a Node.JS testing wizard either... 🤷🏼 

Just wanted this really bad for a workshop that's coming up soon ^^

Only tested with my system's default `clang` for now.

Fixes #5044

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-05-22 22:35:01 -05:00
Patrick Quist 079d495757 Compiler overrides (#5001) 2023-05-16 03:53:57 +02:00
Matt Godbolt e5d1d3c146 Fix test, oops 2023-05-04 14:02:10 -05:00
Matt Godbolt 48b5f66d6d Learn to run tests before committing, fool godbolt 2023-04-04 16:30:08 -05:00
Matt Godbolt 28948f55fc Ensure missing split args are treated as [] and not [''] (#4930)
Also means `blah=` will also be `[]` and not `['']`
2023-04-02 19:52:03 -05:00
Patrick Quist 7d192ccde1 add properties and test for cewrapper (#4761) 2023-03-18 11:46:27 +01:00
Matt Godbolt 2b6500203e Update to latest AWS SDK (#4818)
We're not using the new `send` functionality, but this gets everything
running and tests passing. It has _not_ been tested against real AWS
yet. That's next. I might move stuff over to the new `send` API, but
also I might not if it's just working.
2023-03-07 18:10:56 -06:00
Matt Godbolt 8cb8f6ff84 Update to yaml and drop some unneeded deps (#4811)
Also add some tests
2023-03-02 19:02:57 -06:00
Mats Jun LarsenandMatt Godbolt 633eb82d18 Transition to ECMAScript Modules (#4780)
Makes the Compiler Explorer app, and all the tooling ESM compatible.
Things that have been done:

1. The package.json has `type: module` now
2. All relative imports have a .js ending
3. All directory imports are now directory/index.js to comply with ESM
standards
4. Dependency node-graceful is now imported into tree, because the
package is broken under esm
5. Dependency p-queue has been bumped to 7.x with ESM support
6. Dependency profanities has been bumped to 3.x with ESM support
7. Webpack config is now both ESM and CommonJS compatible
8. Non-ESM compatible imports have been rewritten
9. ESLint configuration has been tweaked to not fail on .js imports
10. Mocha is now hacked together and ran with ts-node-esm
11. Webpack is now hacked together and ran with ts-node-esm
12. Webpack config is now ESM compatible, so that it can be used in the
dev server
13. Cypress code still runs commonjs, and has been excluded from the
tsconfig
14. All sinon mock tests have been commented out, because sinon module
mocks do not work with ESModules (because ESModules are immutable)

A lot of tests are now giving warnings/errors to stdout, yet still pass.
Docenizer codegenerator scripts have been updated, but I did not re-run
them, and instead just changed their code.

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-02-27 18:06:38 -06:00
Jeremy Rifkin 384c297906 Fix trailing comma issue (#4775)
Make trailing commas more consistent throughout the project, fixes
config conflict between eslint and prettier. Resolves an oversight in
#4766.
2023-02-26 12:21:35 -05:00
Jeremy Rifkin 2c7e9a351a Tsify a small handful of tests (#4765) 2023-02-23 23:45:27 -05:00
+2 46f99a15f9 Tsify more tests (#4729)
Happy Superbowl Sunday!
Watching 3rd down conversions and converted code.

Converted base-compiler-tests 
Snuck in analysis-tests & compilfer-finder tests because they are small

Added a couple of testing helpers to tests/utils.ts and went back and
implemented them in cache-tests

<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->

---------

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
Co-authored-by: Gaurav Gautam <gautam1168@users.noreply.github.com>
Co-authored-by: Matt Godbolt <matt@godbolt.org>
Co-authored-by: Goooler <wangzongler@gmail.com>
Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Mats Jun Larsen <me@supergrecko.com>
Co-authored-by: Jake Hemstad <jhemstad@nvidia.com>
Co-authored-by: Ross Brunton <bruntonross+github@gmail.com>
Co-authored-by: Fábio de Souza Villaça Medeiros <fabiosvm@outlook.com>
Co-authored-by: Joel Falcou <joel.falcou@lri.fr>
Co-authored-by: Patrick Quist <partouf@gmail.com>
2023-02-23 17:15:37 -05:00
Jeremy Rifkin 563b220cb9 Type work for some handlers and stuff related to the compiler-finder (#4752) 2023-02-22 17:45:55 -05:00
Matt Godbolt a34a20e876 TSify storage-tests (#4738)
I suspect I could do better but...
2023-02-13 21:54:47 -06:00
Matt Godbolt 79772a92a1 Precommit errors (#4739)
- make all things we mention in our lintrc `errors`
- `max-warnings=0` too
- allow `!` null checks in tests
2023-02-13 21:52:48 -06:00
Jeremy Rifkin 32333355ec Convert a few llvm tests (#4737) 2023-02-13 22:48:25 -05:00
Josh 9196e1367d Converted cache-tests to typescript (#4722)
Added generic typing to lib/cache/from-config nim-tests got added after a make lint (--fix)
2023-02-12 14:03:03 -06:00
Jeremy Rifkin 0d5e3ac775 Tsify the rest of lib/tooling (#4718)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2023-02-12 11:57:12 -05:00
Jeremy Rifkin e2b84eb5a6 Tsify lib/handlers/api (#4704)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2023-02-10 22:52:04 -05:00
Matt Godbolt 3bc2dbcafc TSify the compiler args (#4692) 2023-02-09 19:34:18 -06:00
Mats Jun Larsen 4a276f58f4 Tsify java-tests.js (#4698) 2023-02-07 17:12:05 +01:00
Jeremy Rifkin 31925e2468 Tsify some tests (#4684) 2023-02-02 21:37:22 -05:00
Matt Godbolt 5e79968b67 TSify sass (#4678) 2023-02-01 08:10:26 -06:00
Mats Jun Larsen 39b81c963f Tsify asm-docs-tests to typescript with utils (#4670) 2023-01-31 22:00:48 +01:00
SeekingBlues 86317c7e7f Fix internal error on Java compilation (#4668) 2023-01-31 10:32:57 -05:00
Patrick QuistandMatt Godbolt a16cb5a0cf ewarm things (#4056)
Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-01-31 07:54:43 -06:00
Mats Jun Larsen f2fbf69069 Tsify and refactor lib/handlers/source.js (#4662) 2023-01-30 17:05:36 +01:00
Jeremy Rifkin 7309443a9b Setup TS testing infrastructure (#4659) 2023-01-29 18:58:11 -05:00
Matt Godbolt 2da5d57622 npm update and prettier 2023-01-29 17:40:54 -06:00
Matt Godbolt 49d9a24552 Fix up hoom_home for interpreting (#4651) 2023-01-29 16:46:18 -06:00
Jeremy Rifkin ac8f444505 Convert, modernize, and refactor cfg generation (#4657) 2023-01-29 16:28:38 -05:00
Fábio de Souza Villaça Medeiros b3a4d27b07 Fix module loading in Hook compiler (#4639) 2023-01-28 17:25:08 +01:00
Fábio de Souza Villaça Medeiros d9cd9e0301 Ignore trim filter for Hook (#4604) 2023-01-20 11:29:07 +01:00