GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — rocketmq/.github/workflows/pr-e2e-test.yml at release-5.3.4 · lltopk/rocketmq 263 lines (255 loc) · 8.98 KB / Copy pathpr-e2e-test.ymlFile metadata and controls263 lines (255 loc) · 8.98 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 name: E2E test for pull request # read-write repo token # access to secrets on: workflow_run: workflows: ["PR-CI"] types: - completed env: DOCKER_REPO: apache/rocketmq-ci jobs: docker: if: > github.repository == 'apache/rocketmq' && github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest timeout-minutes: 30 strategy: matrix: base-image: ["ubuntu"] java-version: ["8"] steps: - name: 'Download artifact' uses: actions/github-script@v6 with: script: | let artifacts = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{github.event.workflow_run.id }}, }); let matchArtifactRmq = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "rocketmq" })[0]; let download = await github.rest.actions.downloadArtifact({ owner: context.repo.owner, repo: context.repo.repo, artifact_id: matchArtifactRmq.id, archive_format: 'zip', }); var fs = require('fs'); fs.writeFileSync('${{github.workspace}}/rocketmq.zip', Buffer.from(download.data)); - run: | unzip rocketmq.zip mkdir rocketmq cp -r rocketmq-* rocketmq/ ls - uses: actions/checkout@v3 with: repository: apache/rocketmq-docker.git ref: master path: rocketmq-docker - name: docker-login uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and save docker images id: build-images run: | cd rocketmq-docker/image-build-ci version=${{ github.event.pull_request.number || github.ref_name }}-$(uuidgen) mkdir versionlist touch versionlist/"${version}-`echo ${{ matrix.base-image }} | sed -e "s/:/-/g"`" sh ./build-image-local.sh ${version} ${{ matrix.base-image }} ${{ matrix.java-version }} ${DOCKER_REPO} - uses: actions/upload-artifact@v4 name: Upload distribution tar with: name: versionlist path: rocketmq-docker/image-build-ci/versionlist/* list-version: if: > github.repository == 'apache/rocketmq' && always() name: List version needs: [docker] runs-on: ubuntu-latest timeout-minutes: 30 outputs: version-json: ${{ steps.show_versions.outputs.version-json }} steps: - uses: actions/download-artifact@v4 name: Download versionlist with: name: versionlist path: versionlist - name: Show versions id: show_versions run: | a=(`ls versionlist`) printf '%s\n' "${a[@]}" | jq -R . | jq -s . echo version-json=`printf '%s\n' "${a[@]}" | jq -R . | jq -s .` >> $GITHUB_OUTPUT deploy: if: ${{ success() }} name: Deploy RocketMQ needs: [list-version,docker] runs-on: ubuntu-latest timeout-minutes: 60 strategy: matrix: version: ${{ fromJSON(needs.list-version.outputs.version-json) }} steps: - uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288 name: Deploy rocketmq with: action: "deploy" ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" test-version: "${{ matrix.version }}" chart-git: "https://ghproxy.com/https://github.com/apache/rocketmq-docker.git" chart-branch: "master" chart-path: "./rocketmq-k8s-helm" job-id: ${{ strategy.job-index }} helm-values: | nameserver: image: repository: ${{env.DOCKER_REPO}} tag: ${{ matrix.version }} broker: image: repository: ${{env.DOCKER_REPO}} tag: ${{ matrix.version }} proxy: image: repository: ${{env.DOCKER_REPO}} tag: ${{ matrix.version }} test-e2e-grpc-java: if: ${{ success() }} name: Test E2E grpc java needs: [list-version, deploy] runs-on: ubuntu-latest timeout-minutes: 60 strategy: matrix: version: ${{ fromJSON(needs.list-version.outputs.version-json) }} steps: - uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288 name: e2e test with: action: "test" ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" test-version: "${{ matrix.version }}" test-code-git: "https://ghproxy.com/https://github.com/apache/rocketmq-e2e" test-code-branch: "master" test-code-path: java/e2e test-cmd: "mvn -B test" job-id: 0 - name: Publish Test Report uses: mikepenz/action-junit-report@v3 if: always() # always run even if the previous step fails with: report_paths: '**/test_report/TEST-*.xml' annotate_only: true include_passed: true detailed_summary: true - uses: actions/upload-artifact@v4 if: always() name: Upload test log with: name: test-e2e-grpc-java-log.txt path: testlog.txt test-e2e-golang: if: ${{ success() }} name: Test E2E golang needs: [list-version, deploy] runs-on: ubuntu-latest timeout-minutes: 60 strategy: matrix: version: ${{ fromJSON(needs.list-version.outputs.version-json) }} steps: - uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288 name: e2e test with: action: "test" ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" test-version: "${{ matrix.version }}" test-code-git: "https://ghproxy.com/https://github.com/apache/rocketmq-e2e" test-code-branch: "master" test-code-path: golang test-cmd: | cd ../common && mvn -Prelease -DskipTests clean package -U cd ../rocketmq-admintools && source bin/env.sh LATEST_GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | awk 'NR==1') wget "https://go.dev/dl/${LATEST_GO_VERSION}.linux-amd64.tar.gz" && \ rm -rf /usr/local/go && tar -C /usr/local -xzf ${LATEST_GO_VERSION}.linux-amd64.tar.gz cd ../golang && go get -u github.com/apache/rocketmq-clients/golang && gotestsum --junitfile ./target/surefire-reports/TEST-report.xml ./mqgotest/... -timeout 2m -v job-id: 0 - name: Publish Test Report uses: mikepenz/action-junit-report@v3 if: always() # always run even if the previous step fails with: report_paths: '**/test_report/TEST-*.xml' annotate_only: true include_passed: true detailed_summary: true - uses: actions/upload-artifact@v4 if: always() name: Upload test log with: name: test-e2e-golang-log.txt path: testlog.txt test-e2e-remoting-java: if: ${{ success() }} name: Test E2E remoting java needs: [ list-version, deploy ] runs-on: ubuntu-latest timeout-minutes: 60 strategy: matrix: version: ${{ fromJSON(needs.list-version.outputs.version-json) }} steps: - uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288 name: e2e test with: action: "test" ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" test-version: "${{ matrix.version }}" test-code-git: "https://ghproxy.com/https://github.com/apache/rocketmq-e2e" test-code-branch: "master" test-code-path: java/e2e-v4 test-cmd: "mvn -B test" job-id: 0 - name: Publish Test Report uses: mikepenz/action-junit-report@v3 if: always() # always run even if the previous step fails with: report_paths: '**/test_report/TEST-*.xml' annotate_only: true include_passed: true detailed_summary: true - uses: actions/upload-artifact@v4 if: always() name: Upload test log with: name: test-e2e-remoting-java-log.txt path: testlog.txt clean: if: always() name: Clean needs: [list-version, test-e2e-grpc-java, test-e2e-golang, test-e2e-remoting-java] runs-on: ubuntu-latest timeout-minutes: 60 strategy: matrix: version: ${{ fromJSON(needs.list-version.outputs.version-json) }} steps: - uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288 name: clean with: action: "clean" ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" test-version: "${{ matrix.version }}" job-id: ${{ strategy.job-index }} |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |