Commit Graph
127 Commits
Author SHA1 Message Date
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
RabsRincon 77568f747b Simplify version checks 2019-12-23 09:52:59 +01:00
Rubén Rincón f2e1384ea0 Add more descriptive messages to find-node script 2019-12-20 10:54:34 +01:00
Rubén Rincón dc789ea9a6 Allow node verisons > 8, but recommend latest LTS 2019-12-20 10:45:30 +01:00
Rubén Rincón 4a3cd05ca0 Bump node version to LTS v12 2019-12-20 10:13:22 +01:00
Sebastian 78b3381c84 * Add Python support (#1612) 2019-10-30 19:51:38 -04:00
Matt Godbolt 6c1d8146d6 Extract tools. Now relies on external demangling tools 2019-06-01 10:59:00 -05:00
Matt Godbolt 0b7773c3bb Merge pull request #1316 from mattgodbolt/policy-dating
Policy dating
2019-05-28 08:59:18 -05:00
Matt Godbolt 8a670dd82b Remove yarn in favour of the new npm features. See #1343 2019-05-03 10:52:16 -05:00
Marc Poulhiès b145fd6564 Do not use system node by error
If system's node is overriden by something in PATH, having NODE_DIR
empty will cause the script to still use node found in /bin/.
Only consider the first case if NODE_DIR is not empty.
2019-04-30 15:04:28 +02:00
RabsRincon 47b65b15d9 Upgrade to latest Node LTS (10) 2019-04-12 15:32:31 +02:00
RabsRincon 27eccb968d Merge branch 'master' into policy-dating 2019-03-24 20:31:42 +01:00
RabsRincon 2b06ad9a5f Improve placeholder handling
As noted by @mattgodbolt on the PR review
2019-03-24 19:04:17 +01:00
RabsRincon c1ae4aa503 Improve wording for build logs 2019-03-23 16:45:02 +01:00