Skip to content

Commit 8b41ed2

Browse files
authored
Pipeflush (#3)
* adding info upto now * adding info upto now * update again * adding scikit-learn context * small changes * upgrade pkgs * saving progress till now; implemented an agent for filtering commits + start storing patch info * validation working * partial auto-installer working * auto-installer working pipe-flush single * partially working autobuilder * added portkey * Better backup sync * update benchmarking * use dotenv * remove unneccessary type hints * remove support for 3.13 * updating build agent to be reactive * small errors * lot of updates. Dockerfile revamp, pipeflush previous layers (#4) * lot of updates. Dockerfile revamp, pipeflush previous layers * Adding PORTKEY_MODEL_NAME function for easier control. * Increase timeout for container conflict. This caused a crash. * config_agent_backend should be on top level. * Add additional logging for containers. * Correcting small bugs in dockerfile building. * Stop bypassing cache. * Help avoid race conditions in caching. * Update commit_collection code to remove caching + log tagged and perf improving commits. * Update various scripts * example notebook * Update README
1 parent 87a62fd commit 8b41ed2

56 files changed

Lines changed: 10142 additions & 1615 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
python-version: ["3.10", "3.11", "3.12", "3.13"]
32+
python-version: ["3.10", "3.11", "3.12"]
3333
fail-fast: false
3434
defaults:
3535
run:

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,8 @@ cython_debug/
195195

196196
tokens.env
197197
benchmark_results/
198-
artifacts/
198+
scratch/artifacts/
199+
output
200+
201+
# Database files
202+
*.db

CONTRIBUTING.md

Lines changed: 0 additions & 126 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

Makefile

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,62 @@
11
.PHONY: install
22
install: ## Install the virtual environment and install the pre-commit hooks
3-
@echo "🚀 Creating virtual environment using uv"
3+
@echo "Creating virtual environment using uv"
44
@uv sync
55
@uv run pre-commit install
66

77
.PHONY: backup
88
backup: ## Create a backup of the datasets, results, and analysis directories
9-
@echo "🚀 Creating backup archive"
9+
@echo "Syncing backup mirror with rsync"
1010
@/usr/bin/env bash -euo pipefail -c '\
1111
if [ ! -f tokens.env ]; then \
1212
echo "❌ Error: tokens.env file not found"; exit 1; \
1313
fi; \
14-
BACKUP_DIR=$$(grep -E "^BACKUP_DIR=" tokens.env | head -n1 | cut -d "=" -f2-); \
14+
BACKUP_DIR=$$(awk -F= '"'"'/^BACKUP_DIR=/{print $$2; exit}'"'"' tokens.env); \
1515
if [ -z "$$BACKUP_DIR" ]; then \
1616
echo "❌ Error: BACKUP_DIR not defined in tokens.env"; exit 1; \
1717
fi; \
18-
mkdir -p "$$BACKUP_DIR"; \
19-
zip -qr "$$BACKUP_DIR/datasmith.bckp" artifacts/benchmark_results artifacts/raw; \
20-
cp -f artifacts/cache.db "$$BACKUP_DIR/datasmith.cache.bckp"; \
18+
DEST="$$BACKUP_DIR/datasmith.mirror"; \
19+
mkdir -p "$$DEST"; \
20+
rsync -a --delete --human-readable --info=stats1 \
21+
scratch/ "$$DEST/scratch/"; \
2122
'
22-
2323
.PHONY: check
2424
check: ## Run code quality tools.
25-
@echo "🚀 Checking lock file consistency with 'pyproject.toml'"
25+
@echo "Checking lock file consistency with 'pyproject.toml'"
2626
@uv lock --locked
27-
@echo "🚀 Linting code: Running pre-commit"
27+
@echo "Linting code: Running pre-commit"
2828
@uv run pre-commit run -a
29-
@echo "🚀 Static type checking: Running mypy"
29+
@echo "Static type checking: Running mypy"
3030
@uv run mypy
31-
@echo "🚀 Checking for obsolete dependencies: Running deptry"
31+
@echo "Checking for obsolete dependencies: Running deptry"
3232
@uv run deptry src
3333

3434
.PHONY: test
3535
test: ## Test the code with pytest
36-
@echo "🚀 Testing code: Running pytest"
36+
@echo "Testing code: Running pytest"
3737
@uv run python -m pytest --cov --cov-config=pyproject.toml --cov-report=xml
3838

3939
.PHONY: build
4040
build: clean-build ## Build wheel file
41-
@echo "🚀 Creating wheel file"
41+
@echo "Creating wheel file"
4242
@uvx --from build pyproject-build --installer uv
4343

4444
.PHONY: clean-build
4545
clean-build: ## Clean build artifacts
46-
@echo "🚀 Removing build artifacts"
46+
@echo "Removing build artifacts"
4747
@uv run python -c "import shutil; import os; shutil.rmtree('dist') if os.path.exists('dist') else None"
4848

49+
.PHONY: docker-clean
50+
docker-clean: ## Clean up dangling Docker images and containers
51+
@echo "Cleaning up dangling Docker images and containers"
52+
@docker system prune -f
53+
54+
4955
.PHONY: help
5056
help:
5157
@uv run python -c "import re; \
5258
[[print(f'\033[36m{m[0]:<20}\033[0m {m[1]}') for m in re.findall(r'^([a-zA-Z_-]+):.*?## (.*)$$', open(makefile).read(), re.M)] for makefile in ('$(MAKEFILE_LIST)').strip().split()]"
5359

60+
61+
5462
.DEFAULT_GOAL := help

0 commit comments

Comments
 (0)