Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed May 7, 2024
1 parent 8a836b7 commit dd40454
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 13 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Create environment variables file
run: |
Expand All @@ -90,10 +90,6 @@ jobs:
envsubst < .env.tpl > .env
mkdir /home/runner/work/psql_data
- name: setup
run: |
makim host.prepare
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
Expand All @@ -103,6 +99,9 @@ jobs:
auto-update-conda: true
conda-solver: libmamba

- name: setup
run: makim host.prepare

- name: configure epigraphhub credentials
run: |
epigraphhub-config --name ci-epigraphhub \
Expand All @@ -112,16 +111,16 @@ jobs:
run: makim aws.create-s3-credential

- name: build docker containers
run: make containers-build
run: sugar build

- name: start services
run: |
make containers-start-services SERVICES="superset airflow postgres"
sugar ext restart --services superset,airflow,postgres --options -d
- name: wait for the services are properly working
run: |
docker ps
make containers-wait-all
sugar ps
makim containers.wait-all
- name: run epigraphhub tests
run: |
Expand All @@ -145,7 +144,7 @@ jobs:
- name: Generate logs
if: ${{ failure() }}
run: |
make containers-logs ARGS="--tail 1000" SERVICES="" > /tmp/containers-services.log
sugar logs --options --tail 1000 > /tmp/containers-services.log
- name: Archive log artifacts
uses: actions/upload-artifact@v3
Expand Down
49 changes: 49 additions & 0 deletions .makim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,55 @@ groups:
help: Reset container storage
run: rm -rf ~/.local/share/containers/

wait:
help: Wait until container is healthy
args:
service:
help: the name of the service
type: str
required: true
timeout:
help: the time (in seconds) for waiting the service
type: int
default: 90
required: false
run: |
timeout ${{ args.timeout }} ./containers/healthcheck.sh ${{ args.service }}
wait-all:
help: Wait until container is healthy
args:
timeout:
help: the time (in seconds) for waiting the service
type: int
default: 90
required: false
dependencies:
- target: wait
args:
timeout: ${{ args.timeout }}
service: postgres
- target: wait
args:
timeout: ${{ args.timeout }}
service: minio
- target: wait
args:
timeout: ${{ args.timeout }}
service: redis
- target: wait
args:
timeout: ${{ args.timeout }}
service: flower
- target: wait
args:
timeout: ${{ args.timeout }}
service: superset
- target: wait
args:
timeout: ${{ args.timeout }}
service: airflow

aws:
tasks:
create-s3-credential:
Expand Down
3 changes: 2 additions & 1 deletion .sugar.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
version: 1.0.0
compose-app: docker-compose
env-file: .env
defaults:
group: {{ env.ENV }}

groups:
airflow:
Expand All @@ -17,7 +19,6 @@ groups:
- name: triggerer
- name: airflow-cli


dev:
project-name: egh-dev
compose-path:
Expand Down
4 changes: 2 additions & 2 deletions conda/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ dependencies:
- webdriver-manager
- pip
- pip:
- containers-sugar==1.11.2
- makim==1.15.0
- containers-sugar==1.11.4
- makim==1.15.2
- compose-go
- epigraphhub>=2.1.1
- "selenium<=4.0"

0 comments on commit dd40454

Please sign in to comment.