Skip to content

I'm an idiot and used the wrong switch #66

I'm an idiot and used the wrong switch

I'm an idiot and used the wrong switch #66

Workflow file for this run

name: Run Tests
on: [push]
jobs:
#Run-GDM-Tests:
# runs-on: ubuntu-latest
# environment: Test Secrets
# env:
# SEQUELIZER_SEARCH_PATH: public,gdm_vocabs
# steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# -
# name: Log into DockerHub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Run Tests
# run: docker-compose run conceptql
#Run-OHDSI-Tests:
# runs-on: ubuntu-latest
# environment: Test Secrets
# env:
# SEQUELIZER_SEARCH_PATH: public,ohdsi_vocabs
# steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# -
# name: Log into DockerHub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Run Tests
# run: docker-compose run conceptql
Run-OHDSI-Spark-Tests:
runs-on: ubuntu-22.04-4core
env:
SPARK_VERSION: 3.5.0
CONCEPTQL_PARQUET_TEST_DIR: /tmp/synpuf_test_data/ohdsi
CONCEPTQL_DATA_MODEL: gdm
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- uses: actions/cache@v3
with:
path: ~/spark
key: spark-${{ env.SPARK_VERSION }}
id: cache-spark
- name: Download Spark
if: steps.cache-spark.outputs.cache-hit != 'true'
run: |
wget -q https://archive.apache.org/dist/spark/spark-$SPARK_VERSION/spark-$SPARK_VERSION-bin-hadoop3.tgz
tar xzf spark-$SPARK_VERSION-bin-hadoop3.tgz
mv spark-$SPARK_VERSION-bin-hadoop3 ~/spark
- uses: actions/cache@v3
with:
path: /tmp/synpuf_test_data
key: synpuf-test-data
id: cache-synpuf-test-data
- name: Download Data
if: steps.cache-synpuf-test-data.outputs.cache-hit != 'true'
run: |
cd /tmp
curl -sSL "https://www.dropbox.com/scl/fi/hha5zjm9d5ezkk8bfvtnc/synpuf_test_data.tgz?rlkey=lythw2s6342609ave66cam2ms&dl=1" > synpuf_test_data.tgz
tar xzf synpuf_test_data.tgz
- run: ~/spark/sbin/start-thriftserver.sh --driver-memory 5G && sleep 20
- run: bundle exec ruby test/all.rb || cat /home/runner/spark/logs/spark-runner-org.apache.spark.sql.hive.thriftserver.HiveThriftServer2-1-runner.out
env:
CONCEPTQL_PARQUET_TEST_DIR: /tmp/synpuf_test_data/ohdsi
SEQUELIZER_URL: hexspace://localhost:10000/default