Skip to content

Latest commit

Β 

History

History
93 lines (65 loc) Β· 3.86 KB

File metadata and controls

93 lines (65 loc) Β· 3.86 KB

Onboarding walkthrough β€” Jonathan

Goals (by end of session)

  • Run one management command locally (dry-run or scoped test)
  • Trace one write path: command β†’ services.py β†’ model
  • Explain how cppa_pinecone_sync fits after a doc or GitHub collector
  • Run or interpret lint-imports once

Agenda

  1. Mental model (15m) β€” Onboarding.md Β§1; service layer and Pinecone pipeline.
  2. Live trace (45m) β€” Docs tracker β†’ usage β†’ Pinecone β†’ core contracts (below).
  3. Import boundaries (15m) β€” cross-app-dependencies.md Β§5, .importlinter.
  4. Tests & PR hygiene (15m) β€” pytest, review checklist, CODEOWNERS on docs/ and core/.
  5. Q&A and homework (10m) β€” Review a draft PR touching boost_library_docs_tracker/ or cppa_pinecone_sync/.

Focus apps

App Why
boost_library_docs_tracker Doc crawl; joins boost_library_tracker; Pinecone upstream
boost_usage_tracker External repo Boost header usage
cppa_pinecone_sync Vector upserts and fail lists
core AbstractCollector, protocols, shared operations

READMEs: boost_library_docs_tracker/README.md, boost_usage_tracker/README.md, cppa_pinecone_sync/README.md, core/README.md.

Hands-on exercises

Exercise A β€” Docs command

python manage.py help run_boost_library_docs_tracker
# Skim boost_library_docs_tracker/management/commands/run_boost_library_docs_tracker.py

Note dependency on pandoc (see root README).

Exercise B β€” Service layer + generated docs

  1. Open boost_library_docs_tracker/services.py and one public function.
  2. Open service_api/boost_library_docs_tracker.md β€” generated region between SERVICE_API:GENERATED markers.
  3. Regenerate check (optional): python scripts/generate_service_docs.py --check

Exercise C β€” Pinecone path

Read Architecture_overview.md Β§ Pinecone pipeline and Pinecone_preprocess_guideline.md intro. Open cppa_pinecone_sync/services.py for fail-list / sync status writes.

Exercise D β€” Import linter

# From repo root with dev deps installed:
lint-imports
# or: pre-commit run lint-imports --all-files

If it fails, read the contract name in the error and find it in cross-app-dependencies.md Β§5.

Exercise E β€” Tests

python -m pytest boost_library_docs_tracker/tests -q --tb=no -x
# or: python -m pytest cppa_pinecone_sync/tests -q --tb=no -x

Review homework (after session)

  • Review a draft PR touching boost_library_docs_tracker/, boost_usage_tracker/, cppa_pinecone_sync/, or core/.
  • Leave at least one concrete comment.
  • Confirm lint-imports passes on the PR branch if imports changed.

Session log

Field Value
Date
Attendees Jonathan (@jonathanMLDev), Daniel (@snowfox1003)
Commands run e.g. manage.py help, pytest …, lint-imports
Questions / answers
Follow-up PRs Link PR(s) Jonathan reviewed:
Facilitator sign-off Ready to review PRs in docs/usage/Pinecone/core paths? Y / N

Notes

Space for additional notes from the session.