Skip to content

Commit

Permalink
Merge branch 'rc' of https://github.com/synnaxlabs/synnax into rc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lham42 committed Aug 14, 2024
2 parents 25d4d3c + 925a4c2 commit cfca8da
Show file tree
Hide file tree
Showing 119 changed files with 8,229 additions and 4,801 deletions.
9 changes: 5 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE/rc.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ I can successfully:
- [ ] Download a range as a CSV.
- [ ] Create a range from line plot selection.
- [ ] Use the measuring tool on the line plot.
- [ ] I can repeatedly start and stop an acquisition read task, and tooltips will appear in the correct location.

### Schematics

Expand Down Expand Up @@ -233,7 +234,7 @@ I can successfully:
- [ ] Single Sampling - Read timestamps from the OPC UA server.
- [ ] Array Sampling - Read from multiple channels in array-sampling mode.
- [ ] Array Sampling - Read from multiple channels in array-sampling mode with
different array sizes.
different array sizes.
- [ ] 1
- [ ] 10
- [ ] 100
Expand All @@ -243,7 +244,7 @@ I can successfully:
- [ ] Channel Selection - The read task dialog will recommend synnax channels
based on the configured OPC UA node.
- [ ] Connect to a physical device and read data from it.
- [ ] Maintain operation of the driver when a device is disconnected or a channel is
- [ ] Maintain operation of the driver when a device is disconnected or a channel is
removed from the device while it is running.
- [ ] Enable and disable data saving at will.
- [ ] Leave a task paused for an hour and resume it again without needing to reconfigure.
Expand All @@ -264,7 +265,7 @@ I can successfully:
- [ ] Not see chassis devices connected to the machine
- [ ] See devices connected to a chassis
- [ ] Run the driver without the Daqmx and Syscfg libraries installed on the machine.
- [ ] Get feedback when trying to create an NI task on a machine that doesn't have the
- [ ] Get feedback when trying to create an NI task on a machine that doesn't have the
required libraries installed.

#### Read Task
Expand All @@ -286,7 +287,7 @@ I can successfully:
- [ ] I can succesfully configure and run an analog read task for each of the
following channels:
- [ ] Acceleration
- [ ] Acceleration 4 wire
- [ ] Acceleration 4 wire
- [ ] Bridge
- [ ] All bridge configurations
- [ ] Charge
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/api.client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: "Check API"
on:
pull_request:
branches:
- rc
- main
workflow_dispatch:
permissions:
contents: write
packages: write

jobs:
setup:
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.filter.outputs.changed }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Diff Changes
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
changed:
- "client/**"
- "freighter/py/**"
- "synnax/**"
- "cesium/**"
- "aspen/**"
- "x/**"
- "freighter/**"
- ".github/workflows/test.client.yaml"
api-typescript:
needs: setup
runs-on: ubuntu-latest
if: needs.setup.outputs.changed == 'true'
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Diff Changes
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
changed:
- "client/ts/**"
- "freighter/ts/**"
- "synnax/**"
- "cesium/**"
- "aspen/**"
- "x/**"
- ".github/workflows/test.client.yaml"
- name: Setup pnpm
if: steps.filter.outputs.changed == 'true'
uses: pnpm/action-setup@v3
with:
version: 9

- name: Setup Node
if: steps.filter.outputs.changed == 'true'
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install Dependencies
if: steps.filter.outputs.changed == 'true'
run: pnpm install

- name: Build
if: steps.filter.outputs.changed == 'true'
run: pnpm build:client

- name: Check API
if: steps.filter.outputs.changed == 'true'
run: pnpm checkApi:client
21 changes: 0 additions & 21 deletions .github/workflows/deploy.py.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,6 @@ jobs:
- "client/py/**"
- ".github/workflows/pypi.publish.yaml"
- name: Conditionally Bump Alamos Version
if: steps.alamos.outputs.changed == 'true'
working-directory: ./alamos/py
run: |
poetry version patch
ALAMOS_VERSION=$(poetry version -s)
- name: Conditionally Bump Freighter Version
if: steps.freighter.outputs.changed == 'true'
working-directory: ./freighter/py
run: |
poetry version patch
FREIGHTER_VERSION=$(poetry version -s)
- name: Conditionally Bump Client Version
if: steps.client.outputs.changed == 'true'
working-directory: ./client/py
run: |
poetry version patch
CLIENT_VERSION=$(poetry version -s)
- name: Update packages with correct versions
run: |
cd ./client/py
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,24 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Login to Github Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Download Latest Earthly
- name: Download Latest Earthly
uses: earthly/actions-setup@v1

- name: Build Image
run: earthly --push +docker -tag=${GITHUB_SHA} -driver=false
working-directory: ./synnax

- name: Push to Github Container Registry
run: docker push ghcr.io/synnaxlabs/synnax:${GITHUB_SHA}

test-python:
needs: [setup, build-server]
runs-on: ubuntu-latest
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/test.console.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: "Test - Console"
on:
pull_request:
branches:
- rc
- main
push:
branches:
- rc
- main
workflow_dispatch:
jobs:
test:
name: "Run Tests"
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Diff Changes
uses: dorny/paths-filter@v3
id: filter
with:
base: ${{ github.ref }}
filters: |
changed:
- "console/**"
- "pluto/**"
- "client/ts/**"
- "freighter/ts/**"
- "x/ts/**"
- ".github/workflows/test.console.yaml"
- name: Set up pnpm
if: steps.filter.outputs.changed == 'true'
uses: pnpm/action-setup@v3
with:
version: 9

- name: Set up Node
if: steps.filter.outputs.changed == 'true'
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install Dependencies
if: steps.filter.outputs.changed == 'true'
run: pnpm install --frozen-lockfile

- name: Turbo Cache
uses: actions/cache@v3
with:
path: .turbo-cache
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Build Pluto
if: needs.setup.outputs.changed == 'true'
run: pnpm build:pluto

- name: Build Drift
if: needs.setup.outputs.changed == 'true'
run: pnpm build:drift

- name: Test
if: steps.filter.outputs.changed == 'true'
run: pnpm test:console


30 changes: 30 additions & 0 deletions .github/workflows/test.updates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check Versions
on:
pull_request:
branches:
- rc
- main
push:
branches:
- rc
- main
workflow_dispatch:
jobs:
check-versions:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Navigate to scripts directory
run: cd ./scripts

- name: Grant execute permissions for check_version.sh
run: chmod +x check_version.sh
working-directory: ./scripts

- name: Run version check script
run: ./check_version.sh
working-directory: ./scripts

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ dist-ssr
nyc_output
*.tsbuildinfo
*.ts.timestamp-*
**/tsdoc-metadata.json
**/temp/
*.test

# |||| GO ||||
*.test

# |||| RUST ||||
Expand Down
Loading

0 comments on commit cfca8da

Please sign in to comment.