forked from letsencrypt/boulder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from maksimsavrilov/bugfix/msavrilov-MTID-375
Bugfix/msavrilov mtid 375
- Loading branch information
Showing
752 changed files
with
16,849 additions
and
8,092 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ te | |
uint | ||
vas | ||
ede | ||
vai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,8 @@ jobs: | |
matrix: | ||
# Add additional docker image tags here and all tests will be run with the additional image. | ||
BOULDER_TOOLS_TAG: | ||
- go1.20.4_2023-05-02 | ||
- go1.20.6_2023-07-19 | ||
- go1.21rc2_2023-07-19 | ||
# Tests command definitions. Use the entire "docker compose" command you want to run. | ||
tests: | ||
# Run ./test.sh --help for a description of each of the flags. | ||
|
@@ -60,10 +61,10 @@ jobs: | |
# container (used for service discovery). | ||
- "docker compose run --use-aliases netaccess ./test.sh --gomod-vendor" | ||
|
||
# This sets the docker image tag for the boulder-tools repository to | ||
# use in tests. It will be set appropriately for each tag in the list | ||
# defined in the matrix. | ||
env: | ||
# This sets the docker image tag for the boulder-tools repository to | ||
# use in tests. It will be set appropriately for each tag in the list | ||
# defined in the matrix. | ||
BOULDER_TOOLS_TAG: ${{ matrix.BOULDER_TOOLS_TAG }} | ||
|
||
# Sequence of tasks that will be executed as part of the job. | ||
|
@@ -72,11 +73,16 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
# TODO(#6998): Remove this step when the ubuntu-20.04 image has v2.20.0+. | ||
# Install instructions copied from https://docs.docker.com/compose/install/linux/#install-the-plugin-manually | ||
- name: Update docker compose plugin | ||
run: mkdir -p ${DOCKER_CONFIG:-$HOME/.docker}/cli-plugins && curl -SL https://github.com/docker/compose/releases/download/v2.20.0/docker-compose-linux-x86_64 -o ${DOCKER_CONFIG:-$HOME/.docker}/cli-plugins/docker-compose && chmod +x ${DOCKER_CONFIG:-$HOME/.docker}/cli-plugins/docker-compose | ||
|
||
- name: Docker Login | ||
# You may pin to the exact commit or the version. | ||
# uses: docker/login-action@f3364599c6aa293cdc2b8391b1b56d0c30e45c8a | ||
uses: docker/login-action@v2.1.0 | ||
uses: docker/login-action@v2.2.0 | ||
with: | ||
# Username used to log against the Docker registry | ||
username: ${{ secrets.DOCKER_USERNAME}} | ||
|
@@ -95,10 +101,73 @@ jobs: | |
- name: docker compose pull | ||
run: docker compose pull | ||
|
||
# Enable https://github.com/golang/go/wiki/LoopvarExperiment if we're on | ||
# go1.21rc2 or higher. This experiment value is unknown in lower versions. | ||
- if: startsWith(matrix.BOULDER_TOOLS_TAG, 'go1.21') | ||
run: echo "GOEXPERIMENT=loopvar" >> "$GITHUB_ENV" | ||
|
||
# Run the test matrix. This will run | ||
- name: "Run Test: ${{ matrix.tests }}" | ||
run: ${{ matrix.tests }} | ||
|
||
govulncheck: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
# When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true | ||
fail-fast: false | ||
matrix: | ||
# Add additional docker image tags here and all tests will be run with the additional image. | ||
BOULDER_TOOLS_TAG: | ||
- go1.20.6_2023-07-19 | ||
- go1.21rc2_2023-07-19 | ||
|
||
env: | ||
# This sets the docker image tag for the boulder-tools repository to | ||
# use in tests. It will be set appropriately for each tag in the list | ||
# defined in the matrix. | ||
BOULDER_TOOLS_TAG: ${{ matrix.BOULDER_TOOLS_TAG }} | ||
|
||
steps: | ||
# Checks out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Docker Login | ||
# You may pin to the exact commit or the version. | ||
# uses: docker/login-action@f3364599c6aa293cdc2b8391b1b56d0c30e45c8a | ||
uses: docker/[email protected] | ||
with: | ||
# Username used to log against the Docker registry | ||
username: ${{ secrets.DOCKER_USERNAME}} | ||
# Password or personal access token used to log against the Docker registry | ||
password: ${{ secrets.DOCKER_PASSWORD}} | ||
# Log out from the Docker registry at the end of a job | ||
logout: true | ||
continue-on-error: true | ||
|
||
# Print the env variable being used to pull the docker image. For | ||
# informational use. | ||
- name: Print BOULDER_TOOLS_TAG | ||
run: echo "Using BOULDER_TOOLS_TAG ${BOULDER_TOOLS_TAG}" | ||
|
||
# Pre-pull the docker containers before running the tests. | ||
- name: docker compose pull netaccess | ||
run: docker compose pull netaccess | ||
|
||
# Enable https://github.com/golang/go/wiki/LoopvarExperiment if we're on | ||
# go1.21rc2 or higher. This experiment value is unknown in lower versions. | ||
- if: startsWith(matrix.BOULDER_TOOLS_TAG, 'go1.21') | ||
run: echo "GOEXPERIMENT=loopvar" >> "$GITHUB_ENV" | ||
|
||
# Unset the GOFLAGS environment variable because, by default, it will be | ||
# set to "GOFLAGS='-mod=vendor'" which all go subcommands will utilize. In | ||
# this instance, we want to run a package that isn't vendored in our | ||
# repository because 1) we don't need this package for CA operations and | ||
# 2) we want the benefits of vulnerability checking. | ||
- name: Run govulncheck | ||
run: docker compose run -e GOFLAGS= netaccess go run golang.org/x/vuln/cmd/govulncheck@latest ./... | ||
|
||
# This is a utility build job to detect if the status of any of the | ||
# above jobs have failed and fail if so. It is needed so there can be | ||
# one static job name that can be used to determine success of the job | ||
|
@@ -109,8 +178,10 @@ jobs: | |
if: ${{ always() }} | ||
runs-on: ubuntu-latest | ||
name: Boulder CI Test Matrix | ||
needs: b | ||
needs: | ||
- b | ||
- govulncheck | ||
steps: | ||
- name: Check boulder ci test matrix status | ||
if: ${{ needs.b.result != 'success' }} | ||
if: ${{ needs.b.result != 'success' || needs.govulncheck.result != 'success' }} | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.