diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 53833818..56f714cb 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -8,45 +8,52 @@ on: ref: description: "Acceptable content: branch/tag/commit ID." required: true + default: 'ci-dev' defaults: run: shell: bash jobs: - package: - name: build package + e2e: + name: e2e runs-on: - self-hosted - nebula - container: - image: reg.vesoft-inc.com/ci/ubuntu:20.04-docker - volumes: - - /var/run/docker.sock:/var/run/docker.sock steps: - uses: webiny/action-post-run@3.0.0 with: - run: sh -c "find . -mindepth 1 -delete" + run: | + sh -c "find . -mindepth 1 -delete" + # kind get clusters | grep '^e2e-' | xargs -n1 kind delete cluster --name - uses: actions/checkout@v3 with: ref: ${{ github.event.inputs.ref }} - uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: "1.20" - uses: docker/login-action@v2 with: registry: ${{ secrets.HARBOR_REGISTRY }} username: ${{ secrets.HARBOR_USERNAME }} password: ${{ secrets.HARBOR_PASSWORD }} + - run: | + git config --global --add safe.directory $(pwd) + curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash + - name: build operator image + run: | + export DOCKER_REPO=reg.vesoft-inc.com/cloud-dev + export IMAGE_TAG=ci-e2e + make docker-multiarch - name: e2e run: | export E2E_DOCKER_CONFIG_JSON_SECRET=`cat ~/.docker/config.json| base64 -w 0` - make e2e E2EARGS="-labels category=tools -v=5" + make e2e E2EARGS="-skip-features 'pv expansion|custom config for dynamic|tools for exporter' -v=5" env: - E2E_OPERATOR_IMAGE: reg.vesoft-inc.com/cloud-dev/nebula-operator:snap-1.25 - E2E_OPERATOR_INSTALL: "false" + E2E_OPERATOR_IMAGE: reg.vesoft-inc.com/cloud-dev/nebula-operator:ci-e2e + E2E_OPERATOR_INSTALL: "true" E2E_NC_VERSION: v3.6.0 E2E_NC_GRAPHD_IMAGE: reg.vesoft-inc.com/vesoft-ent/nebula-graphd-ent E2E_NC_METAD_IMAGE: reg.vesoft-inc.com/vesoft-ent/nebula-metad-ent E2E_NC_STORAGED_IMAGE: reg.vesoft-inc.com/vesoft-ent/nebula-storaged-ent - E2E_NC_LICENSE_MANAGER_URL: license.vesoft-inc.com:9119 \ No newline at end of file + E2E_NC_LICENSE_MANAGER_URL: license.vesoft-inc.com:9119 diff --git a/hack/e2e.sh b/hack/e2e.sh index a7a24541..7ac0622e 100755 --- a/hack/e2e.sh +++ b/hack/e2e.sh @@ -28,4 +28,4 @@ env | grep '^E2E_' | sort echo -e "\nstarting e2e tests\n" -go test -timeout 1h -v ./tests/e2e -args -test.timeout 1h -test.v -v 4 -fail-fast "${@}" +go test -timeout 4h -v ./tests/e2e -args -test.timeout 4h -test.v -v 4 "${@}" diff --git a/tests/e2e/envfuncsext/helm.go b/tests/e2e/envfuncsext/helm.go index 62d4504a..60fbc0bb 100644 --- a/tests/e2e/envfuncsext/helm.go +++ b/tests/e2e/envfuncsext/helm.go @@ -36,6 +36,7 @@ func (o *HelmOptions) WithOptions(opts ...HelmOption) *HelmOptions { } return o } + func (o *HelmOptions) RawHelmOpts() *helm.Opts { option := &helm.Opts{} for _, op := range o.HelmOptions {