Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ OTEL_ENABLED=False
OTEL_SERVICE_NAME=labtelemetry
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
OTEL_TRACES_EXPORTER=otlp

# Portas publicadas no host pelo docker compose.
# Descomente e ajuste se ja houver um Postgres ou um collector OTLP local.
# APP_PORT=8000
# POSTGRES_PORT=5432
# JAEGER_UI_PORT=16686
# OTLP_GRPC_PORT=4317
# OTLP_HTTP_PORT=4318
30 changes: 24 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

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

jobs:
lint:
Expand Down Expand Up @@ -35,16 +35,34 @@ jobs:
--health-retries 5
ports:
- 5432:5432
env:
DATABASE_URL: postgres://labtelemetry:labtelemetry@localhost:5432/labtelemetry
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: |
pip install -r requirements.txt
run: pip install -r requirements.txt

- name: Django system check
run: python manage.py check
working-directory: ./labtelemetry

- name: Migrations are in sync with models
run: python manage.py makemigrations --check --dry-run
working-directory: ./labtelemetry

- name: Run tests
run: python manage.py test telemetry -v 2
working-directory: ./labtelemetry

# Informativo: o projeto e um lab local, DEBUG=True por padrao.
# Expoe o delta ate um deploy real sem travar o CI.
- name: Deployment checklist (informational)
continue-on-error: true
run: python manage.py check --deploy
working-directory: ./labtelemetry
run: python manage.py test -v 2
env:
DATABASE_URL: postgres://labtelemetry:labtelemetry@localhost:5432/labtelemetry
DEBUG: "False"
34 changes: 0 additions & 34 deletions .github/workflows/django.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ automação40/
.vscode/
.idea/
.gemini/
.serena/
.DS_Store

# --- SECURITY & COMPLIANCE RULES (NEVER EXPOSE PLANNING/SENSITIVE FILES) ---
Expand All @@ -42,3 +43,19 @@ automação40/
/docs/execution/
/docs/prd/
/docs/process/

# Architecture Decision Records (internal governance)
/docs/adr/

# Heuristics usage log (local-only tooling artifact)
.heuristics_usage_log.json

# Session handoff state (local-only tooling artifact)
.last-handoff.json

# Local tooling caches
.tokensave/
.pytest_cache/
.ruff_cache/
.claude/
.serena/
31 changes: 0 additions & 31 deletions .last-handoff.json

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Roberto Nascimento

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading