Skip to content

TS_Delivery

TS_Delivery #889

Workflow file for this run

name: TS_Delivery
description: "should verify message loss when receiving via 200 streams"
on:
schedule:
- cron: "15,45 * * * *" # Runs at 15 and 45 minutes past each hour
workflow_dispatch:
jobs:
dev:
runs-on: ubuntu-latest
env:
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
LOGGING_LEVEL: ${{ vars.LOGGING_LEVEL }}
XMTP_ENV: "dev"
GEOLOCATION: ${{ vars.GEOLOCATION }}
DELIVERY_AMOUNT: ${{ vars.DELIVERY_AMOUNT }}
DELIVERY_RECEIVERS: ${{ vars.DELIVERY_RECEIVERS }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: "1"
- name: Ensure data folder exists
run: mkdir -p .data
- name: List data folder contents
run: ls -la .data
- run: corepack enable
- run: yarn
- name: Make test script executable
run: chmod +x ./scripts/run-test.sh
- name: Run tests with retry
run: ./scripts/run-test.sh TS_Delivery
- name: Upload reports artifacts
uses: actions/upload-artifact@v4
with:
name: ts_delivery_${{ env.XMTP_ENV }}
path: logs/
production:
runs-on: ubuntu-latest
env:
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
LOGGING_LEVEL: ${{ vars.LOGGING_LEVEL }}
XMTP_ENV: "production"
GEOLOCATION: ${{ vars.GEOLOCATION }}
DELIVERY_AMOUNT: ${{ vars.DELIVERY_AMOUNT }}
DELIVERY_RECEIVERS: ${{ vars.DELIVERY_RECEIVERS }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: "1"
- name: Ensure data folder exists
run: mkdir -p .data
- name: List data folder contents
run: ls -la .data
- run: corepack enable
- run: yarn
- name: Make test script executable
run: chmod +x ./scripts/run-test.sh
- name: Run tests with retry
run: ./scripts/run-test.sh TS_Delivery
- name: Upload reports artifacts
uses: actions/upload-artifact@v4
with:
name: ts_delivery_${{ env.XMTP_ENV }}
path: logs/