🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
remove unused circle ci (#2378)
João Gustavo A. Amorimb8027daa67cb
diff --git a/.circleci/config.yml b/.circleci/config.ymldeleted file mode 100644index 870744fa4..000000000--- a/.circleci/config.yml+++ /dev/null@@ -1,145 +0,0 @@-# Python CircleCI 2.1 configuration file.-version: 2.1-orbs:- gcp-gke: circleci/[email protected]- go: circleci/[email protected]- #codecov: codecov/[email protected]--references:-- checkout_ml_testing: &checkout_ml_testing- run:- name: Checkout ml-testing-accelerators- command: |- git clone https://github.com/GoogleCloudPlatform/ml-testing-accelerators.git- cd ml-testing-accelerators- git fetch origin 5e88ac24f631c27045e62f0e8d5dfcf34e425e25:stable- git checkout stable- cd ..- build_push_docker: &build_push_docker- run:- name: Build and push Docker image- command: |- gcloud --quiet auth configure-docker- cd docker/tpu-tests- # Update PR refs for testing.- if [[ -n "${CIRCLE_PR_NUMBER}" ]]- then- FETCH_REF="pull/$CIRCLE_PR_NUMBER/head"- else- FETCH_REF="refs/heads/master"- fi- docker build --tag "$GCR_IMAGE_PATH:$CIRCLE_WORKFLOW_JOB_ID" -f Dockerfile --build-arg "PYTHON_VERSION=$PYTHON_VER" --build-arg "PYTORCH_VERSION=$PYTORCH_VER" --build-arg "GITHUB_REF=$FETCH_REF" .- docker push "$GCR_IMAGE_PATH:$CIRCLE_WORKFLOW_JOB_ID"-- deploy_cluster: &deploy_cluster- run:- name: Deploy the job on the kubernetes cluster- command: |- go get github.com/google/go-jsonnet/cmd/jsonnet- export PATH=$PATH:$HOME/go/bin- python -c "fname = 'docker/tpu-tests/tpu_test_cases.jsonnet' ; fff = open(fname).read().replace('pytorch-VERSION', 'pytorch-$PYTORCH_VER') ; open(fname, 'w').write(fff)"- job_name=$(jsonnet -J ml-testing-accelerators/ docker/tpu-tests/tpu_test_cases.jsonnet --ext-str image=$GCR_IMAGE_PATH --ext-str image-tag=$CIRCLE_WORKFLOW_JOB_ID | kubectl create -f -)- job_name=${job_name#job.batch/}- job_name=${job_name% created}- echo "Waiting on kubernetes job: $job_name"- i=0 && \- # N checks spaced 30s apart = 900s total.- status_code=2 && \- # Check on the job periodically. Set the status code depending on what- # happened to the job in Kubernetes. If we try MAX_CHECKS times and- # still the job hasn't finished, give up and return the starting- # non-zero status code.- printf "Waiting for job to finish: " && \- while [ $i -lt $MAX_CHECKS ]; do ((i++)); if kubectl get jobs $job_name -o jsonpath='Failed:{.status.failed}' | grep "Failed:1"; then status_code=1 && break; elif kubectl get jobs $job_name -o jsonpath='Succeeded:{.status.succeeded}' | grep "Succeeded:1" ; then status_code=0 && break; else printf "."; fi; sleep $CHECK_SPEEP; done && \- echo "Done waiting. Job status code: $status_code" && \- pod_name=$(kubectl get po -l controller-uid=`kubectl get job $job_name -o "jsonpath={.metadata.labels.controller-uid}"` | awk 'match($0,!/NAME/) {print $1}') && \- echo "GKE pod name: $pod_name" && \- kubectl logs -f $pod_name --container=train > /tmp/full_output.txt- if grep -q '<?xml version="1.0" ?>' /tmp/full_output.txt ; then csplit /tmp/full_output.txt '/<?xml version="1.0" ?>/'; else mv /tmp/full_output.txt xx00; fi && \- # First portion is the test logs. Print these to Github Action stdout.- cat xx00 && \- echo "Done with log retrieval attempt." && \- gcloud container images delete "$GCR_IMAGE_PATH:$CIRCLE_WORKFLOW_JOB_ID" --force-delete-tags && \- exit $status_code-- delete_gke_jobs: &delete_gke_jobs- run:- name: Delete GKE Jobs- command: |- # Match jobs whose age matches patterns like '1h' or '1d', i.e. any job- # that has been around longer than 1hr. First print all columns for- # matches, then execute the delete.- jobs_to_delete=$(kubectl get job | awk 'match($4,/[0-9]+[dh]/) {print $0}')- echo $jobs_to_delete- if [ ${#jobs_to_delete} -gt 1 ];- then kubectl delete job $(kubectl get job | awk 'match($4,/[0-9]+[dh]/) {print $1}');- fi-jobs:-- TPU-tests:- parameters:- python:- type: string- pytorch:- type: string- docker:- - image: circleci/python:3.7- environment:- - PYTHON_VER: << parameters.python >>- - PYTORCH_VER: << parameters.pytorch >>- - MAX_CHECKS: 240- - CHECK_SPEEP: 5- steps:- - checkout- - go/install- - *checkout_ml_testing- - gcp-gke/install- - gcp-gke/update-kubeconfig-with-credentials:- cluster: $GKE_CLUSTER- perform-login: true- - setup_remote_docker- - *build_push_docker- - *deploy_cluster- #- *stats- #- codecov/upload:- # file: coverage.xml- # flags: tpu,pytest- # upload_name: TPU-coverage-- #- store_artifacts:- # path: coverage.xml-- cleanup-gke-jobs:- docker:- - image: circleci/python:3.7- steps:- - gcp-gke/install- - gcp-gke/update-kubeconfig-with-credentials:- cluster: $GKE_CLUSTER- perform-login: true- - *delete_gke_jobs---workflows:- version: 2- tpu-tests:- jobs:- - TPU-tests:- matrix:- parameters:- python: ["3.7"]- pytorch: ["1.7", "1.8", "nightly"]- tpu-cleanup:- triggers:- - schedule:- # The cron format is:- # min (0-59) hour (0-23) monthday (1-31) month (1-12) weekday (0-6, 0=Sun)- # Set to run at the first minute of every hour.- cron: "0 * * * *"- filters:- branches:- only:- - master- jobs:- - cleanup-gke-jobsdiff --git a/.circleci/config.yml.old b/.circleci/config.yml.olddeleted file mode 100644index 9396929a8..000000000--- a/.circleci/config.yml.old+++ /dev/null@@ -1,72 +0,0 @@-version: 2.1--commands:- common:- steps:- - checkout- - run:- name: install dependencies- command: ./setup_dev_env.sh- - run:- name: activate environment- command: source path.bash.inc- - run:- name: install package- command: make install- - run:- name: lint check- command: make lint- - run:- name: static check- command: make mypy- - run:- name: doctest- command: make doctest- - run:- name: unit tests- command: make test-cpu- no_output_timeout: 45m- - run:- name: send coverage- when: on_success- command: bash <(curl -s https://codecov.io/bash)- docs:- steps:- - run:- name: docs- command: make build-docs---jobs:- python_3_6:- docker:- - image: circleci/python:3.6.5- environment:- - PYTHON_VERSION: "3.6"- steps:- - common- - docs-- python_3_7:- docker:- - image: circleci/python:3.7.3- environment:- - PYTHON_VERSION: "3.7"- steps:- - common-- python_3_8:- docker:- - image: circleci/python:3.8.0- environment:- - PYTHON_VERSION: "3.8"- steps:- - common--workflows:- version: 2- test:- jobs:- - python_3_6- - python_3_7- - python_3_8