Skip to content

Commit

Permalink
try github action
Browse files Browse the repository at this point in the history
  • Loading branch information
adnan wahab committed Oct 19, 2024
1 parent c27c639 commit 71c73fb
Show file tree
Hide file tree
Showing 502 changed files with 44,565 additions and 26 deletions.
3 changes: 2 additions & 1 deletion scripts/infra/systemd/homelab_status_page.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
Type=simple
User=adnan
WorkingDirectory=/home/adnan/homelab_status_page/web-ui
ExecStart=/home/adnan/.bun/bin/bun run js/course_handler.tsx
ExecStart=/home/adnan/.bun/bin/bun run /home/adnan/homelab_status_page/web-ui/js/course_handler.tsx
Restart=always
RestartSec=5
StandardOutput=append:/home/adnan/homelab_status_page/web-ui/log/homelab-status-page.log
Expand All @@ -20,3 +20,4 @@ WantedBy=multi-user.target



#/home/adnan/.bun/bin/bun run ./web-ui/js/course_handler.tsx
37 changes: 16 additions & 21 deletions scripts/restart-blog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,42 +120,36 @@ echo "Restart process completed."


echo "Creating symlink for homelab-status-page systemd service..."
rm "/etc/systemd/system/homelab_status_page.service"
#sudo rm -f "/etc/systemd/system/homelab_status_page.service"
sudo rm "/etc/systemd/system/homelab_status_page.service"
source_file="/home/adnan/homelab_status_page/scripts/infra/systemd/homelab_status_page.service"
target_file="/etc/systemd/system/homelab_status_page.service"

if [ -f "$source_file" ]; then
if [ -L "$target_file" ]; then
echo "Symlink already exists. Removing existing symlink..."
sudo rm "$target_file"
fi
echo "Creating new symlink..."
sudo ln -s "$source_file" "$target_file"
echo "Symlink created successfully."
else
echo "Source file $source_file not found. Cannot create symlink."
exit 1
fi

echo "Reloading systemd daemon..."
sudo systemctl daemon-reload

echo "Checking if systemd is running for homelab_status_page..."

# Check if the homelab_status_page service is active
if systemctl is-active --quiet homelab_status_page; then
echo "homelab_status_page service is running."
else
echo "homelab_status_page service is not running."
fi
echo "Enabling homelab_status_page service..."
sudo systemctl enable homelab_status_page.service

# Print the contents of the homelab_status_page systemd service file
service_file="/etc/systemd/system/homelab_status_page.service"
if [ -f "$service_file" ]; then
echo "Displaying the contents of the homelab_status_page systemd service file:"
cat "$service_file"
echo "Starting homelab_status_page service..."
if sudo systemctl start homelab_status_page.service; then
echo "homelab_status_page service started successfully."
else
echo "homelab_status_page systemd service file not found."
echo "Failed to start homelab_status_page service. Checking status..."
sudo systemctl status homelab_status_page.service
echo "Checking journal logs for more information..."
sudo journalctl -u homelab_status_page.service -n 50 --no-pager
fi


#jetson containers -> systemD
#proxmox - DOCKERIZE FIGURE OUT - > FIRE RCRACK CRIU
# Portainer
Expand All @@ -164,7 +158,8 @@ fi
#k8 after 50 GPUs (12+ tinyboxes)
sudo systemctl daemon-reload
sudo systemctl enable homelab_status_page.service
sudo systemctl start homelab_status_page.service
sudo systemctl start homelab_status_page.service


#sudo systemctl status homelab_status_page.service
#alias restart="bash scripts/restart-blog.sh"
24 changes: 20 additions & 4 deletions web-ui/js/views/odyssey/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,26 @@ const navigation = {
// { name: 'Claim', href: '#' },
// { name: 'Privacy', href: '#' },
// { name: 'Terms', href: '#' },
/
],
social: [
{
name: "Docker",
name: "HuggingFace", //ML https://huggingface.co/lerobot/diffusion_pusht --- diagram -> scrolls across time -> sliders for every environment parameter like BV said
href: "https://huggingface.co/awahab92",
icon: (props) => (
<svg fill="white" viewBox="0 0 2334.44 537.22" {...props}>
<path
fill="$1d63ed"
stroke="white"
strokeWidth={1}
d={Docker_logo}

/>
</svg>
),
},
{
name: "Docker", //infra
href: "https://hub.docker.com/u/shelbernstein",
icon: (props) => (
<svg fill="white" viewBox="0 0 2334.44 537.22" {...props}>
Expand Down Expand Up @@ -73,7 +89,7 @@ const navigation = {
),
},
{
name: "twitter",
name: "twitter",
href: "https://x.com/roboticsodyssey",
icon: (props) => (
<svg fill="currentColor" viewBox="0 0 24 24" {...props}>
Expand All @@ -83,7 +99,7 @@ const navigation = {
},

{
name: "hackaday",
name: "hackaday", //hardware - main thing to contribute to
href: "https://hackaday.io/roboticsodyssey",
icon: (props) => (
<>
Expand Down Expand Up @@ -111,7 +127,7 @@ const navigation = {
),
},
{
name: "YouTube",
name: "YouTube", //50% hardware -50% ML
href: "https://www.youtube.com/@Robotics-Odyssey",
icon: (props) => (
<svg fill="currentColor" viewBox="0 0 24 24" {...props}>
Expand Down
146 changes: 146 additions & 0 deletions web-ui/lerobot/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# Misc
.git
tmp
wandb
data
outputs
.vscode
rl
media


# Logging
logs

# HPC
nautilus/*.yaml
*.key

# Slurm
sbatch*.sh

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
!tests/data
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Ignore .cache except calibration
.cache/*
!.cache/calibration/
!.cache/calibration/**

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
6 changes: 6 additions & 0 deletions web-ui/lerobot/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.memmap filter=lfs diff=lfs merge=lfs -text
*.stl filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.json !text !filter !merge !diff
54 changes: 54 additions & 0 deletions web-ui/lerobot/.github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "\U0001F41B Bug Report"
description: Submit a bug report to help us improve LeRobot
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to submit a bug report! 🐛
If this is not a bug related to the LeRobot library directly, but instead a general question about your code or the library specifically please use our [discord](https://discord.gg/s3KuuzsPFb).
- type: textarea
id: system-info
attributes:
label: System Info
description: If needed, you can share your lerobot configuration with us by running `python -m lerobot.scripts.display_sys_info` and copy-pasting its outputs below
render: Shell
placeholder: lerobot version, OS, python version, numpy version, torch version, and lerobot's configuration
validations:
required: true

- type: checkboxes
id: information-scripts-examples
attributes:
label: Information
description: 'The problem arises when using:'
options:
- label: "One of the scripts in the examples/ folder of LeRobot"
- label: "My own task or dataset (give details below)"

- type: textarea
id: reproduction
validations:
required: true
attributes:
label: Reproduction
description: |
If needed, provide a simple code sample that reproduces the problem you ran into. It can be a Colab link or just a code snippet.
Sharing error messages or stack traces could be useful as well!
Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
Try to avoid screenshots, as they are hard to read and don't allow copy-and-pasting.
placeholder: |
Steps to reproduce the behavior:
1.
2.
3.
- type: textarea
id: expected-behavior
validations:
required: true
attributes:
label: Expected behavior
description: "A clear and concise description of what you would expect to happen."
34 changes: 34 additions & 0 deletions web-ui/lerobot/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## What this does
Explain what this PR does. Feel free to tag your PR with the appropriate label(s).

Examples:
| Title | Label |
|----------------------|-----------------|
| Fixes #[issue] | (🐛 Bug) |
| Adds new dataset | (🗃️ Dataset) |
| Optimizes something | (⚡️ Performance) |

## How it was tested
Explain/show how you tested your changes.

Examples:
- Added `test_something` in `tests/test_stuff.py`.
- Added `new_feature` and checked that training converges with policy X on dataset/environment Y.
- Optimized `some_function`, it now runs X times faster than previously.

## How to checkout & try? (for the reviewer)
Provide a simple way for the reviewer to try out your changes.

Examples:
```bash
DATA_DIR=tests/data pytest -sx tests/test_stuff.py::test_something
```
```bash
python lerobot/scripts/train.py --some.option=true
```

## SECTION TO REMOVE BEFORE SUBMITTING YOUR PR
**Note**: Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR. Try to avoid tagging more than 3 people.

**Note**: Before submitting this PR, please read the [contributor guideline](https://github.com/huggingface/lerobot/blob/main/CONTRIBUTING.md#submitting-a-pull-request-pr).
Loading

0 comments on commit 71c73fb

Please sign in to comment.