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

[BT-4262-java-lambda] Add AWS Lambda tests to Pipeline. #172

Merged
merged 4 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ tasks.register('packageJar', Zip) {
from(tasks.jar)
from(configurations.runtimeClasspath)
}
archiveFileName = 'fauna-jvm-package.zip'
}

checkstyle {
Expand All @@ -125,5 +126,6 @@ tasks.withType(Checkstyle).configureEach {
}
}

packageJar.dependsOn(compileJava)
processResources.dependsOn(writeProps)
sourcesJar.dependsOn(writeProps)
58 changes: 44 additions & 14 deletions concourse/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ resources:
uri: [email protected]:fauna/fauna-jvm.git
branch: gh-pages
private_key: ((github-ssh-key))
- name: testtools-repo
type: git
icon: github
source:
uri: [email protected]/fauna/testtools.git
branch: main
private_key: ((github-ssh-key))
- name: testtools-image
type: registry-image
icon: docker
source:
repository: devex-dx-drivers-platform-tests
aws_access_key_id: ((prod-images-aws-access-key-id))
aws_secret_access_key: ((prod-images-aws-secret-key))
aws_region: us-east-2

- name: perf-notify
type: slack-notification
Expand All @@ -55,27 +70,42 @@ jobs:
- set_pipeline: self
file: repo.git/concourse/pipeline.yml

- name: perf-tests-dev
- name: tests-dev
serial: true
public: false
plan:
- get: dev-tests-trigger
trigger: true

- get: repo.git

- task: run-perf
file: repo.git/concourse/tasks/perf.yml
params:
FAUNA_ENDPOINT: https://db.fauna-dev.com
FAUNA_SECRET: ((dev-driver-perf-test-key))
FAUNA_ENVIRONMENT: dev
CONCOURSE_URL: http://concourse.faunadb.net/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_success:
put: perf-notify
params:
text_file: slack-message/perf-stats

- get: testtools-repo
- get: testtools-image

- in_parallel:
fail_fast: false
steps:
- task: run-perf
file: repo.git/concourse/tasks/perf.yml
params:
FAUNA_ENDPOINT: https://db.fauna-dev.com
FAUNA_SECRET: ((dev-driver-perf-test-key))
FAUNA_ENVIRONMENT: dev
CONCOURSE_URL: http://concourse.faunadb.net/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
on_success:
put: perf-notify
params:
text_file: slack-message/perf-stats
- task: aws-lambda-tests
image: testtools-image
file: testtools-repo/fauna-driver-platform-tests/concourse/tasks/java-aws-lambda-tests.yml
input_mapping:
driver-repo: repo.git
params:
FAUNA_JVM: repo.git
findgriffin marked this conversation as resolved.
Show resolved Hide resolved
FAUNA_SECRET: ((drivers-platform-tests/fauna-secret))
AWS_LAMBDA_ROLE_ARN: ((drivers-platform-tests/aws-lambda-role-arn))
AWS_ACCESS_KEY_ID: ((drivers-platform-tests/aws-access-key-id))
AWS_SECRET_ACCESS_KEY: ((drivers-platform-tests/aws-secret-key))
- name: release
serial: true
public: false
Expand Down
Loading