Files
aptly/system
Ramón N.Rodriguez 47696a3303 api:publish: test concurrency
This commit introduces a test which runs concurrent publishes (which
could be parallell with multiproccessing, python is fun).
The test purposly fails (at the point in history that this patch is
written) in order to make it as easy as possible to verify later patches,
which hopefully addresses concurrency problems.

The same behaviour can easily be tested outside of the system tests with
the following (or similar) shell

$ aptly serve -listen=:8080 -no-lock
$ aptly repo create create -distributions=testing local-repo
$ atply publish repo -architectures=amd64 local-repo
$ apt download aptly
$ aptly repo add local-repo ./aptly*.deb
$ for _ in $(seq 10); do curl -X PUT 127.0.0.1:8080/api/publish//testing

In the local testing perfomed (on a dual core vm) the first 1-4 jobs
would typically succeed and the rest would error out.
2024-06-15 19:18:14 +02:00
..
2022-02-08 11:18:50 +01:00
2022-01-27 15:06:33 +01:00
2024-06-15 19:18:14 +02:00
2024-04-11 10:15:02 +02:00
2022-01-27 15:06:33 +01:00
2024-04-11 10:15:02 +02:00
2014-01-20 23:39:25 +04:00
2024-04-11 10:15:02 +02:00
2022-01-27 15:06:33 +01:00
2022-01-27 15:06:33 +01:00