Skip to content
Open
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
142 changes: 140 additions & 2 deletions .github/workflows/test-framework-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
"^\.github/workflows/test-framework-cli\.yaml"
"^apps/framework-cli-e2e/"
"^apps/framework-cli/"
"^templates/python/"
"^templates/typescript/"
"^templates/python"
"^templates/typescript"
"^packages/"
"Cargo.lock"
"pnpm-lock.yaml"
Expand Down Expand Up @@ -716,6 +716,138 @@ jobs:
run: |
cat ~/.moose/*-cli.log

test-e2e-cluster-typescript:
needs:
[detect-changes, check, test-cli, test-ts-moose-lib, test-py-moose-lib]
if: needs.detect-changes.outputs.should_run == 'true'
name: Test E2E Cluster Support - TypeScript (Node 20)
runs-on: ubuntu-latest
permissions:
contents: read
env:
RUST_BACKTRACE: full
steps:
- name: Install Protoc (Needed for Temporal)
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: "23.x"

- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}

# Login to Docker hub to get higher rate limits when moose pulls images
- name: Login to Docker Hub
uses: ./.github/actions/docker-login
with:
op-service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

- uses: pnpm/action-setup@v4

- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Get system info
id: system
run: |
echo "version=$(lsb_release -rs)" >> $GITHUB_OUTPUT
echo "distro=$(lsb_release -is)" >> $GITHUB_OUTPUT

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
cache: true
cache-shared-key: ${{ runner.os }}-${{ steps.system.outputs.distro }}-${{ steps.system.outputs.version }}-${{ runner.arch }}-rust
cache-on-failure: true
cache-all-crates: true
cache-workspace-crates: true

- name: Run TypeScript Cluster E2E Tests
run: pnpm install --frozen-lockfile && pnpm --filter=framework-cli-e2e run test -- --grep "TypeScript Cluster Template"
env:
MOOSE_TELEMETRY_ENABLED: false

- name: Inspect Logs
if: always()
run: |
cat ~/.moose/*-cli.log

test-e2e-cluster-python:
needs:
[detect-changes, check, test-cli, test-ts-moose-lib, test-py-moose-lib]
if: needs.detect-changes.outputs.should_run == 'true'
name: Test E2E Cluster Support - Python (Python 3.13)
runs-on: ubuntu-latest
permissions:
contents: read
env:
RUST_BACKTRACE: full
steps:
- name: Install Protoc (Needed for Temporal)
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: "23.x"

- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}

# Login to Docker hub to get higher rate limits when moose pulls images
- name: Login to Docker Hub
uses: ./.github/actions/docker-login
with:
op-service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

- uses: pnpm/action-setup@v4

- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Get system info
id: system
run: |
echo "version=$(lsb_release -rs)" >> $GITHUB_OUTPUT
echo "distro=$(lsb_release -is)" >> $GITHUB_OUTPUT

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
cache: true
cache-shared-key: ${{ runner.os }}-${{ steps.system.outputs.distro }}-${{ steps.system.outputs.version }}-${{ runner.arch }}-rust
cache-on-failure: true
cache-all-crates: true
cache-workspace-crates: true

- name: Setup Python 3.13
uses: actions/setup-python@v4
with:
python-version: "3.13"

- name: Upgrade Python build tools
run: pip install --upgrade pip setuptools wheel

- name: Run Python Cluster E2E Tests
run: pnpm install --frozen-lockfile && pnpm --filter=framework-cli-e2e run test -- --grep "Python Cluster Template"
env:
MOOSE_TELEMETRY_ENABLED: false

- name: Inspect Logs
if: always()
run: |
cat ~/.moose/*-cli.log

lints:
needs: detect-changes
if: needs.detect-changes.outputs.should_run == 'true'
Expand Down Expand Up @@ -778,6 +910,8 @@ jobs:
test-e2e-python-tests,
test-e2e-backward-compatibility-typescript,
test-e2e-backward-compatibility-python,
test-e2e-cluster-typescript,
test-e2e-cluster-python,
lints,
]
if: always()
Expand Down Expand Up @@ -807,6 +941,8 @@ jobs:
[[ "${{ needs.test-e2e-python-tests.result }}" == "failure" ]] || \
[[ "${{ needs.test-e2e-backward-compatibility-typescript.result }}" == "failure" ]] || \
[[ "${{ needs.test-e2e-backward-compatibility-python.result }}" == "failure" ]] || \
[[ "${{ needs.test-e2e-cluster-typescript.result }}" == "failure" ]] || \
[[ "${{ needs.test-e2e-cluster-python.result }}" == "failure" ]] || \
[[ "${{ needs.lints.result }}" == "failure" ]]; then
echo "One or more required jobs failed"
exit 1
Expand All @@ -822,6 +958,8 @@ jobs:
[[ "${{ needs.test-e2e-python-tests.result }}" == "success" ]] && \
[[ "${{ needs.test-e2e-backward-compatibility-typescript.result }}" == "success" ]] && \
[[ "${{ needs.test-e2e-backward-compatibility-python.result }}" == "success" ]] && \
[[ "${{ needs.test-e2e-cluster-typescript.result }}" == "success" ]] && \
[[ "${{ needs.test-e2e-cluster-python.result }}" == "success" ]] && \
[[ "${{ needs.lints.result }}" == "success" ]]; then
echo "All required jobs succeeded"
exit 0
Expand Down
Loading
Loading