Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 3.56 KB

development.md

File metadata and controls

68 lines (54 loc) · 3.56 KB

Development and testing

Back to the README · Architecture

Run just setup to install the locked Python 3.15 environment, including the development dependencies. Run just test for the regression suite. GitHub responses are mocked; tests do not need a token or live GitHub access. Use a separate REPO_CACHE_PATH for development data if needed.

Optional JavaScript and browser checks

just test also runs the JavaScript shortcut tests when Node.js is installed; without Node.js, that test is reported as skipped. These use Node's built-in test runner and require no npm dependencies.

The browser layout tests also run automatically when Node.js and Chrome for Testing are installed. They launch headless Chrome with a temporary profile and an automatically assigned CDP port, then close it after the tests. No browser window opens, and existing browser sessions (including port 9222) are not used. On macOS, the default executable is /Applications/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing. Set LAYOUT_CHROME=/absolute/path/to/chrome for another installation or platform. Missing prerequisites are reported as skipped tests; an explicitly configured invalid executable or a browser startup failure fails the tests.

API references: GitHub GraphQL starred repositories, GitHub GraphQL repositories, GitHub REST README, GitHub REST languages, GitHub REST topics, GitHub REST tags, GitHub REST contributors, Dash callback inputs and state.

Performance benchmark

Use a dedicated Chrome for Testing process to benchmark page load, all common queries, repository details and scroll recovery against a frozen local dataset. Runs automatically preserve a Git snapshot and commit results and decisions to Dolt. See AUTORESEARCH.md for the experiment workflow and the imported history of accepted and rejected attempts.

just benchmark snapshot
just benchmark run --output data/benchmarks/baseline.json
# After a performance change:
just benchmark run --output data/benchmarks/candidate.json
just benchmark compare data/benchmarks/baseline.json data/benchmarks/candidate.json

Pass --cdp-port 9223 if port 9222 is occupied. See the benchmark guide for metrics, cache policies, lab INP, repeatability controls and the hillclimbing workflow. TTI and FID are excluded.

Contributing

Include a regression test with each bug fix. Keep credentials, local caches, and benchmark artifacts out of commits. Use a commit subject of at most 50 characters and wrap body lines at 72 characters.

Licensing and bundled assets

Project code is licensed under MIT. Bundled assets retain their own notices: Host Grotesk, Instrument Sans, Octicons, and GitHub emoji images. Cached repository content and media retain their original licenses.