Fix the Update Layer button
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | layerindex: record Update Layer runs in a single update recordlayerindex/ layerindex/ layerindex/ +1 more | +90 | 0 replies | |
| 2/3 | layerindex/views: fix the live log on the task status pagelayerindex/ tests/ | +30 | 0 replies | |
| 3/3 | Dockerfile: create the task logs directoryDockerfile | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [layerindex-web][PATCH 0/3] Fix the Update Layer button
These fix the problems in bug 15395 with the Update Layer button.
1: The button created two update records: the view's, with the task
and its log, and an empty one from update.py, which holds the per-layer updates.
2: The task page showed the live log as a Python bytes literal (since
Django 3.0), and only saw the task finish when the poll reached the process that started it (rpc:// result backend).
3: The task logs volume belonged to root, so the worker could not write
the log. An existing volume keeps its owner and needs a one-time "chown layers" of the task logs directory.
Tested on a test instance loaded with a copy of the layers.openembedded.org database, with RabbitMQ and a Celery worker, by pressing the button for meta-maker and for meta-security (a full parse): before, two records and a b'...' log; after, one record with the layer update attached, the log shown as it runs, and success detected. The worker also needs "layerindex/tasks.py: fix loading the settings in the Celery worker", sent separately. The test suite passes in the Docker image (80 passed, 1 skipped).
Queuing an update behind one that is already running, also asked for in the bug, is not part of this series.
Tim Orling (3):
layerindex: record Update Layer runs in a single update record layerindex/views: fix the live log on the task status page
Dockerfile: create the task logs directory
Dockerfile | 6 ++- layerindex/tasks.py | 6 ++- layerindex/update.py | 30 +++++++++---- layerindex/views.py | 26 ++++-------- tests/test_update_button.py | 84 +++++++++++++++++++++++++++++++++++++ 5 files changed, 124 insertions(+), 28 deletions(-) create mode 100644 tests/test_update_button.py
base-commit: 08e58cdece30019a6f9e5d14af16ebe20afa6177
Signature · 1 line
2.56.0