Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverting #211 and #206 #214

Merged
merged 1 commit into from
Nov 29, 2024
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
62 changes: 0 additions & 62 deletions .devcontainer/devcontainer.json

This file was deleted.

71 changes: 0 additions & 71 deletions .devcontainer/post-create.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .gitattributes

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/base-build.yml

This file was deleted.

96 changes: 96 additions & 0 deletions .github/workflows/cluster-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Build FarmVibes.AI cluster
run-name: Cluster build and helloworld test
on: [push, pull_request, workflow_dispatch]
env:
FARMVIBES_AI_SKIP_DOCKER_FREE_SPACE_CHECK: yes
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Free space before cleanup
shell: bash
run: |
echo "Memory and swap:"
free -h
echo
echo "Available storage:"
df -h
echo
- name: Remove unused software
shell: bash
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -fr /usr/local/lib/android
sudo rm -fr /opt/ghc
- name: Free space after cleanup
shell: bash
run: |
echo "Memory and swap:"
free -h
echo
echo "Available storage:"
df -h
echo

- name: Update pip version
shell: bash
run: pip install --upgrade pip

- name: Checkout
uses: actions/checkout@v3

- name: Install Python requirements
shell: bash
run: pip install --user ./src/vibe_core

- name: Actually build cluster
shell: bash
run: farmvibes-ai local setup

- name: Cluster status
shell: bash
run: |
echo "Deployments:"
kubectl get deployments
kubectl describe deployments
echo "Pods:"
kubectl get pods
echo "Events:"
kubectl get events

- name: Free space after cluster creation
shell: bash
run: |
echo "Memory and swap:"
free -h
echo
echo "Available storage:"
df -h
echo

- name: Run Hello World workflow
shell: bash
run: python -m vibe_core.farmvibes_ai_hello_world 300

- name: Install tool to view helloworld output
shell: bash
run: yes | sudo apt install caca-utils || echo

- name: Show helloworld output
shell: bash
run: find ~/.cache/farmvibes-ai/data -type f -name '*.tif' -exec img2txt {} \; 2> /dev/null

- name: Restart cluster
shell: bash
run: farmvibes-ai local restart

- name: Wait a bit before submitting a new run (as documented)
shell: bash
run: sleep 90

- name: Run Hello World workflow again
shell: bash
run: |
rm -fr ~/.cache/farmvibes-ai/data/{assets,stac}
python -m vibe_core.farmvibes_ai_hello_world 300
41 changes: 0 additions & 41 deletions .github/workflows/docker-build.yml

This file was deleted.

Loading
Loading