Commit Graph
140 Commits
Author SHA1 Message Date
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
RabsRincon 6dfd69c370 Adds formatter and empty id checks for config script 2022-02-16 16:49:23 +01:00
Rubén Rincón Blanco 273dd28c6e Adds compiler check to ci workflow (#3369) 2022-02-15 15:46:38 +01:00
Rubén Rincón Blanco 9deb97b3bd Add script that checks for bad configs for compilers and groups (#3366)
* Add script that checks for bad configs for compilers and groups

* Dont skip iteration on compiler match so groups are also caught

* Fix some of the erros found

* Add newline at EOL

* Fix remaining compiler issues
2022-02-15 10:03:24 +01:00
Rubén Rincón Blanco eaaa28728b Fixes missing changelog (#3358)
* Fixes missing changelog

* Fixes missing changelog v2
2022-02-11 19:34:10 +01:00
Matt Godbolt a6682987dc New build and deploy setup (#3269)
* New build and deploy setup

* kills a lot of makefile complexity
* users will only ever use node-env=development for all practical
  purposes. Hopefully fixes issues where something node_modules
  is missing non-dev dependencies
* script building now pulled into a bash file
2022-01-18 20:46:33 -06:00
Matt Godbolt eabfdca2fc Bump to new LTS version 16 node 2022-01-10 22:38:43 -06:00
Elektron72 bf9d2334b9 Add AVR assembly documentation (#3218) 2022-01-07 16:30:56 +01:00
Elektron72 5a350691bb Add assembly documentation for 6502 (#3210)
This PR adds assembly documentation for the MOS 6502 and WDC 65C02 instruction sets, which are output by cc65.
2021-12-23 16:34:08 +01: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 dc1592cdc1 Update to node v14.18.0 (#3026)
* Update to node v14.18.0
2021-10-11 23:18:19 -05:00
Rubén Rincón Blanco 3d68f5382e Implements Prettier formatting (#2766) 2021-08-28 14:41:28 +02:00
Mats Larsen b6c2380c56 Assembly API documentation for Java Bytecode (#2817)
* Add assembly documentation endpoint for Java bytecode
* Upstream asm docenizer for Java
* Remove jvms.html from gitattributes as it is never checked into vcs
* EOF line for docenizer-java.js
* Use find-node to locate nodejs
* Format code according to style guide
2021-08-14 12:56:33 -05:00
RabsRincon 3593ddb4a7 Add doc support for MOVBE amd64 instruction
It also improves the code a bit, and automates the patching of #2380

Closes #2819
2021-08-04 10:54:09 +02:00
Quinton Miller 7e1835fa0f Add support for Ruby (#2816) 2021-07-30 16:29:37 -04:00
Tamir Bahar 71bde50337 Add support for Python optimization flags (#2630)
* Add support for Python optimization flags

* Add CONTRIBUTORS.md entry
2021-05-04 22:37:01 +02:00
Matt Godboltandpartouf 657866b86c Approval tests (#2491)
* Approval tests

Move to approvals to do the approval-style tests we had in filters-cases.

You can configure which diff viewer it uses with ~/.approvalsConfig

Pros:
* standard diff-based thing
* easy to "bless" all the differences (see `forceApproveAll`)
* fairly standard pattern
* forces a comprehensive all permutations and combinations vs
  the ad hoc subset we picked before
Cons:
* really wants to name the files *.approved.txt
* spawns _all the diffs_ at once and so an overarching change
  can crush your computer with diff (e.g. if you use `meld` like
  I do, you end up with 100+ diffs opening)
* comprehensive testing means this takes longer, now ~16s to do
  all these tests

* use latest approvals and its new settings

* Normalize line endings in the hope of getting windows passing

* fix for windows

* oops

Co-authored-by: partouf <partouf@gmail.com>
2021-03-28 22:57:40 +02:00
Jeremy Overesch 11e470a8f7 Feature/jo/arm dockenizer (#2463)
* Update docenizer to python3
* Remove unused code in docenizer
* Create new asm-docs-arm and asm-docs-api-arm files for parsing and retrieving arm related opcodes.  Add conditional instruction switch.
* Rename docs files to specify instruction set
* Add arm32 at /api/asm/arm32/:opcode
* Add @jovere to contributor list
* Add `instructionSet` compiler option
* Update client to access correct instruction based on the `instructionSet` option
* Add `arm32` `instructionSet` option for ARM C++ compilers
* Add `arm32` instructionSet to obvious places in C/C++
2021-03-12 07:40:49 -06:00
Matt GodboltandRabsRincon ed7f003651 Privacy policy updates. Closes #2276 (#2419)
* Privacy policy updates. Closes #2276

* Improve policies timestamp generation

* Remove leftover debug print

* Python3 all the things

Also uses the short hash for policy commits

* More master->main.

Co-authored-by: RabsRincon <ruben@rinconblanco.es>
2021-02-15 00:09:13 +01:00
RabsRincon ebd159f72b Fixes wrong word in intel asm docs
The docenizer script is ran manually every time we update the docs,
 so we can modify it while a fix lands on the Intel manual,
 and then Felix updates the page.

We'll just have to remember to check the fix before updating the docs

Fixes #2380
2021-01-30 10:25:59 +01:00
Matt Godbolt c42ffe540b Fix changelog for newer OSes 2021-01-16 16:46:22 -06:00
Matthew Webb 20af986d86 Fix changelog (#2340)
* Fix changelog.py to generate properly linked change list

* Fix comment

* No error text

* Update comment

* Grep for issue numbers and stars

* Add commit split print back
2020-12-10 08:14:45 +01:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton e1cd7f9d89 Fix relative links in asm-docs
fixes #2089
2020-08-02 01:16:00 -04:00
Matt Godbolt 84e9b282fd Canonical URLs now https://github.com/compiler-explorer/compiler-explorer! Hooray :) 2020-05-16 11:09:30 -05:00
Matt Godbolt 91b2431e9a Separate lint from ci-lint and pre-commit. Fixes #1835 2020-02-24 22:02:34 -06:00
Matt Godbolt 17e7f85d7a async aws; note that we're now using node 11 features 2020-01-14 22:06:04 -06:00