Closed erickpeirson closed 5 years ago
And I see that pylint is failing, so there's that, too
Oh and the page doesn't reload on its own yet.
And you should all be aware of this for the future: https://github.com/unbit/uwsgi/issues/1126
the command docker pull [ image as given ]
produces 'Invalid reference format` as the only output when run from CLI within arxiv-compiler. Details I'm missing?
Setting a (successfully compiled) submission to 'published' and then clicking back to replacement: Process step is highlighted already in the progress bar for v2 (@erickpeirson would you rather have this type of feedback as a ticket?)
@eawoods I suspect we'll have quite a few little oddities to stomp. Let's make issues out of them, and then circle back?
@JaimieMurdock @DavidLFielding Planning to merge this by COB Monday unless you see major problems
I'm able to generate the hung "Processing underway" state that Liz reported earlier.
I'm able to generate the hung "Processing underway" state that Liz reported earlier.
It's always nice when we can break things reproducibly... ;-)
Ok; going to merge this. There is still a lot of massaging to do, but the basic ability to compile and preview is here, and we can chip away in more bite sized chunks.
Ok kids, here's the compiler integration. These changes depend on changes in a few other places:
To run the compiler you need the underlying converter image. You will need to download this image, which is enormous. So get yourself tapped into the mainline, or whatever.
To really see this in action, you'll want to run this with all of the backend services (including the submission worker). The easiest way to do this is to use the docker-compose config included in the root of this repository.
Make sure that you have the latest version of docker-compose.
Note! This will start a whole bunch of stuff. Fairly late in the process, a bootstrap process will run and generate a bunch of users who are authorized to submit things. It will look something like this:
Those are some JWTs you can use to access the submission UI. You will need to pass the JWT in the
Authorization
header.Compile!
Ok, here's what it should look like when you arrive at the process step. I hid some things that weren't relevant for the first version (e.g. choosing preferred compiler).
Here's what it looks like when compilation starts:
Here's what it looks like when processing is successful:
Here's what it looks like when processing fails:
Known issues/not implemented
Unknown submission type
"Unknown submission type" is displayed when initially uploading things (even adding files later). This should be an easy fix.
It goes away if you reload the page:
Handling based on file type
This is next! Now that we have the submission type, we can figure out what to do about compilation (or not). This needs to be implemented.
Better handling of connection errors, other oddities
Stuff happens in the wild. Even moving from Flask to uWSGI surfaced a bunch of little annoyances. Need a fresh pass for exception handling around service-to-service communication.
I'm sure that there are other things
Please break it!