|
36 | 36 | function cleanup () |
37 | 37 | { |
38 | 38 | werft log phase "cleanup preview environment" "cleanup preview environment" |
39 | | - BUILD_ID=$(werft run github -a namespace=staging-gitpod-test-main -j .werft/wipe-devstaging.yaml github.com/gitpod-io/gitpod:main) |
| 39 | + BUILD_ID=$(werft run github -a namespace=staging-gitpod-test-main --remote-job-path .werft/wipe-devstaging.yaml github.com/gitpod-io/gitpod:main) |
40 | 40 |
|
41 | 41 | echo "start cleanup preview environment, job name: ${BUILD_ID}" | werft log slice "cleanup" |
42 | 42 | werft log result -d "cleanup job" url "https://werft.gitpod-dev.com/job/${BUILD_ID}" |
|
45 | 45 | } |
46 | 46 |
|
47 | 47 | echo "preparing config." | werft log slice prepare |
| 48 | + sudo chown -R gitpod:gitpod /workspace |
48 | 49 | gcloud auth activate-service-account --key-file /mnt/secrets/gcp-sa/service-account.json |
49 | 50 | export GOOGLE_APPLICATION_CREDENTIALS="/home/gitpod/.config/gcloud/legacy_credentials/cd-gitpod-deployer@gitpod-core-dev.iam.gserviceaccount.com/adc.json" |
50 | | - export DOCKER_HOST=tcp://$NODENAME:2375 |
51 | 51 | echo "copied config..." | werft log slice prepare |
| 52 | + go install github.com/csweichel/oci-tool@latest 2>&1 | werft log slice prepare |
52 | 53 | werft log slice prepare --done |
53 | 54 |
|
54 | 55 | werft log phase "build preview environment" "build preview environment" |
55 | 56 | # this is because we don't want to increate gitpod-build-main number, we can choose a name |
56 | | - sudo cp .werft/build.yaml .werft/test.yaml |
| 57 | + cp .werft/build.yaml .werft/test.yaml |
57 | 58 | # version is actual namespace that werft is build, --job-file should be same with above |
58 | | - VERSION=$(werft run github -j .werft/test.yaml -s .werft/test.yaml github.com/gitpod-io/gitpod:main) |
| 59 | + VERSION=$(werft run github -j .werft/test.yaml -a version=gitpod-test-main github.com/gitpod-io/gitpod:main) |
59 | 60 | echo "start build preview environment, job name: ${VERSION}, this will take long time" | werft log slice "build test environment" |
60 | 61 | werft log result -d "build job" url "https://werft.gitpod-dev.com/job/${VERSION}" |
61 | 62 |
|
|
72 | 73 |
|
73 | 74 | werft log phase "integration test" "integration test" |
74 | 75 | # we need get integration-test version like: jp-run-integration-test.61 |
75 | | - INTEGRATION_VERSION=$(docker run eu.gcr.io/gitpod-core-dev/build/versions:${VERSION} cat versions.yaml | yq r - 'components.integrationTest.version') |
| 76 | +
|
| 77 | + oci-tool fetch file eu.gcr.io/gitpod-core-dev/build/versions:gitpod-test-main versions.yaml |
| 78 | + INTEGRATION_VERSION=$(cat versions.yaml | yq r - 'components.integrationTest.version') |
76 | 79 |
|
77 | 80 | echo "using integration-test image: ${INTEGRATION_VERSION}" | werft log slice "test" |
78 | 81 |
|
79 | 82 |
|
80 | | - TEST_BUILD_ID=$(werft run github -a version=${INTEGRATION_VERSION} -a namespace=staging-gitpod-test-main -j .werft/run-integration-tests-ide.yaml -a testPattern=vscode.test github.com/gitpod-io/gitpod:main) |
| 83 | + TEST_BUILD_ID=$(werft run github -a version=${INTEGRATION_VERSION} -a namespace=staging-gitpod-test-main --remote-job-path .werft/ide/run-integration-tests-ide.yaml -a testPattern=vscode.test github.com/gitpod-io/gitpod:main) |
81 | 84 |
|
82 | 85 | echo "running integration, job name: ${TEST_BUILD_ID}" | werft log slice "test" |
83 | 86 | werft log result -d "integration test job" url "https://werft.gitpod-dev.com/job/${TEST_BUILD_ID}" |
|
0 commit comments