Commit Graph

163 Commits

Author SHA1 Message Date
alex
4e8b07efaa Diff from label (#151)
* Backend changes to diff from label rather than 0, also possibly fix #109

* implement diff_label frontend & fix assemble_asm

* Log stack trace if asm-differ fails

* don't return { obj } from api

* slight change in stub func code

* GET /compilers returns arches for compilers

* GET /compilers returns arches for compilers

* keep compiler_ids

* Obtain ido from download script, add comment for permuter api support

* Clean m2c wrapper code, add left pointer style, add test

* fix 3 tests

* list arches from api

* fix cookies in DEBUG

SameSite=None is incompatible with Secure, and this causes some browsers
to ignore the cookie altogether.

* fix test

Regression due to changing API to not return { "user": User } but
rather just the User object itself.

* fix create scratch without glabel

This works around a backend bug

* add label select on scratch creation

* show compilers/presets for current arch only

- fixes #92
- fixes #132

* fix mypy issues

* arch on scratch

* use .env.local instead of local.env

* fix unset compiler not considering arch

* fix compiler opts not displaying on first load if compiler is not gcc 2.8.1

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2021-10-12 00:59:33 +09:00
Zach Banks
110e4057b5 Pin backend docker base to python:3.9-buster (#152)
Also remove the `/backend/compilers/download.sh` command, which does not
work.
2021-10-09 13:50:55 -04:00
Ethan Roseman
a22b17312b Fix the march setting for plain mips arch, add test, frontend label change 2021-10-06 13:31:22 +09:00
Ethan Roseman
742568d40b Merge branch 'main' of github.com:ethteck/decomp.me 2021-10-05 21:43:48 +09:00
Ethan Roseman
27be92be38 git subrepo pull backend/asm_differ
subrepo:
  subdir:   "backend/asm_differ"
  merged:   "88a68d0"
upstream:
  origin:   "https://github.com/simonlindholm/asm-differ"
  branch:   "main"
  commit:   "88a68d0"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-10-05 21:43:23 +09:00
Ethan Roseman
066cc11bc3 Add startup time to hash so the cache is effectively cleared on restart 2021-10-05 21:14:19 +09:00
Ethan Roseman
a43ab3e54d try 2 2021-10-05 20:51:30 +09:00
Ethan Roseman
b058153fd1 Better diff.py error handling (fixes #109) 2021-10-05 20:47:05 +09:00
Ethan Roseman
5f9a07a169 mount /lib32 in the sandbox 2021-10-05 19:32:55 +09:00
TGE
7613af6406 use mips 64 abi to support both o32 and n32/n64 abi 2021-10-05 02:50:31 +02:00
TGE
653079cf70 add ee-gcc 2.96 compiler 2021-10-04 23:33:57 +02:00
TGE
54bc0a48b7 support assembling more mips architectures 2021-10-04 20:59:13 +02:00
TGE
517c4a9c06 git subrepo pull backend/mips_to_c
subrepo:
  subdir:   "backend/mips_to_c"
  merged:   "c0ddea7"
upstream:
  origin:   "https://github.com/matt-kempster/mips_to_c"
  branch:   "master"
  commit:   "c0ddea7"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2021-10-04 20:32:21 +02:00
alex
537eff9a95 Merge branch 'main' into dotenv 2021-09-23 13:25:54 +01:00
Ethan Roseman
7c4feb72d6 Fixes #135 2021-09-23 14:41:54 +09:00
Zach Banks
82401ceb86 Use new asm_differ; do not show source or line numbers 2021-09-21 18:28:49 -04:00
Zach Banks
01b1884422 git subrepo pull backend/asm_differ
subrepo:
  subdir:   "backend/asm_differ"
  merged:   "55bba23"
upstream:
  origin:   "https://github.com/simonlindholm/asm-differ"
  branch:   "main"
  commit:   "55bba23"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-09-21 18:17:06 -04:00
Ethan Roseman
470362b680 log hash on cache hit 2021-09-22 06:46:04 +09:00
Zach Banks
75d02135db Fix get_arch argument 2021-09-18 17:28:08 -04:00
Zach Banks
227d135706 git subrepo pull backend/asm_differ
subrepo:
  subdir:   "backend/asm_differ"
  merged:   "d6474d7"
upstream:
  origin:   "https://github.com/simonlindholm/asm-differ"
  branch:   "main"
  commit:   "d6474d7"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-09-18 17:14:09 -04:00
Zach Banks
a519a826ce Merge branch 'main' of github.com:ethteck/decomp.me into json-diff 2021-09-18 17:13:18 -04:00
Zach Banks
613f6781b3 Use improved asm_differ api 2021-09-18 12:43:02 -04:00
Zach Banks
f699f2faf6 Partially incorporate PR feedback from Alex
- Reference `asm_differ` issue 56
- Add Typescript type for `DiffResponse`
- Make `FormatDiffText` a JSX component
- Handle missing `row.base`/`row.current`
2021-09-17 18:28:44 -04:00
alex
641f1cfe1e Merge branch 'main' into scratchrewrite 2021-09-17 17:49:42 +01:00
alex
230424b8ad fix mypy 2021-09-17 17:17:19 +01:00
alex
5f33326703 update readme and read from local.env 2021-09-17 17:10:06 +01:00
alex
b6dfffef53 explain rease for type: ignore 2021-09-17 16:08:56 +01:00
alex
e7abe083ce use django condition decorator 2021-09-17 16:01:59 +01:00
alex
b3a2030ee8 cache scratch rerequests 2021-09-17 10:22:46 +01:00
Zach Banks
8a77660091 Use JSON format from asm_differ 2021-09-16 15:38:53 -04:00
Simon Lindholm
d20fef1464 Cope with mypy-typechecking asm-differ/m2c 2021-09-06 15:39:13 +02:00
Ethan Roseman
694088d4dc Fix diff output 2021-09-06 18:17:56 +09:00
Ethan Roseman
733f64539e review cleanup 2021-09-06 18:02:26 +09:00
Ethan Roseman
166224bfdf mypy 2021-09-06 17:52:07 +09:00
Ethan Roseman
64c8925a59 Fix asm-differ integration 2021-09-06 17:38:01 +09:00
Ethan Roseman
b41867d76c Add compilation test 2021-09-06 17:33:19 +09:00
Ethan Roseman
e79e192576 git subrepo pull backend/mips_to_c
subrepo:
  subdir:   "backend/mips_to_c"
  merged:   "3c3b0ce"
upstream:
  origin:   "https://github.com/matt-kempster/mips_to_c"
  branch:   "master"
  commit:   "3c3b0ce"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-09-06 07:23:08 +09:00
Ethan Roseman
be2d33a8d3 git subrepo pull backend/asm_differ
subrepo:
  subdir:   "backend/asm_differ"
  merged:   "a15c98e"
upstream:
  origin:   "https://github.com/simonlindholm/asm-differ"
  branch:   "main"
  commit:   "a15c98e"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-09-06 07:23:02 +09:00
Ethan Roseman
8c1222981f Fix #101 2021-09-06 07:21:51 +09:00
alex
884a292f91 rewrite scratch component 2021-09-04 15:10:25 +01:00
alex
b754ea5552 clean up 2021-09-03 11:29:26 +01:00
alex
b3dc1aea30 link request profile and user automatically 2021-09-02 23:11:59 +01:00
alex
0a25738bc7 fix ethans issue 2021-09-02 22:35:10 +01:00
alex
7075da0418 fix mypy 2021-09-02 22:05:47 +01:00
alex
75d46be328 add tests 2021-09-02 22:03:34 +01:00
alex
66e23c0fdd Merge branch 'main' into github 2021-09-02 20:52:37 +01:00
alex
d2e76dedb1 fix mypy problems 2021-09-02 20:50:01 +01:00
alex
1ac1f8cd6a fix 'type object not subscriptable' 2021-09-02 20:15:39 +01:00
alex
32af70ee90 fix some mypy errors 2021-09-02 18:31:23 +01:00
alex
234d4a7b10 use PyGithub and disable CSRF checks 2021-09-02 17:52:17 +01:00