From e12630ef060e4aea582b52e290963c6e56eb4baf Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 23 Jul 2021 11:00:07 +0200 Subject: [PATCH] feat: Add new CI system --- .github/workflows/build.yaml | 82 +++++++++++++++++++++++ .github/workflows/check_doc.yml | 5 +- .github/workflows/documentation.yml | 10 +-- .github/workflows/test-unit.yaml | 46 +++++++++++++ .github/workflows/validate.yaml | 100 ++++++++++++++++++++++++++++ .semaphore/semaphore.yml | 97 +++++++++++++++++++++++++++ .semaphoreci/cleanup.sh | 4 -- .semaphoreci/golang.sh | 20 ------ .semaphoreci/job1.sh | 6 -- .semaphoreci/job2.sh | 8 --- .semaphoreci/setup.sh | 35 ---------- .semaphoreci/vars | 36 ---------- .travis.yml | 49 -------------- .travis/traefiker_rsa.enc | Bin 3392 -> 0 bytes Makefile | 24 +++---- script/code-gen.sh | 24 +++++++ script/codegen.Dockerfile | 19 ++++++ script/deploy.sh | 18 ++--- script/update-generated-crd-code.sh | 29 -------- 19 files changed, 395 insertions(+), 217 deletions(-) create mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/test-unit.yaml create mode 100644 .github/workflows/validate.yaml create mode 100644 .semaphore/semaphore.yml delete mode 100755 .semaphoreci/cleanup.sh delete mode 100755 .semaphoreci/golang.sh delete mode 100755 .semaphoreci/job1.sh delete mode 100755 .semaphoreci/job2.sh delete mode 100755 .semaphoreci/setup.sh delete mode 100644 .semaphoreci/vars delete mode 100644 .travis.yml delete mode 100644 .travis/traefiker_rsa.enc create mode 100755 script/code-gen.sh create mode 100644 script/codegen.Dockerfile delete mode 100755 script/update-generated-crd-code.sh diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 000000000..8fb5a867d --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,82 @@ +name: Build Binaries + +on: + pull_request: + branches: + - '*' + +env: + GO_VERSION: 1.16 + CGO_ENABLED: 0 + PRE_TARGET: "" + +jobs: + + build-webui: + runs-on: ubuntu-20.04 + + steps: + - name: Check out code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Build webui + run: | + make generate-webui + tar czvf webui.tar.gz ./static/ + + - name: Artifact webui + uses: actions/upload-artifact@v2 + with: + name: webui.tar.gz + path: webui.tar.gz + + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-20.04, macos-latest, windows-latest ] + needs: + - build-webui + defaults: + run: + working-directory: ${{ github.workspace }}/go/src/github.com/traefik/traefik + + steps: + - name: Set up Go ${{ env.GO_VERSION }} + uses: actions/setup-go@v2 + with: + go-version: ${{ env.GO_VERSION }} + + - name: Check out code + uses: actions/checkout@v2 + with: + path: go/src/github.com/traefik/traefik + fetch-depth: 0 + + - name: Cache Go modules + uses: actions/cache@v2 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + ~/Library/Caches/go-build + '%LocalAppData%\go-build' + key: ${{ runner.os }}-build-go-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-build-go- + + - name: Installing dependencies + run: go install github.com/containous/go-bindata/go-bindata@v1.0.0 + + - name: Artifact webui + uses: actions/download-artifact@v2 + with: + name: webui.tar.gz + path: ${{ github.workspace }}/go/src/github.com/traefik/traefik + + - name: Untar webui + run: tar xvf webui.tar.gz + + - name: Build + run: make binary diff --git a/.github/workflows/check_doc.yml b/.github/workflows/check_doc.yml index 68c736255..ee7465fcb 100644 --- a/.github/workflows/check_doc.yml +++ b/.github/workflows/check_doc.yml @@ -2,15 +2,16 @@ name: Check Documentation on: pull_request: + branches: + - '*' jobs: docs: name: Check, verify and build documentation - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - name: Check out code uses: actions/checkout@v2 with: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index a5fbd37d5..d0df001bb 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,18 +6,18 @@ on: - master - v* +env: + STRUCTOR_VERSION: v1.11.2 + MIXTUS_VERSION: v0.4.1 + jobs: docs: name: Doc Process - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: github.repository == 'traefik/traefik' - env: - STRUCTOR_VERSION: v1.11.2 - MIXTUS_VERSION: v0.4.1 steps: - - name: Check out code uses: actions/checkout@v2 with: diff --git a/.github/workflows/test-unit.yaml b/.github/workflows/test-unit.yaml new file mode 100644 index 000000000..e2829a248 --- /dev/null +++ b/.github/workflows/test-unit.yaml @@ -0,0 +1,46 @@ +name: Test Unit + +on: + pull_request: + branches: + - '*' + +env: + GO_VERSION: 1.16 + PRE_TARGET: "" + +jobs: + + test-unit: + runs-on: ubuntu-20.04 + + defaults: + run: + working-directory: ${{ github.workspace }}/go/src/github.com/traefik/traefik + + steps: + - name: Set up Go ${{ env.GO_VERSION }} + uses: actions/setup-go@v2 + with: + go-version: ${{ env.GO_VERSION }} + + - name: Check out code + uses: actions/checkout@v2 + with: + path: go/src/github.com/traefik/traefik + fetch-depth: 0 + + - name: Cache Go modules + uses: actions/cache@v2 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-test-unit-go-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-test-unit-go- + + - name: Installing dependencies + run: go install github.com/containous/go-bindata/go-bindata@v1.0.0 + + - name: Tests + run: make test-unit diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml new file mode 100644 index 000000000..eb3379d2a --- /dev/null +++ b/.github/workflows/validate.yaml @@ -0,0 +1,100 @@ +name: Validate + +on: + pull_request: + branches: + - '*' + +env: + GO_VERSION: 1.16 + GOLANGCI_LINT_VERSION: v1.41.1 + MISSSPELL_VERSION: v0.3.4 + PRE_TARGET: "" + +jobs: + + validate: + runs-on: ubuntu-20.04 + + defaults: + run: + working-directory: ${{ github.workspace }}/go/src/github.com/traefik/traefik + + steps: + - name: Set up Go ${{ env.GO_VERSION }} + uses: actions/setup-go@v2 + with: + go-version: ${{ env.GO_VERSION }} + + - name: Check out code + uses: actions/checkout@v2 + with: + path: go/src/github.com/traefik/traefik + fetch-depth: 0 + + - name: Cache Go modules + uses: actions/cache@v2 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-validate-go-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-validate-go- + + - name: Installing dependencies + run: go install github.com/containous/go-bindata/go-bindata@v1.0.0 + + - name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }} + run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION} + + - name: Install missspell ${{ env.MISSSPELL_VERSION }} + run: curl -sfL https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh | sh -s -- -b $(go env GOPATH)/bin ${MISSSPELL_VERSION} + + - name: Validate + run: make validate + + validate-generate: + runs-on: ubuntu-20.04 + + defaults: + run: + working-directory: ${{ github.workspace }}/go/src/github.com/traefik/traefik + + steps: + - name: Set up Go ${{ env.GO_VERSION }} + uses: actions/setup-go@v2 + with: + go-version: ${{ env.GO_VERSION }} + + - name: Check out code + uses: actions/checkout@v2 + with: + path: go/src/github.com/traefik/traefik + fetch-depth: 0 + + - name: Cache Go modules + uses: actions/cache@v2 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-validate-generate-go-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-validate-generate-go- + + - name: Installing dependencies + run: go install github.com/containous/go-bindata/go-bindata@v1.0.0 + + - name: go generate + run: | + go generate + git diff --exit-code + + - name: go mod tidy + run: | + go mod tidy + git diff --exit-code + + - name: make generate-crd + run: | + make generate-crd + git diff --exit-code diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml new file mode 100644 index 000000000..58534df13 --- /dev/null +++ b/.semaphore/semaphore.yml @@ -0,0 +1,97 @@ +version: v1.0 +name: Traefik +agent: + machine: + type: e1-standard-4 + os_image: ubuntu1804 + +fail_fast: + stop: + when: "branch != 'master'" + +auto_cancel: + queued: + when: "branch != 'master'" + running: + when: "branch != 'master'" + +global_job_config: + prologue: + commands: + - curl -sSfL https://raw.githubusercontent.com/ldez/semgo/master/godownloader.sh | sudo sh -s -- -b "/usr/local/bin" + - sudo semgo go1.16 + - export "GOPATH=$(go env GOPATH)" + - export "SEMAPHORE_GIT_DIR=${GOPATH}/src/github.com/traefik/${SEMAPHORE_PROJECT_NAME}" + - export "PATH=${GOPATH}/bin:${PATH}" + - mkdir -vp "${SEMAPHORE_GIT_DIR}" "${GOPATH}/bin" + - export GOPROXY=https://proxy.golang.org,direct + - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "${GOPATH}/bin" v1.41.1 + - curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | bash -s -- -b "${GOPATH}/bin" + - go install github.com/containous/go-bindata/go-bindata@v1.0.0 + - checkout + - cache restore traefik-$(checksum go.sum) + +blocks: + - name: Test Integration Container + dependencies: [] + run: + when: "branch =~ '.*' OR pull_request =~'.*'" + task: + jobs: + - name: Test Integration Container + commands: + - make pull-images + - mkdir -p static # Avoid to generate webui + - PRE_TARGET="" make binary + - make test-integration-container + - df -h + epilogue: + always: + commands: + - cache store traefik-$(checksum go.sum) $HOME/go/pkg/mod + + - name: Test Integration Host + dependencies: [] + run: + when: "branch =~ '.*' OR pull_request =~'.*'" + task: + env_vars: + - name: PRE_TARGET + value: "" + jobs: + - name: Test Integration Host + commands: + - cache restore traefik-$(checksum go.sum) + - mkdir -p static # Avoid to generate webui + - make test-integration-host + epilogue: + always: + commands: + - cache store traefik-$(checksum go.sum) $HOME/go/pkg/mod + + - name: Release + dependencies: [] + run: + when: "tag =~ '.*'" + task: + secrets: + - name: traefik + env_vars: + - name: GH_VERSION + value: 1.12.1 + - name: CODENAME + value: "livarot" + - name: PRE_TARGET + value: "" + prologue: + commands: + - export VERSION=${SEMAPHORE_GIT_TAG_NAME} + - curl -sSL -o /tmp/gh_${GH_VERSION}_linux_amd64.tar.gz https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_amd64.tar.gz + - tar -zxvf /tmp/gh_${GH_VERSION}_linux_amd64.tar.gz -C /tmp + - sudo mv /tmp/gh_${GH_VERSION}_linux_amd64/bin/gh /usr/local/bin/gh + jobs: + - name: Release + commands: + - make release-packages + - gh release create ${SEMAPHORE_GIT_TAG_NAME} ./dist/traefik*.* --repo traefik/traefik --title ${SEMAPHORE_GIT_TAG_NAME} --notes ${SEMAPHORE_GIT_TAG_NAME} + - ./script/deploy.sh diff --git a/.semaphoreci/cleanup.sh b/.semaphoreci/cleanup.sh deleted file mode 100755 index bf92be1f9..000000000 --- a/.semaphoreci/cleanup.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -set -e - -sudo rm -rf static diff --git a/.semaphoreci/golang.sh b/.semaphoreci/golang.sh deleted file mode 100755 index c275de34b..000000000 --- a/.semaphoreci/golang.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -set -e - -curl -O https://dl.google.com/go/go"${GO_VERSION}".linux-amd64.tar.gz - -tar -xvf go"${GO_VERSION}".linux-amd64.tar.gz -rm -rf go"${GO_VERSION}".linux-amd64.tar.gz - -sudo mkdir -p /usr/local/golang/"${GO_VERSION}"/go -sudo mv go /usr/local/golang/"${GO_VERSION}"/ - -sudo rm /usr/local/bin/go -sudo chmod +x /usr/local/golang/"${GO_VERSION}"/go/bin/go -sudo ln -s /usr/local/golang/"${GO_VERSION}"/go/bin/go /usr/local/bin/go - -export GOROOT="/usr/local/golang/${GO_VERSION}/go" -export GOTOOLDIR="/usr/local/golang/${GO_VERSION}/go/pkg/tool/linux_amd64" - -go version diff --git a/.semaphoreci/job1.sh b/.semaphoreci/job1.sh deleted file mode 100755 index e8b806800..000000000 --- a/.semaphoreci/job1.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash -set -e - -if [ -n "$SHOULD_TEST" ]; then ci_retry make pull-images; fi - -if [ -n "$SHOULD_TEST" ]; then ci_retry make test-integration; fi diff --git a/.semaphoreci/job2.sh b/.semaphoreci/job2.sh deleted file mode 100755 index f6d6939d3..000000000 --- a/.semaphoreci/job2.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -e - -ci_retry make validate - -if [ -n "$SHOULD_TEST" ]; then ci_retry make test-unit; fi - -if [ -n "$SHOULD_TEST" ]; then make -j"${N_MAKE_JOBS}" crossbinary-default-parallel; fi diff --git a/.semaphoreci/setup.sh b/.semaphoreci/setup.sh deleted file mode 100755 index 7ff12527b..000000000 --- a/.semaphoreci/setup.sh +++ /dev/null @@ -1,35 +0,0 @@ -# For personnal CI -# mv /home/runner/workspace/src/github.com// /home/runner/workspace/src/github.com/traefik/ -# cd /home/runner/workspace/src/github.com/traefik/traefik/ -for s in apache2 cassandra elasticsearch memcached mysql mongod postgresql sphinxsearch rethinkdb rabbitmq-server redis-server; do sudo service $s stop; done -sudo swapoff -a -sudo dd if=/dev/zero of=/swapfile bs=1M count=3072 -sudo mkswap /swapfile -sudo swapon /swapfile -sudo rm -rf /home/runner/.rbenv -sudo rm -rf /usr/local/golang/{1.4.3,1.5.4,1.6.4,1.7.6,1.8.6,1.9.7,1.10.3,1.11} -#export DOCKER_VERSION=18.06.3 -source .semaphoreci/vars -if [ -z "${PULL_REQUEST_NUMBER}" ]; then SHOULD_TEST="-*-"; else TEMP_STORAGE=$(curl --silent https://patch-diff.githubusercontent.com/raw/traefik/traefik/pull/${PULL_REQUEST_NUMBER}.diff | patch --dry-run -p1 -R || true); fi -echo ${SHOULD_TEST} -if [ -n "$TEMP_STORAGE" ]; then SHOULD_TEST=$(echo "$TEMP_STORAGE" | grep -Ev '(.md|.yaml|.yml)' || :); fi -echo ${TEMP_STORAGE} -echo ${SHOULD_TEST} -#if [ -n "$SHOULD_TEST" ]; then sudo -E apt-get -yq update; fi -#if [ -n "$SHOULD_TEST" ]; then sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-ce=${DOCKER_VERSION}*; fi -if [ -n "$SHOULD_TEST" ]; then docker version; fi -export GO_VERSION=1.13 -if [ -f "./go.mod" ]; then GO_VERSION="$(grep '^go .*' go.mod | awk '{print $2}')"; export GO_VERSION; fi -#if [ "${GO_VERSION}" == '1.15' ]; then export GO_VERSION=1.15rc2; fi -echo "Selected Go version: ${GO_VERSION}" - -if [ -f "./.semaphoreci/golang.sh" ]; then ./.semaphoreci/golang.sh; fi -if [ -f "./.semaphoreci/golang.sh" ]; then export GOROOT="/usr/local/golang/${GO_VERSION}/go"; fi -if [ -f "./.semaphoreci/golang.sh" ]; then export GOTOOLDIR="/usr/local/golang/${GO_VERSION}/go/pkg/tool/linux_amd64"; fi -go version - -if [ -f "./go.mod" ]; then export GO111MODULE=on; fi -if [ -f "./go.mod" ]; then export GOPROXY=https://proxy.golang.org; fi -if [ -f "./go.mod" ]; then go mod download; fi - -df diff --git a/.semaphoreci/vars b/.semaphoreci/vars deleted file mode 100644 index 200ad92eb..000000000 --- a/.semaphoreci/vars +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash -set -e - -export REPO='traefik/traefik' - -if VERSION=$(git describe --exact-match --abbrev=0 --tags); -then - export VERSION -else - export VERSION='' -fi - -export CODENAME=livarot - -export N_MAKE_JOBS=2 - - -function ci_retry { - - local NRETRY=3 - local NSLEEP=5 - local n=0 - - until [ $n -ge $NRETRY ] - do - "$@" && break - n=$((n+1)) - echo "${*} failed, attempt ${n}/${NRETRY}" - sleep $NSLEEP - done - - [ $n -lt $NRETRY ] - -} - -export -f ci_retry diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e6531917a..000000000 --- a/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -sudo: required -dist: trusty - -git: - depth: false - -services: - - docker - -env: - global: - - REPO=$TRAVIS_REPO_SLUG - - VERSION=$TRAVIS_TAG - - CODENAME=livarot - - GO111MODULE=on - -script: -- echo "Skipping tests... (Tests are executed on SemaphoreCI)" - -before_deploy: - - > - if ! [ "$BEFORE_DEPLOY_RUN" ]; then - export BEFORE_DEPLOY_RUN=1; - sudo -E apt-get -yq update; - sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-ce=${DOCKER_VERSION}*; - docker version; - echo "${DOCKERHUB_PASSWORD}" | docker login -u "${DOCKERHUB_USERNAME}" --password-stdin; - make build-image; - if [ "$TRAVIS_TAG" ]; then - make release-packages; - fi; - fi - -deploy: - - provider: releases - api_key: ${GITHUB_TOKEN} - file: dist/traefik* - skip_cleanup: true - file_glob: true - on: - repo: traefik/traefik - tags: true - - provider: script - script: sh script/deploy.sh - skip_cleanup: true - on: - repo: traefik/traefik - tags: true - diff --git a/.travis/traefiker_rsa.enc b/.travis/traefiker_rsa.enc deleted file mode 100644 index 3c16cd35dc61503e7c7a462356458f0b09c9c138..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3392 zcmV-G4ZrdMWq5GxU@IU4zlDFFNTH{;m6r}Y{#@cNNt~vg;SgwXoG@3BOzy8kECf(V z{dGj@)X@5+juA5eH`5ogGSD%g3!9ct8tnrj5tf>YYWK#LnZ8 zeI(U`NWMxat|q^%!I-fdcP? z_W>Ha2^(IKmEEc3RjPr^SD5YYq%}$+yI9Lf?n3Rr)P&^%D~0Y(xM`T zyb5)azV6*R7+v6>Y@As=$yx~@1D*Dxv*j=SyFyS5Q*j$&8t9rqoCY{s4^mlL&ghI% zxt>ScQI;<9xn;J#Z0G$;mxqt0tDnWD(nY!ua#?AEFTjf(WcfoG_RmP-5H=R&xYUe; zs8pKH1q_M*v~OE7%o3w!80~()Li04Jclr=ha9F&~Y||$59k?hSYV=x2p{7QdXQS9k z#kf(~Is24bVM!wGKLSl_EVR7e9PR^^kU8)V^iyh_;%`g71{h&R0mY z(D>fY16~CjJgi?Pn0%iV7V#d)qQkxfqEm z-euAp38gwK$d~etPE1HU^7PQ6Kn$7w2hzs(^0eB%ZR9^P1nHp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;mvK z0qz;-4DsE;8T4Zilj8S9%`(9nRU%Slz&(O4Xa`GVG=@^xiMSN~CrJW= /dev/null 2>&1 cd .. diff --git a/script/update-generated-crd-code.sh b/script/update-generated-crd-code.sh deleted file mode 100755 index 78b70420c..000000000 --- a/script/update-generated-crd-code.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash -set -e - -HACK_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"; export HACK_DIR -REPO_ROOT=${HACK_DIR}/.. -TRAEFIK_MODULE_VERSION=v2 - -rm -rf "${REPO_ROOT}"/vendor -go mod vendor -chmod +x "${REPO_ROOT}"/vendor/k8s.io/code-generator/*.sh - -"${REPO_ROOT}"/vendor/k8s.io/code-generator/generate-groups.sh \ - all \ - github.com/traefik/traefik/${TRAEFIK_MODULE_VERSION}/pkg/provider/kubernetes/crd/generated \ - github.com/traefik/traefik/${TRAEFIK_MODULE_VERSION}/pkg/provider/kubernetes/crd \ - traefik:v1alpha1 \ - --go-header-file "${HACK_DIR}"/boilerplate.go.tmpl \ - "$@" - -deepcopy-gen \ ---input-dirs github.com/traefik/traefik/${TRAEFIK_MODULE_VERSION}/pkg/config/dynamic \ ---input-dirs github.com/traefik/traefik/${TRAEFIK_MODULE_VERSION}/pkg/tls \ ---input-dirs github.com/traefik/traefik/${TRAEFIK_MODULE_VERSION}/pkg/types \ ---output-package github.com/traefik/traefik \ --O zz_generated.deepcopy --go-header-file "${HACK_DIR}"/boilerplate.go.tmpl - -cp -r "${REPO_ROOT}"/"${TRAEFIK_MODULE_VERSION:?}"/* "${REPO_ROOT}"; rm -rf "${REPO_ROOT}"/"${TRAEFIK_MODULE_VERSION:?}" - -rm -rf "${REPO_ROOT}"/vendor