29 Commits

Author SHA1 Message Date
Ethan Roseman a5249f922c Update deps (#1387)
* Backend updates

* frontend updates
2024-12-09 01:28:54 +09:00
Ethan Roseman 36edf529ca Try to fix the overabundance of profiles (#1370)
* Try to fix the overabundance of profiles

and dep updates

* thanksh, stubs

* stop using deleted password generation method in tests

* Fix silly test stuff

* fix filtering
2024-10-27 22:40:03 +09:00
Ethan Roseman 11b09b99f5 Family fix! (#1275)
* Family fix?

* oopth

* goofs

* good?
2024-06-10 05:46:15 -04:00
Mark Street e5b6cbea74 Update deps / remove tqdm (#1264) 2024-06-01 17:37:37 +09:00
Ethan Roseman 90b1b88543 Update backend deps, try to fix bug, remove CompilerConfig (#1256)
* Update backend deps, try to fix bug, remove CompilerConfig

* Upgrade Poetry in Docker to 1.8.3, fix ordering of fields list
2024-05-27 01:52:00 +09:00
Ethan Roseman da7869adf6 Update to Django 5 (#931)
* Update to Django 5

* Ah yes, the classic yaml number problem

* Typechecking issues
2023-12-17 20:56:07 +09:00
Robin Lambertz d0a85112d7 No podman in compilers download (#874)
* Update poetry to 1.6.1

* Don't use podman/docker to download compilers

* Fixup docker test

* Actually fix docker tests

* Use debug level when failing to get image manifest

---------

Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
2023-10-04 10:04:09 +09:00
Mark Street 4a2eabb345 Overhaul download py (#855)
* Add translations for ps1/maspsx compiler set

* Tell clang to compile and not link to remove need for lld binary

* Assume msdos assembler lives on PATH

* Overhaul download.py

* Attempt to fix docker ci

* Appease black

* Whoops, don't forget to detach

* Fix path to download.py

* fix perms (hack?)

* Add --platforms and --compilers args to download.py

* Try out --compiler dir arg for docker in ci

* Try to ignore that 500 error about image manifests

* it's --compilerS-dir

* Try again

* Try building our own podman (fallback to vfs when rootless)

* install distro 'podman' to get configuration (fixes fuse)

* mount /dev/fuse in ci

* dumb bugfix, .download_cache

* split compilers config out of download.py

* update poetry.lock

* Add psyq3.3 + psyq4.4 and migrate psyq4.3 scratches to psyq4.4

* docker_entrypoint.sh cleanup

* Try to protect against 'locating item named "manifest" for image with ID'

* better podman sanity check

* appease black

* use 'requests.get()' to grab remote image digest

* Update compilers repo to 'decompme/compilers'

* Fix description for psyq3.6
2023-09-20 16:37:35 +09:00
Ethan Roseman 796a5f4746 Updates, problems panel bugfix (#745)
* Backend updates, mypy fixes

* new migration (oops), some fixes

* Frontend updates

* cleanup

* Prevent problems panel from starting open if there are no problems

(fixes #703)

* update again

* oopz

* stylelint

* Update checkout version

* Fix test

* Fix test - device.ts still being used on the server :/

* fix cod
2023-05-08 23:56:45 +09:00
Alex Bates d81d131a43 Update dependencies (#705)
* misc changes

* remove yarn.lock

* update poetry lockfile

* fix env variables in browser

---------

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2023-03-20 00:33:01 +09:00
ConorB 962af205a5 Add django-session-timeout (#690)
* Add django-session-timeout

* Copy default SESSION_COOKIE_AGE into .env

---------

Co-authored-by: ConorBobbleHat <c.github@firstpartners.net>
2023-02-25 11:18:40 +09:00
Ethan Roseman 6efceba430 Update dependencies and black (#669) 2023-02-02 02:05:31 +09:00
Ethan Roseman 4df3ff8121 sentry 2023-01-30 19:39:35 +09:00
ConorB 906aa4a8a8 Switch timeout mechanism to subprocess.run (#659)
* Switch to subprocess.run for timeouts

* [experiment] Set CI TIMEOUT_SCALE_FACTOR to 1

* supress parameterized.expand error in event of no compilers, change TIMEOUT_SCALE_FACTOR in CI to 2

* Exempt dummy compilers from nsjail bind mounts, disable nsjail time limits

* Don't run timeout test on windows

* Decouple test_compiler_timeout's timeout from global timeout settings, reset TIMEOUT_SCALE_FACTOR to 10

* Have DummyLongRunningCompiler subclass DummyCompiler

* Have a timeout of zero disable timeouts entirely

* Skip test_zero_timeout on windows

* black

Co-authored-by: ConorBobbleHat <c.github@firstpartners.net>
2023-01-21 03:04:27 +09:00
Alex Bates 3ee5b6e8c2 Use m2c/asm-differ dependencies instead subrepos (#624) 2022-12-30 11:55:03 +00:00
ConorB 560a3d4455 Implement timeouts for m2c and compiler invocations (#628)
As this title suggests, this PR caps the runtime for all compiler / m2c
calls. Currently, the timeout is five seconds for both.

There may well be a better place to put the compile timeout; as ever,
happy to change :)

Co-authored-by: ConorBobbleHat <ConorBobbleHat>
2022-12-26 19:44:44 +09:00
EllipticEllipsis cdcfa59cfe Install fixes (#567)
* Update psycopg2 (previous was broken on Mac)

* Update readme

* Update recomp version, find the extracted tar contents
2022-10-22 12:42:46 +09:00
Alex Bates 2e96373ac7 Projects list, creation, settings pages (#542)
* add projects list

* new project page

* mypy

* allow '.' in github identifiers

* implement project create

* project settings

* disallow anons from being project members

* uploadable project icon

* docker attempt

* fix tests

* add tests

* add description form

* refactor to add useEntity and FieldSet

* move FieldSet out of subdirectory

* use same page for project tabs

* scroll up to UnderlineNav when tab changes

* stylelint

* configure vscode mypy extension

* mypy

* fix mypy and dmypy

dmypy does not support follow_imports=silent. Instead we explicitly
disable most checks for asm_differ and m2c, which
has the same effect

* remove redundant mypy flags

* FieldSet style tweaks

* give UnderlineNav horiz padding

* fix swr mutate of project header

* few tweaks to help docker (#550)

* eth changes

* use POST/DELETE rather than PUT for project members

* add migration

* fix pr creation

* simplify project platform derivation

Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2022-10-07 20:12:18 +09:00
Ethan Roseman 0d39890253 Do a sanity test for every available compiler (#507)
* Do a sanity test for every available compiler

* add parameterized

* add binutils-aarch64-linux-gnu to ci
2022-08-11 18:17:01 +09:00
Ethan Roseman 191e6d2bc7 Beginning wibo migration + test stuff (#502)
* Beginning wibo migration + test stuff

* go back and make sure docker is installed after purging everything for wine...
2022-08-09 06:46:19 +09:00
Ethan Roseman 91131f9b4d Revert "Replace wine with wibo (#484)"
This reverts commit e67c36d5a7.
2022-07-29 11:41:20 -04:00
Ethan Roseman e67c36d5a7 Replace wine with wibo (#484)
* Remove wine from the project and reference WiBo

* Install wibo in ci, readme update

* Update Docker instance to Ubuntu 22.04 (#485)

* wibo 0.1.1

* remove unnecessary build args

* wibo 0.2.1

* wibo 0.2.1 in Dockerfile

Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
2022-07-23 11:59:30 -04:00
Ethan Roseman db03a48ef9 Revert the reversion of the updates (#459)
* Revert "Revert "Dep updates (#457)" (#458)"

This reverts commit eb43c51586.

* ci changes

* Update almost everything, fix issues

* add jest-environment-jsdom

* fix to mwcc debug info option

* remove frontend tests

* black

* remove eslint-plugin-testing-library

* Do db migration

Co-authored-by: Alex Bates <alex@nanaian.town>
2022-06-01 23:06:51 -04:00
Ethan Roseman eb43c51586 Revert "Dep updates (#457)" (#458)
This reverts commit 03ae189510.
2022-05-31 18:40:21 +09:00
Ethan Roseman 03ae189510 Dep updates (#457)
* Update python deps and remove extra stuff from mac compiler command

* git subrepo pull --force backend/asm_differ

subrepo:
  subdir:   "backend/asm_differ"
  merged:   "9b2b6ad5"
upstream:
  origin:   "https://github.com/simonlindholm/asm-differ"
  branch:   "main"
  commit:   "9b2b6ad5"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* git subrepo pull --force backend/mips_to_c

subrepo:
  subdir:   "backend/mips_to_c"
  merged:   "10184592"
upstream:
  origin:   "https://github.com/matt-kempster/mips_to_c"
  branch:   "master"
  commit:   "10184592"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* prep for mips_to_c -> m2c migration

* rename m2c directory

* update frontend deps
2022-05-31 18:33:26 +09:00