Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: project-codeflare/codeflare-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.15
Choose a base ref
...
head repository: project-codeflare/codeflare-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 356 changed files with 32,077 additions and 12,646 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
store/**/*.md
*~
56 changes: 56 additions & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CLI

# cancel any prior runs for this workflow and this PR (or branch)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
kind:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [16.x]
shell: [/bin/bash, /bin/zsh]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

# the linux image for github actions does not include zsh
# FIXME: ugh, apt permissions errors ensue if we do this...
# - name: Install zsh on Linux
# run: sudo apt-get update; sudo apt-get install zsh
# if: matrix.os == 'ubuntu-latest'

- run: npm ci && npm run build:headless
shell: bash
env:
NODE_OPTIONS: "--max_old_space_size=8192"

- name: Run Test (with bash and zsh)
env:
EXECUTABLE_PATH: github-actions-production
SHELL: ${{ matrix.shell }}
run: ./tests/cli/run.sh
if: matrix.os == 'macOS-latest'

- name: Run Test (with bash)
env:
EXECUTABLE_PATH: github-actions-production
run: ./tests/cli/run.sh
if: matrix.os != 'macOS-latest' && matrix.shell == '/bin/bash'

58 changes: 58 additions & 0 deletions .github/workflows/kind.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Kind

# cancel any prior runs for this workflow and this PR (or branch)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
kind:
runs-on: ${{ matrix.os }}

strategy:
matrix:
profile:
- non-gpu1/keep-it-simple # ray
- non-gpu2/keep-it-simple # ray
- non-gpu3/keep-it-simple # ray
- non-gpu4/keep-it-simple # ray
- non-gpu5/keep-it-simple # ray with dashdash args
- non-gpu6/mcad-default # torchx
- non-gpu6-http/mcad-default # torchx, using an http fetch to get the workdir
# - non-gpu1/ray-autoscaler
- non-gpu1/mcad-default # ray
- non-gpu1/mcad-coscheduler # ray
- non-gpu1/mcad-preinstalled # ray
os: [ubuntu-latest]
node-version: [16.x]

steps:
- uses: actions/checkout@v3

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.3.0
with:
install_only: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Setup
env:
TERM: xterm
run: ./tests/kind/setup-ci.sh

- name: Run Test with profile ${{ matrix.profile }}
env:
EXECUTABLE_PATH: github-actions-production
DEBUG_KUBERNETES: true
run: ./tests/kind/run.sh ${{ matrix.profile }}
49 changes: 49 additions & 0 deletions .github/workflows/self-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Testing of the self-test capability
name: Self-test

# cancel any prior runs for this workflow and this PR (or branch)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
kind:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

steps:
- uses: actions/checkout@v3

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.3.0
with:
install_only: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Setup
env:
TERM: xterm
run: ./tests/kind/setup-ci.sh

- name: Run Test with profile ${{ matrix.profile }}
env:
EXECUTABLE_PATH: github-actions-production
TERM: xterm
DEBUG_KUBERNETES: true
TEST_LOG_AGGREGATOR: true
run: ./tests/self-test/run.sh
10 changes: 8 additions & 2 deletions .github/workflows/test.yml → .github/workflows/ui.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Tests
name: UI

# cancel any prior runs for this workflow and this PR (or branch)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
@@ -10,7 +15,7 @@ on:
branches: [ main ]

jobs:
test-with-prod-build:
production:
runs-on: ${{ matrix.os }}

strategy:
@@ -28,6 +33,7 @@ jobs:
- run: npm ci

- name: Build production app
shell: bash
env:
NO_INSTALLER: true
run: npm run build:electron:${{ runner.os }}:${{ runner.arch }}
9 changes: 8 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -2,4 +2,11 @@
plugins/*/dist
plugins/*/mdist
tests/**/*.md
store/**/*.md
store/**/*.json
store/**/*.md

# don't pretty-print notebooks, since spacing is important, e.g. for tabs and tips
plugins/*/notebooks/**/*.md
plugins/*/notebooks/**/*.json

tests/**/inputs/*.json
Loading