~lgp171188/launchpad:codehosting-charm-https-vhost-config-fixes

Last commit made on 2024-05-03
Get this branch:
git clone -b codehosting-charm-https-vhost-config-fixes https://git.launchpad.net/~lgp171188/launchpad
Only Guruprasad can upload to this branch. If you are Guruprasad please log in for upload directions.

Branch merges

Branch information

Name:
codehosting-charm-https-vhost-config-fixes
Repository:
lp:~lgp171188/launchpad

Recent commits

87cbaec... by Guruprasad

charm/launchpad-codehosting: Update the httpchk URL for the HTTP, HTTPS backends

This allows the checks to work as expected after the previous change to
set an appropriate rewrite URL.

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] mypy:0 (build)
13 of 3 results
c8ea461... by Guruprasad

charm/launchpad-codehosting: Fix a bug in the bzr https vhost config

When renaming all the previous occurrences of
'codebrowse_internal_endpoint' to 'internal_codebrowse_root', this was
missed and it is causing the rewrite rule to be wrong.

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] mypy:0 (build)
13 of 3 results
fa90745... by Ines Almeida

Redact `fetch_service_mitm_certificate` in build logs

When running a fetch service build, we send the certficate from buildd-manager to buildd, and log it. This redacts the certificate.

Merged from https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/465326

35a32c5... by Guruprasad

Fix a typo in SigningServiceClient.sign

Also add tests for the SigningServiceClient to verify
the recent changes to this method.

Merged from https://code.launchpad.net/~lgp171188/launchpad/+git/launchpad/+merge/464957

210d82e... by Ines Almeida

Redact `fetch_service_mitm_certificate` in build logs

When running a fetch service build, we send the certficate from buildd-manager to buildd, and log it. This redacts the certificate.

19603d5... by Ines Almeida

Update how to keep track of session_id within a builder session

Merged from https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/465152

c55da58... by Ines Almeida

Update how to keep track of session_id within a builder session

We now fetch the proxy details directly from the build instead of storing it within buildd-manager.
This means we don't need to store aephemeral `session_id` in DB, and also means we have the exact proxy details that ran during the build when we clear up the build.

35ce3b6... by Ines Almeida

Add DB load bulk load for `build_metadata_url` attributes when getting multiple builds

This reduces the number of DB queries made in the case for where a snap has multiple builds.
Also: revert commit that commented out a test that verified the snap.builds queries number

Merged from https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/464839

9652756... by Ines Almeida

Add missing `use_fetch_service` arg when starting a build

Merged from https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/465003

42c46ed... by Ines Almeida

Add missing `use_fetch_service` arg when starting a build

This is needed for buildd to run the right commands to setup the fetch service when the snap requires so.