diff --git a/frontend/package.json b/frontend/package.json index be8929f3964..cff25bb3cf8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -92,7 +92,6 @@ "test:server:coverage": "cd ./server && npm test -- --coverage && cd ..", "test:coverage": "npm test -- --coverage && npm run test:server:coverage", "test:ci": "export CI=true && npm run format:check && npm run lint && npm run test:coverage", - "test:ci:prow": "npm set unsafe-perm true && npm ci && npm run test:ci && ./scripts/report-coveralls.sh", "storybook": "start-storybook -p 6006 -s public", "build:storybook": "build-storybook -s public" }, diff --git a/frontend/scripts/get-coveralls-repo-token.js b/frontend/scripts/get-coveralls-repo-token.js deleted file mode 100644 index 3bcc88ea2cf..00000000000 --- a/frontend/scripts/get-coveralls-repo-token.js +++ /dev/null @@ -1,23 +0,0 @@ -const { Storage } = require('@google-cloud/storage'); - -async function main() { - try { - const storage = new Storage(); - - const [repoTokenRaw] = await storage - .bucket('ml-pipeline-test-keys') - .file('coveralls_repo_token') - .download(); - const repoToken = repoTokenRaw.toString().trim(); - if (!repoToken) { - throw new Error('Repo token is empty!'); - } - console.log(repoToken); - } catch (err) { - err.stack && console.error(err.stack); - console.error('Error occured when fetching coveralls.io repo token: ', err.message); - process.exit(1); - } -} - -main(); diff --git a/frontend/scripts/report-coveralls.sh b/frontend/scripts/report-coveralls.sh deleted file mode 100755 index 9be83d54c18..00000000000 --- a/frontend/scripts/report-coveralls.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -# Prow env reference: https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md -export COVERALLS_REPO_TOKEN=$(node $DIR/get-coveralls-repo-token.js) -REPO_BASE="https://github.com/kubeflow/pipelines" -export CI_PULL_REQUEST="$REPO_BASE/pull/$PULL_NUMBER" - -export COVERALLS_SERVICE_JOB_ID="${PROW_JOB_ID}-frontend" -export COVERALLS_SERVICE_NAME="prow-frontend" -cat ./coverage/lcov.info | npx coveralls - -export COVERALLS_SERVICE_JOB_ID="${PROW_JOB_ID}-frontend-server" -export COVERALLS_SERVICE_NAME="prow-frontend-server" -cat ./server/coverage/lcov.info | npx coveralls