-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run Enso Cloud tests on the CI (#10964)
- Closes #9523
- Loading branch information
Showing
9 changed files
with
378 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,11 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: ./run backend test std-snowflake | ||
env: | ||
ENSO_CLOUD_COGNITO_REGION: ${{ secrets.ENSO_CLOUD_COGNITO_REGION }} | ||
ENSO_CLOUD_COGNITO_USER_POOL_ID: ${{ secrets.ENSO_CLOUD_COGNITO_USER_POOL_ID }} | ||
ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID: ${{ secrets.ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID }} | ||
ENSO_CLOUD_TEST_ACCOUNT_PASSWORD: ${{ secrets.ENSO_CLOUD_TEST_ACCOUNT_PASSWORD }} | ||
ENSO_CLOUD_TEST_ACCOUNT_USERNAME: ${{ secrets.ENSO_CLOUD_TEST_ACCOUNT_USERNAME }} | ||
ENSO_SNOWFLAKE_ACCOUNT: ${{ secrets.ENSO_SNOWFLAKE_ACCOUNT }} | ||
ENSO_SNOWFLAKE_DATABASE: ${{ secrets.ENSO_SNOWFLAKE_DATABASE }} | ||
ENSO_SNOWFLAKE_PASSWORD: ${{ secrets.ENSO_SNOWFLAKE_PASSWORD }} | ||
|
@@ -75,5 +80,69 @@ jobs: | |
GRAAL_EDITION: GraalVM CE | ||
permissions: | ||
checks: write | ||
enso-build-ci-gen-job-standard-library-tests-graal-vm-ce-linux-amd64: | ||
name: Standard Library Tests (GraalVM CE) (linux, amd64) | ||
runs-on: | ||
- self-hosted | ||
- Linux | ||
steps: | ||
- if: startsWith(runner.name, 'GitHub Actions') || startsWith(runner.name, 'Hosted Agent') | ||
name: Installing wasm-pack | ||
uses: jetli/[email protected] | ||
with: | ||
version: v0.10.2 | ||
- name: Expose Artifact API and context information. | ||
uses: actions/github-script@v7 | ||
with: | ||
script: "\n core.exportVariable(\"ACTIONS_RUNTIME_TOKEN\", process.env[\"ACTIONS_RUNTIME_TOKEN\"])\n core.exportVariable(\"ACTIONS_RUNTIME_URL\", process.env[\"ACTIONS_RUNTIME_URL\"])\n core.exportVariable(\"GITHUB_RETENTION_DAYS\", process.env[\"GITHUB_RETENTION_DAYS\"])\n console.log(context)\n " | ||
- name: Checking out the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
clean: false | ||
submodules: recursive | ||
- name: Build Script Setup | ||
run: ./run --help || (git clean -ffdx && ./run --help) | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- if: "(contains(github.event.pull_request.labels.*.name, 'CI: Clean build required') || inputs.clean_build_required)" | ||
name: Clean before | ||
run: ./run git-clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: ./run backend test standard-library | ||
env: | ||
ENSO_CLOUD_COGNITO_REGION: ${{ secrets.ENSO_CLOUD_COGNITO_REGION }} | ||
ENSO_CLOUD_COGNITO_USER_POOL_ID: ${{ secrets.ENSO_CLOUD_COGNITO_USER_POOL_ID }} | ||
ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID: ${{ secrets.ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID }} | ||
ENSO_CLOUD_TEST_ACCOUNT_PASSWORD: ${{ secrets.ENSO_CLOUD_TEST_ACCOUNT_PASSWORD }} | ||
ENSO_CLOUD_TEST_ACCOUNT_USERNAME: ${{ secrets.ENSO_CLOUD_TEST_ACCOUNT_USERNAME }} | ||
ENSO_LIB_S3_AWS_ACCESS_KEY_ID: ${{ secrets.ENSO_LIB_S3_AWS_ACCESS_KEY_ID }} | ||
ENSO_LIB_S3_AWS_REGION: ${{ secrets.ENSO_LIB_S3_AWS_REGION }} | ||
ENSO_LIB_S3_AWS_SECRET_ACCESS_KEY: ${{ secrets.ENSO_LIB_S3_AWS_SECRET_ACCESS_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- if: (success() || failure()) && github.event.pull_request.head.repo.full_name == github.repository | ||
name: Standard Library Test Reporter | ||
uses: dorny/test-reporter@v1 | ||
with: | ||
max-annotations: 50 | ||
name: Standard Library Tests Report (GraalVM CE, linux, amd64) | ||
path: ${{ env.ENSO_TEST_JUNIT_DIR }}/*/*.xml | ||
path-replace-backslashes: true | ||
reporter: java-junit | ||
- if: failure() && runner.os == 'Windows' | ||
name: List files if failed (Windows) | ||
run: Get-ChildItem -Force -Recurse | ||
- if: failure() && runner.os != 'Windows' | ||
name: List files if failed (non-Windows) | ||
run: ls -lAR | ||
- if: "(always()) && (contains(github.event.pull_request.labels.*.name, 'CI: Clean build required') || inputs.clean_build_required)" | ||
name: Clean after | ||
run: ./run git-clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
env: | ||
GRAAL_EDITION: GraalVM CE | ||
permissions: | ||
checks: write | ||
env: | ||
ENSO_BUILD_SKIP_VERSION_CHECK: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//! Environment variables commonly used by AWS services. | ||
use ide_ci::define_env_var; | ||
|
||
pub mod ci_config { | ||
use super::*; | ||
|
||
define_env_var! { | ||
/// Username for an Enso Cloud account used for running Cloud integration tests. | ||
ENSO_CLOUD_TEST_ACCOUNT_USERNAME, String; | ||
|
||
/// Password for an Enso Cloud account used for running Cloud integration tests. | ||
ENSO_CLOUD_TEST_ACCOUNT_PASSWORD, String; | ||
|
||
// The Client ID of the User Pool for Enso Cloud Cognito auth flow. | ||
ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID, String; | ||
|
||
// The User Pool ID for Enso Cloud Cognito auth flow. | ||
ENSO_CLOUD_COGNITO_USER_POOL_ID, String; | ||
|
||
// The Region used for Cognito auth flow. | ||
ENSO_CLOUD_COGNITO_REGION, String; | ||
} | ||
} | ||
|
||
pub mod test_controls { | ||
use super::*; | ||
|
||
define_env_var! { | ||
/// Locates an Enso Cloud credentials file used in tests. | ||
ENSO_CLOUD_CREDENTIALS_FILE, String; | ||
|
||
/// Denotes the URI of the Enso Cloud API deployment to be used in tests. | ||
ENSO_CLOUD_API_URI, String; | ||
|
||
/// A flag that tells the test suite to run applicable tests on the cloud environment instead of just a mock. | ||
ENSO_RUN_REAL_CLOUD_TEST, String; | ||
} | ||
} |
Oops, something went wrong.