Skip to content

Commit e8ca198

Browse files
Python upgrade os upgrades and travis config cleanup (letsencrypt#5186)
Modified the Dockerfile to build using Debian Buster, an upgrade from Debian Stretch. The default Python 3 version for Stretch is 3.5.x which is soon to de deprecated by Python-cryptography a dependency we rely on for our integration test suite. The default Python 3 version for Debian Buster is 3.7.x In the .travis.yml file we are instructing travis to provision Xenial instances and install two versions of Go. This change bumps Xenial (16.04) -> Focal (20.04) and removes the installation of the two Go versions; all of our testing happens inside of a docker container so having Go installed on the Docker parent isn't necessary. In the docker-compose.yml file we configure which docker image to pull from Dockerhub, I've updated these to reflect the Debian Buster images already built and pushed. Modified build.sh to install mariadb-client-core 10.3, there is no 10.1 install candidate for Debian Buster and release notes for 10.2 and 10.3 indicate that these were both security releases. Modified test.sh to use python3 instead of system python (usually 2.7) for test/grafana/lints.py Fixes letsencrypt#5180
1 parent 07aef67 commit e8ca198

File tree

8 files changed

+8
-10
lines changed

8 files changed

+8
-10
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
language: go
2-
dist: xenial
2+
dist: focal
33
os: linux
44

55
go:
6-
- "1.15"
76
- "1.15.5"
87

98
go_import_path: github.com/letsencrypt/boulder

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22
services:
33
boulder:
44
# To minimize fetching this should be the same version used below
5-
image: letsencrypt/boulder-tools-go${TRAVIS_GO_VERSION:-1.15.5}:2020-11-12
5+
image: letsencrypt/boulder-tools-go${TRAVIS_GO_VERSION:-1.15.5}:2020-11-20
66
environment:
77
- FAKE_DNS=10.77.77.77
88
- BOULDER_CONFIG_DIR=test/config
@@ -76,7 +76,7 @@ services:
7676
logging:
7777
driver: none
7878
netaccess:
79-
image: letsencrypt/boulder-tools-go${TRAVIS_GO_VERSION:-1.15.5}:2020-11-12
79+
image: letsencrypt/boulder-tools-go${TRAVIS_GO_VERSION:-1.15.5}:2020-11-20
8080
environment:
8181
GO111MODULE: "on"
8282
GOFLAGS: "-mod=vendor"

start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python2.7 -u
1+
#!/usr/bin/env -S python3 -u
22
"""
33
Run a local instance of Boulder for testing purposes.
44

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ if [[ "${RUN[@]}" =~ lints ]] ; then
235235
# without emitting logs, so set the timeout to 9m.
236236
golangci-lint run --timeout 9m ./...
237237
run_and_expect_silence ./test/test-no-outdated-migrations.sh
238-
python test/grafana/lint.py
238+
python3 test/grafana/lint.py
239239
# Check for common spelling errors using codespell.
240240
# Update .codespell.ignore.txt if you find false positives (NOTE: ignored
241241
# words should be all lowercase).

test/boulder-tools/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM buildpack-deps:stretch-scm
1+
FROM buildpack-deps:buster-scm
22
ARG GO_VERSION
33

44
# Copied from https://github.com/docker-library/golang/blob/master/Dockerfile-debian.template

test/boulder-tools/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apt-get update
44

55
# Install system deps
66
apt-get install -y --no-install-recommends \
7-
mariadb-client-core-10.1 \
7+
mariadb-client-core-10.3 \
88
rpm \
99
ruby \
1010
ruby-dev \

test/boulder-tools/tag_and_upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cd $(dirname $0)
44

55
DATESTAMP=$(date +%Y-%m-%d)
66
BASE_TAG_NAME="letsencrypt/boulder-tools"
7-
GO_VERSIONS=( "1.15" "1.15.5" )
7+
GO_VERSIONS=( "1.15.5" )
88

99
# Build a tagged image for each GO_VERSION
1010
for GO_VERSION in "${GO_VERSIONS[@]}"

test/grafana/lint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/python
21
# Check dashboard JSON files for common errors, like forgetting to templatize a
32
# datasource.
43
import json

0 commit comments

Comments
 (0)