Page MenuHomePhabricator

Add land bot dependencies to base image setup script
ClosedPublic

Authored by jasonbcox on May 27 2020, 00:33.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABC9fc0ab8ec1ea: Add land bot dependencies to base image setup script
Summary

See title.

Test Plan
./build-containers/build.sh -r reg-staging.bitframe.org -c ~/projects/bitcoin-abc -f ./contrib -s ./teamcity/setup-debian-buster.sh -t abc-land-bot debian:buster ""

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Why would we want the land bot to use different dependencies that CI builds?

contrib/teamcity/setup-land-bot.sh
27 ↗(On Diff #20631)

apt also ship these. Not sure why pip is needed here.

Why would we want the land bot to use different dependencies that CI builds?

The main driver was I didn't want to bloat the CI base image with dependencies that aren't used by the builds at all. We use more tools while developing than we do while building, so it seemed logical to separate these.
I imagined expanding this base image with more dependencies as autogen tooling takes hold in the land bot, which would cause more bloat in the original base image.

The only downside I saw was potential dependency conflicts that only exist for the land bot and not elsewhere, but this is minimal and manageable.
But now I see there is another downside that I didn't fully consider: Making this base image separate actually unnecessarily complicates the task of writing tests for the land bot, which may discourage doing so all together. Clearly this is not worth it.

If we do encounter issues due to base image bloat, we'll need to find another solution.

contrib/teamcity/setup-land-bot.sh
27 ↗(On Diff #20631)

Good catch. I didn't realize those exist separately from pip.

Update same base image used for CI builds rather than introducing a new one.

jasonbcox retitled this revision from Add base image setup script for the land bot to Add land bot dependencies to base image setup script.May 30 2020, 00:41
jasonbcox edited the summary of this revision. (Show Details)
jasonbcox edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.May 31 2020, 21:56