Skip to content

Commit cf8c436

Browse files
authored
Merge pull request #185 from andrewm4894/use-sqlite-for-dagster-db-for-demo
Use sqlite for dagster db for demo
2 parents 0e5a78b + 21395cf commit cf8c436

File tree

159 files changed

+1674
-1689
lines changed

Some content is hidden

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

159 files changed

+1674
-1689
lines changed

.cursor/rules/development.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The **Makefile contains many common development commands** organized by category
4545
- `make docs-build` - Build static documentation site
4646

4747
## Project Structure
48-
- **Local development**: Use `make local` for Dagster + `make dashboard`
48+
- **Local development**: Use `make local` for Dagster + `make dashboard`
4949
- **Docker development**: Use `make docker-smart` for full stack
5050
- **Hot reload**: Configuration changes can be reloaded without restarts
5151
- **Multiple reset levels**: From gentle rebuilds to nuclear cleanup options

.devcontainer/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This directory contains multiple devcontainer configurations for different use c
88
- **Purpose**: Quick start for new users or demos
99
- **Docker Strategy**: Pulls pre-built images from Docker Hub
1010
- **Speed**: ⚡ Fast startup (30-60 seconds)
11-
- **Use Cases**:
11+
- **Use Cases**:
1212
- New users trying out anomstack
1313
- Demos and presentations
1414
- Quick testing without development setup
@@ -32,7 +32,7 @@ This directory contains multiple devcontainer configurations for different use c
3232
### VS Code Dev Containers
3333

3434
1. **Default**: Open folder in VS Code → "Reopen in Container"
35-
2. **Development**:
35+
2. **Development**:
3636
- Open Command Palette (`Ctrl+Shift+P`)
3737
- "Dev Containers: Reopen in Container"
3838
- Select `devcontainer.dev.json`
@@ -78,4 +78,4 @@ Both configurations provide:
7878

7979
## 📚 Documentation
8080

81-
For more information, see the main [README.md](../README.md) and [DOCKER.md](../DOCKER.md) files.
81+
For more information, see the main [README.md](../README.md) and [DOCKER.md](../DOCKER.md) files.

.devcontainer/devcontainer.dev.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
4848
},
4949
"shutdownAction": "stopCompose"
50-
}
50+
}

.devcontainer/initialize.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ mkdir -p /opt/dagster/dagster_home
2222
PYTHON_INGEST_CONFIG="metrics/examples/python/python_ingest_simple/python_ingest_simple.yaml"
2323
if [ -f "$PYTHON_INGEST_CONFIG" ]; then
2424
echo "Updating python_ingest_simple job schedules to RUNNING for Codespaces..."
25-
25+
2626
# Array of schedule statuses to set to RUNNING
2727
SCHEDULE_STATUSES=(
2828
"ingest_default_schedule_status"
2929
"train_default_schedule_status"
3030
"score_default_schedule_status"
3131
"alert_default_schedule_status"
3232
)
33-
33+
3434
# Update each schedule status
3535
for status in "${SCHEDULE_STATUSES[@]}"; do
3636
if grep -q "$status:" "$PYTHON_INGEST_CONFIG"; then
@@ -43,7 +43,7 @@ if [ -f "$PYTHON_INGEST_CONFIG" ]; then
4343
echo "Added $status: RUNNING"
4444
fi
4545
done
46-
46+
4747
echo "Updated python_ingest_simple job schedules to RUNNING"
4848
else
4949
echo "Warning: python_ingest_simple.yaml not found at $PYTHON_INGEST_CONFIG"
@@ -55,4 +55,4 @@ fi
5555
# - Set up configuration
5656
# - Prepare volumes/directories
5757

58-
echo "Initialize script completed successfully!"
58+
echo "Initialize script completed successfully!"

.example.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,4 @@ ANOMSTACK_CONFIG_RELOAD_STATUS=STOPPED
160160

161161
# Enable smart config file watcher sensor (reloads only when files change)
162162
ANOMSTACK_CONFIG_WATCHER=true
163-
ANOMSTACK_CONFIG_WATCHER_INTERVAL=30
163+
ANOMSTACK_CONFIG_WATCHER_INTERVAL=30

.github/workflows/pytest.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
token: ${{ secrets.GITHUB_TOKEN }}
18-
18+
1919
- name: Set up Python 3.11
2020
uses: actions/setup-python@v4
2121
with:
2222
python-version: "3.11"
23-
23+
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
2727
pip install pytest pytest-cov
2828
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2929
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
30-
30+
3131
- name: Test with pytest and generate coverage
3232
run: |
3333
pytest tests/ --cov=anomstack --cov-report=term-missing --cov-report=json
34-
34+
3535
- name: Extract coverage percentage
3636
id: coverage
3737
run: |
@@ -44,7 +44,7 @@ jobs:
4444
")
4545
echo "percentage=$COVERAGE" >> $GITHUB_OUTPUT
4646
echo "Coverage: $COVERAGE%"
47-
47+
4848
- name: Determine badge color
4949
id: badge-color
5050
run: |
@@ -62,54 +62,54 @@ jobs:
6262
fi
6363
echo "color=$COLOR" >> $GITHUB_OUTPUT
6464
echo "Badge color: $COLOR"
65-
65+
6666
- name: Update coverage badge in README
6767
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
6868
run: |
6969
COVERAGE=${{ steps.coverage.outputs.percentage }}
7070
COLOR=${{ steps.badge-color.outputs.color }}
71-
71+
7272
# Update main README.md
7373
sed -i "s/Coverage-[0-9]*%25-[a-z]*/Coverage-${COVERAGE}%25-${COLOR}/g" README.md
74-
74+
7575
# Update tests/README.md
7676
sed -i "s/\*\*Coverage:\*\* [0-9]*% overall/\*\*Coverage:\*\* ${COVERAGE}% overall/g" tests/README.md
7777
sed -i "s/achieves \*\*[0-9]*% overall coverage\*\*/achieves \*\*${COVERAGE}% overall coverage\*\*/g" tests/README.md
7878
sed -i "s/maintains \*\*[0-9]*% test coverage\*\*/maintains \*\*${COVERAGE}% test coverage\*\*/g" CONTRIBUTING.md
79-
79+
8080
echo "Updated coverage badge to ${COVERAGE}% with color ${COLOR}"
81-
81+
8282
- name: Commit and push changes
8383
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
8484
run: |
8585
git config --local user.email "[email protected]"
8686
git config --local user.name "GitHub Action"
87-
87+
8888
if git diff --quiet; then
8989
echo "No changes to commit"
9090
else
9191
git add README.md tests/README.md CONTRIBUTING.md
9292
git commit -m "🔄 Auto-update coverage badge to ${{ steps.coverage.outputs.percentage }}% [skip ci]"
9393
git push
9494
fi
95-
95+
9696
- name: Comment PR with coverage
9797
if: github.event_name == 'pull_request'
9898
uses: actions/github-script@v6
9999
with:
100100
script: |
101101
const coverage = '${{ steps.coverage.outputs.percentage }}';
102102
const color = '${{ steps.badge-color.outputs.color }}';
103-
103+
104104
const comment = `## 📊 Test Coverage Report
105-
105+
106106
**Coverage:** ${coverage}% (${color})
107-
107+
108108
${coverage >= 47 ? '✅ Coverage maintained or improved!' : '⚠️ Coverage decreased from baseline (47%)'}
109-
109+
110110
> 💡 See detailed coverage report in the [tests README](./tests/README.md#coverage-report)
111111
`;
112-
112+
113113
github.rest.issues.createComment({
114114
issue_number: context.issue.number,
115115
owner: context.repo.owner,

0 commit comments

Comments
 (0)