Commit Graph
233 Commits
Author SHA1 Message Date
Partouf 2b38fd6cdf manual lintfix 2024-06-16 03:05:24 +02:00
Partouf 8c99c1bf0e manual lintfix 2024-06-16 03:04:58 +02:00
Partouf 5c164b85c2 attempt to detect faulty compiler/language population 2024-06-16 02:56:44 +02:00
Patrick Quist d2c7a5222e Local/Remote Execution environment (#6413) 2024-05-26 22:09:01 +02:00
Matt Godbolt e63f71a1bb More structured logging of compiles (#5105) 2024-04-22 21:25:13 +02:00
Patrick Quist b8325cf0c6 eslint root setting and fixes (#6307) 2024-04-16 21:26:53 +02:00
Matt Godbolt fd3dd917f5 Vitest (#6219)
Port to vitest. Port everything to typescript. Remove chai, mocha and
chai-as-promised. Adds some docs.
2024-03-08 22:25:09 -06:00
Patrick Quist 05e5de6fbc Fix json that is forwarded to remote when in noscript (#6182) 2024-02-24 19:05:34 +01:00
Jeremy Rifkin e5fb8e1afc Improve typings for the now-global HandlerConfig (#6027)
This PR populates types in the HandlerConfig
2024-01-21 10:29:58 -06:00
Ofek 21fe5523c0 Since ES6 there's no reason to use underscores map and filter (#5989)
Mindless replacements of the form 
`_.filter(options, option =>...`  --> `options.filter(option =>...`.

One not *entirely* mindless replacement at the bottom of
compiler-dropin-tool.ts :
```
-        return _.filter(pathFilteredFlags) as string[];
+        return pathFilteredFlags.filter(Boolean) as string[];
```
6 files can now stop importing underscore.
2024-01-13 18:35:11 +02:00
partouf 3c57dca1bd fix proxy remote for cmake calls 2024-01-01 19:42:58 +01:00
Jeremy RifkinandMarc Poulhiès 7680595a88 Add GIMPLE (#5817)
This PR adds GIMPLE as a language

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/42d2b423-0d87-4a41-b762-3d8b4e7cedd2)

---------

Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
2023-12-03 11:34:25 -05:00
Matt Godbolt a7e6ec61e3 Bump remaining deps (#5781)
And reformat everything.
2023-11-20 22:04:57 -06:00
Patrick Quist 455d92916a Execution with heaptrack (#5644) 2023-11-07 23:59:40 +01:00
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
Patrick Quist 9b983d6965 Load and show creation_date of shortlink (#5236) 2023-07-17 23:36:36 +02:00
Matt Godbolt 87024e2239 Bump latest deps (#5252) 2023-07-10 21:31:04 -05: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 da064506f3 Filter ansi escape codes in noscript (#5166)
Closes #4149
2023-06-17 18:06:47 -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 653e9a6899 Lint fixes 2023-06-11 17:38:38 -04:00
Jeremy Rifkin acdd5ad45c Capture errors in sentry better (#5128)
Fixes #5127 and similar issues.

Rationale: Whenever something that is not an Error object is passed to
Sentry.captureException we get pretty much no useful information in
sentry

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/c7345449-f7a0-46cb-a198-abe0bd80a8b1)
(usually not even a stacktrace)
2023-06-11 17:31:51 -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
Jeremy Rifkin e4853d44f3 Fix /clientstate/ 404 bug (#4850)
Fixes #4844
2023-03-12 17:09:35 -04: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
Jeremy Rifkin 2b06c69111 Turn some auto-fixable eslint rules back on (#4766)
This PR turns comma-dangle and indent eslint rules on for lib/. These
are rules inherited from the eslint config for static/, this PR just
makes things more consistent. Also turned
@typescript-eslint/no-var-requires back on while I was here.
2023-02-23 17:16:17 -05:00
Jeremy Rifkin 6bd5c43f62 Tsify app.js (#4767)
I forgot about app.js, now this is actually the last file in our ts
conversion (other than test/)
2023-02-23 17:15:59 -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
Jeremy Rifkin 2114f66a2e Fix #4726 (#4727)
Along with #4720 this fixes #4726
2023-02-12 12:17:06 -05:00
Jeremy Rifkin ed61396faf Tsify lib/clientstate-normalizer (#4720)
Depends on #4719
2023-02-12 11:51:33 -05:00
Jeremy Rifkin 32184fb330 Tsify lib/clientstate.js (#4719)
<!-- 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:10:36 -05:00
Jeremy Rifkin 0a734b37db Tsify lib/handlers/route-api (#4707)
Depends on
https://github.com/compiler-explorer/compiler-explorer/pull/4704
2023-02-10 23:09:13 -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
Jeremy Rifkin 604cce2098 Tsify lib/handlers/noscript (#4694) 2023-02-05 12:02:06 -05:00
Jeremy Rifkin ba5a97c2af Fix the load/save button (#4682) 2023-02-01 16:31:17 -05:00
Mats Jun Larsen f2fbf69069 Tsify and refactor lib/handlers/source.js (#4662) 2023-01-30 17:05:36 +01:00
Jeremy Rifkin ac8f444505 Convert, modernize, and refactor cfg generation (#4657) 2023-01-29 16:28:38 -05:00
Jeremy Rifkin 6a6efaefe6 Tsify lib/compilers (#4609) 2023-01-29 13:22:30 -05:00
Mats Jun Larsen 87203f71cb Tsify lib/handlers/formatting.js (#4656) 2023-01-29 19:21:47 +01:00
Jeremy Rifkin 560dbf9563 Tsify compilation-env (#4636) 2023-01-25 21:51:07 -05:00
Matt Godbolt 12fe8326ba npm run lint 2023-01-23 21:11:42 -06:00
Jeremy Rifkin cde6bd72ba Tsify lib/handlers/health-check (#4624) 2023-01-23 21:10:03 -06:00
Jeremy Rifkin 6207cb2d6e npm run lint to get const fixes 2023-01-17 12:31:49 -05:00
Jeremy Rifkin 3e606d3282 Fix the cuda and microsoft compilation from /noscript (#4524) 2023-01-12 11:04:28 -05:00
Jeremy Rifkin cf3316d4d8 Quick fix for #4519 2022-12-30 20:03:08 -07:00
Jeremy Rifkin aaf13f6e47 Try to address an unhandled exception that's crashing instances (#4519)
* Try to address an unhandled exception that's crashing instances

* Quick amendment
2022-12-29 17:14:22 -07:00