~baron1111/launchpad:master

Last commit made on 2022-09-23
Get this branch:
git clone -b master https://git.launchpad.net/~baron1111/launchpad
Only богдан Умань can upload to this branch. If you are богдан Умань please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~baron1111/launchpad

Recent commits

c97c127... by Colin Watson

Support generic Artifactory repositories

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/429956

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] mypy:0 (build)
13 of 3 results
b4759d1... by Colin Watson

Update sampledata

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/430031

a63cf34... by Colin Watson

number-cruncher: Don't send null gauges to statsd

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/430304

51d7c86... by Colin Watson

Allow setting launchpad_session.dbuser to None

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/430339

1e2f998... by Colin Watson

Fix the condition for dispatching tokens for private source files

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/430310

f897ffa... by Colin Watson

Allow setting launchpad_session.dbuser to None

In a charmed deployment, the PostgreSQL charm will provide us with a
full connection string including the user, and we won't want to override
that. Allow setting `config.launchpad_session.dbuser` to None to
disable the arrangements that currently let us override the user on a
per-deployment basis. This has no effect on existing deployments.

ccbf3a5... by Colin Watson

Fix the condition for dispatching tokens for private source files

If a librarian request has a token, then the librarian will only serve
restricted files. In the case of source package release files, this
isn't quite synonymous with files in private archives: source files in
private archives may be unrestricted if the same source package is also
published in a public archive. Only dispatch tokens for source files
that are actually restricted.

7d52fe2... by Colin Watson

number-cruncher: Don't send null gauges to statsd

If a gauge has a value of None (e.g. the PPA latency statistics when no
builds have happened recently, which can easily happen on dogfood), then
the statsd client will raise `TypeError`. Skip sending the gauge to
statsd in this case.

570b121... by Colin Watson

Fix race between branchChanged requests and branch scan jobs

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/430166

1e8a8e4... by Colin Watson

Fix race between branchChanged requests and branch scan jobs

If a `branchChanged` XML-RPC request happened to run at the same time as
a branch scan job for the same branch, then they may race to update the
same `Branch` row, causing one to have to roll back its transaction and
try again. However, a bug in the `transaction` library meant that the
exception raised by the before-commit hook to gather job state was
incorrectly ignored, and as a result an `InFailedSqlTransaction`
exception was raised instead, which isn't retried.

Upgrade to `transaction==3.0.1` to fix this.

LP: #1883067