Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(core): add new integration tests to concourse pipeline #3612

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 68 additions & 3 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,39 @@ source:
repository: #@ galoy_dev_image()
#@ end

#@ def tilt_integration_test_name(container):
#@ return "tilt-" + container
#@ end

#@ def core_src_resource_name(app):
#@ return app + "-src"
#@ end

#@ def core_src_resource(app):
name: #@ core_src_resource_name(app)
type: git
source:
paths:
- #@ "core/" + app
- #@ "core/" + app + "/*"
- #@ "core/" + app + "/**/*"
- flake.nix
- flake.lock
- toolchains/
- toolchains/*
- toolchains/**/*
- pnpm-lock.yaml
fetch_tags: true
uri: #@ data.values.git_uri
branch: #@ data.values.git_branch
private_key: #@ data.values.github_private_key
#@ end

groups:
- name: galoy
jobs:
- buck-test
- integration-tests
- legacy-integration-tests
- bats-tests
- legacy-bats-tests
- build-edge-image
Expand Down Expand Up @@ -114,16 +142,53 @@ jobs:
BUCK_CMD: test
run:
path: pipeline-tasks/ci/apps/tasks/buck-task.sh

- name: integration-tests
#@ container = "integration-tests"
#@ sub_core = "api"
#@ params = {}
#@ params["REPO_PATH"] = data.values.gh_repository + "-" + container
#@ params["GOOGLE_CREDENTIALS"] = "((staging-gcp-creds.creds_json))"
#@ params["SSH_PRIVATE_KEY"] = "((staging-ssh.ssh_private_key))"
#@ params["SSH_PUB_KEY"] = "((staging-ssh.ssh_public_key))"
#@ params["CMD"] = "tilt --file dev/Tiltfile ci -- --test " + "core"
serial: true
plan:
- { put: nix-host, params: { acquire: true } }
- in_parallel:
- { get: repo, trigger: true }
- { get: pipeline-tasks }
- task: #@ tilt_integration_test_name(container)
attempts: 2
timeout: 18m
tags: ["galoy-staging"]
config:
platform: linux
image_resource: #@ galoy_dev_image_config()
inputs:
- name: pipeline-tasks
- name: docker-host
path: nix-host
- name: #@ core_src_resource_name(sub_core)
path: #@ data.values.gh_repository + "-" + container
params: #@ params
run:
path: pipeline-tasks/ci/apps/tasks/run-on-nix-host.sh
ensure:
put: docker-host
params:
release: docker-host

- name: legacy-integration-tests
#@ container = "legacy-integration-tests"
#@ params = {}
#@ params["REPO_PATH"] = data.values.gh_repository + "-" + container
#@ params["GOOGLE_CREDENTIALS"] = "((staging-gcp-creds.creds_json))"
#@ params["SSH_PRIVATE_KEY"] = "((staging-ssh.ssh_private_key))"
#@ params["SSH_PUB_KEY"] = "((staging-ssh.ssh_public_key))"
#@ params["JEST_TIMEOUT"] = 90000
#@ params["PACKAGE_DIR"] = "core/api"
#@ params["CMD"] = "make integration-in-ci"
#@ params["CMD"] = "make legacy-integration-in-ci"
serial: true
plan:
- { put: docker-host, params: { acquire: true } }
Expand Down Expand Up @@ -629,7 +694,7 @@ jobs:
trigger: true
passed:
- buck-test
- integration-tests
- legacy-integration-tests
- legacy-bats-tests
- bats-tests
- build-debug-edge-image
Expand Down
Loading