dev(cypress): gradle command quickstartCypress (#14404)

This commit is contained in:
david-leifker 2025-08-08 21:45:09 -05:00 committed by GitHub
parent d817d6bbff
commit 1bc58d6b40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 33 additions and 0 deletions

View File

@ -55,6 +55,18 @@ ext {
DATAHUB_LOCAL_ACTIONS_ENV: "${rootProject.project(':smoke-test').projectDir}/test_resources/actions/actions.env" DATAHUB_LOCAL_ACTIONS_ENV: "${rootProject.project(':smoke-test').projectDir}/test_resources/actions/actions.env"
] ]
], ],
'quickstartCypress': [
profile: 'debug',
modules: python_services_modules + backend_profile_modules + [':datahub-frontend', ':datahub-actions'],
isDebug: true,
additionalEnv: [
DATAHUB_LOCAL_ACTIONS_ENV: "${rootProject.project(':smoke-test').projectDir}/test_resources/actions/actions.env"
],
// Override project name for cypress dev environment
additionalConfig: [
projectName: 'dh-cypress'
]
],
'quickstartDebugMin': [ 'quickstartDebugMin': [
profile: 'debug-min', profile: 'debug-min',
modules: backend_profile_modules + [':datahub-frontend'], modules: backend_profile_modules + [':datahub-frontend'],

View File

@ -14,6 +14,15 @@ $ cd docker/profiles
$ docker compose --profile <profile name> up $ docker compose --profile <profile name> up
``` ```
Alternatively, you can use the gradle tasks defined in `docker/build.gradle`:
```bash
# Run from the project root
./gradlew quickstart # Uses the 'quickstart' profile
./gradlew quickstartDebug # Uses the 'debug' profile
./gradlew quickstartCypress # Uses the 'debug' profile with custom project name 'dh-cypress'
```
Use Control-c (`^c`) to terminate the running system. This will automatically stop all running containers. Use Control-c (`^c`) to terminate the running system. This will automatically stop all running containers.
To remove the containers use the following: To remove the containers use the following:
@ -93,6 +102,18 @@ Run everything except for the `frontend` component. Useful for running just a lo
Runs everything except for the GMS. Useful for running just a local (non-docker) GMS instance. Runs everything except for the GMS. Useful for running just a local (non-docker) GMS instance.
### `quickstartCypress`
Runs the same configuration as `debug` but uses a custom project name (`dh-cypress`) instead of the default `datahub` project name. This is useful for Cypress testing scenarios where you need to isolate the docker compose project from other running instances.
To load test data for Cypress testing, you can use the `:smoke-test:cypressData` gradle task:
```bash
./gradlew :smoke-test:cypressData
```
This will populate the running DataHub instance with sample data suitable for Cypress testing scenarios.
### Development Profiles Table ### Development Profiles Table
| Profile Name | MySQL | Postgres | Cassandra | Neo4j | Frontend | GMS | Actions | SystemUpdate | MAE | MCE | Kafka | OpenSearch | Elasticsearch | Localstack (AWS) | | Profile Name | MySQL | Postgres | Cassandra | Neo4j | Frontend | GMS | Actions | SystemUpdate | MAE | MCE | Kafka | OpenSearch | Elasticsearch | Localstack (AWS) |