Commit Graph
166 Commits
Author SHA1 Message Date
Marc Poulhiès 64ceb0ca03 Add missing test case for recent new propcheck rule
The test was missing, adding it now... /o\
refs #5009

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-05-08 20:39:19 +02:00
Marc Poulhiès 016fe2d04b propcheck: catch one more small error (#5009)
Catch invalid lines (i.e. not a comment and not a prop).
Also refine the PROP_RE so that the 'key' can't have a space (this could
be made more correct by allowing space around '=', but we don't have
any, so....)

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-04-29 23:49:53 +02:00
Jeremy Rifkin 5d8d39f136 Pink (#4916) 2023-04-01 00:52:27 -04:00
Patrick Quist 7d192ccde1 add properties and test for cewrapper (#4761) 2023-03-18 11:46:27 +01: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
Matt Godbolt fb4b7bb16e Bump used node version to 18 (#4778)
Still assume node 16 compatibility for now.
2023-02-25 12:43:00 -06:00
Valentin Churavy 149762051a [Julia] show options from compiler wrapper not Julia runtime (#4716)
https://github.com/compiler-explorer/compiler-explorer/pull/4674 wasn't
quite finished.
This goes the last mile, and shows the user the options from the
compiler-wrapper.
2023-02-12 13:55:47 -06:00
Jeremy Rifkin 342427ecde Tsify generate_site_template_screenshots.js (#4708)
<!-- 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 14:13:48 -05:00
Jeremy Rifkin f801481582 Tsify the java docenizer (#4710)
<!-- 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 14:10:53 -05:00
Mosè Giordano 429a01b62e [julia] Set optimisations on by default (#4713)
Fix #4712.

CC: @vchuravy @gbaraldi
2023-02-10 07:10:34 -06:00
Valentin Churavy ceee0d15f5 Add JuliaParser (#4674)
If I understand this right this should populate the list of options for the "compiler options" drop-down
2023-02-10 07:09:18 -06:00
Valentin Churavy 0461bf9717 [Julia] pass optimize to typed (#4673) 2023-02-02 10:18:36 -06:00
Matt Godbolt d63e171e57 Update and fix link to MS privacy policy (#4638) 2023-01-24 16:40:45 -06:00
Jeremy Rifkin 4a1b5a85c5 Add make asm-docs (#4590) 2023-01-16 19:46:26 -05:00
Alex 24a2425730 Add Julia (#4595) 2023-01-14 15:44:14 +01:00
谭九鼎 b0de7de3e9 chore: use https for links (#4532) 2023-01-13 10:49:07 -05:00
partouf 80d301d5d0 continue 2023-01-10 22:57:26 +01:00
partouf a4a9160fe8 fix github_ref and log 2023-01-10 22:39:09 +01:00
Patrick Quist 396182e31f Windows build and deploy script (#4547) 2023-01-10 22:14:09 +01:00
谭九鼎 02060bddfe update some py scripts (#4533) 2023-01-09 07:34:03 -06:00
Matt Godbolt 2348a320c5 Don't rely on git if .git isn't there during build (#4498)
If we don't have a `.git` directory during build, then don't try and run `git` commands to get e.g. history and last changed for policy files and changelog.

Closes #4497
2022-12-27 15:15:56 -06:00
Jeremy Rifkin 836a2d7005 Tsify generated asm docs (#4388)
* Converted amd64 docs to ts

* 6502

* 6502 part 2

* arm

* avr

* evm

* java

* llvm

* python

* Fix bug with only getting the first paragraph

* Updated help messages
2022-12-02 14:36:10 -05:00
Jeremy Rifkin 2e844e9ef5 Make docenizer naming more consistent (#4387) 2022-12-02 12:16:42 -05:00
Matt Godbolt 01e67e60b9 Use new-style environment settings (#4348) 2022-11-26 14:37:51 -06:00
marcosmartinezfco fcb7683019 Add support for evm opcode documentation (#4319) 2022-11-21 17:16:15 +01:00
Rubén Rincón Blanco 61ff341caf Add Python instruction docs (#4290) 2022-11-16 00:51:37 +01:00
partouf 303d10a879 fix propscheck for empty properties files 2022-11-04 21:10:27 +01:00
Mats Larsen ad5ece867a Bump jvms version to 18 and fix find-node path (#4192)
* fix: bump jvms version to 18 and fix find-node path
2022-10-24 20:28:55 -05:00
Rubén Rincón Blanco 5bacce7c76 Add better duplicated key check & fix those issues (#4090) 2022-09-24 20:55:24 +02:00
Matt Godbolt bfa10e7afa Set our minimum node to 16 (#4005)
See #3995, seems we can't install on lower node any more?
2022-08-30 10:08:44 -05:00
Rubén Rincón Blanco cb39844d7f Ensure there are no duplicated compiler ids between hierarchies (#4003)
* Checks now always output which line is failing

* Ensure no duplicated compilerids between hierarchies
2022-08-29 17:08:42 -05:00
Rubén Rincón Blanco 4a9557e94e Add some more checks & rename for consistency (#3999)
* Add compiler check for every prop & typo check

* Renames tests cases for consistency & adds a few checks
2022-08-29 10:39:42 -05:00
Marc Poulhiès ded668b5d2 propcheck: check for suspicious paths (#3972)
Checks that paths in .amazon.properties are starting with

/opt/compiler-explorer/.

Also rename cppx_blue default config file (was .default. instead of .defaults.).

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-08-19 19:51:27 +02:00
Marc Poulhiès ca6153c86e propcheck: better check duplicated compilers/groups (#3967)
Check for duplicated compiler or group references:

group.cmipsel.compilers=cmips5el:cmipselg1210:cmips64elg1210
group.cmips64el.compilers=cmips564el:cmips64elg1210

triggers:
duplicated_compiler_references:
        cmips64elg1210

group.cmipss.compilers=&cmips:&cmipsel:&cmips64:&cmips64el
group.ccross.compilers=&cppcs:&cmipss:&cmips64el:&cnanomips:&cmrisc32:&cmsp:&cgccarm:&cavr:&rvcgcc:&cxtensaesp32:&cxtensaesp32s2:&cxtensaesp32s3:&cplatspec:&ckalray:&cs390x

triggers:
duplicated_group_references:
        cmips64el

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-08-19 19:21:18 +02:00
Rubén Rincón Blanco 16b176235a JBOF: Just a Bunch of Fixes (#3957)
- Renames orphancompiler.py script to propscheck.py, the name fits better
- Fixes Go props to make them easier to maintain
- Alphabetically sorts some listings in the code
- Adds tests to the props checker script (No idea how to integrate those so it's manual for now)
- Adds 2 missing limit cases for Motd filtering
2022-08-13 01:39:41 +02:00
Jeremy Rifkin ca7ebb4583 Updated site templates (#3767)
- Better naming of functions in existing templates
- Added LLVM Ir and Preprocessor templates
- Improved screenshot generation script
- Improved config file format (now the full URL can just be copied in instead of manually trimming the `https://godbolt.org/#`)
- Added `docs/AddingASiteTemplate.md`
2022-06-12 13:38:12 -04: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
Mats Larsen a1d6f453e3 Assembly documentation for LLVM IR (#3737) 2022-05-31 14:47:48 +02:00
Rubén Rincón Blanco 38cf38fcbf Sprinkle some path.delimiter around (#3725) 2022-05-27 22:52:48 +02:00
Matt Godbolt 506163818f Take two of policy stuff (#3656)
* Revert "Revert "Fix policy links (#3644)""

This reverts commit 3796bbec69.

* Make the policy hash blind to the git dates and times
2022-05-13 12:06:44 -05: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 b404355391 Fix branch name in builds 2022-04-25 11:36:31 -05:00
Matt Godbolt cf0cbacf34 Test and build distribution simultaneously (#3553)
* Test and build distribution simultaneously
2022-04-25 11:27:08 -05:00
Jeremy Rifkin 16b071b9f0 Updated x86 docenizer to read adjacent tables (#3541)
* Updated x86 docenizer to read adjacent tables

* Added regression test
2022-04-23 22:04:09 +02: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
Rubén Rincón Blanco 57ec09a7d2 Fixes OpenCLs defaultCompilers to (prob.) intended ones (#3381)
* Fix OpenCLs default compilers to intended ones. Adds check in script

* Adds config check script to pre-commit hook
2022-02-19 21:33:16 +01:00
Rubén Rincón 7e2eb51f8d Add exclude key to empty list check 2022-02-18 10:26:12 +01:00
RabsRincon af08dc4d1a Adds checks for lib ids and lib versions to script 2022-02-16 21:41:23 +01:00