Phase 0: canonical templates + integration workflow for public rollout#4
Merged
Phase 0: canonical templates + integration workflow for public rollout#4
Conversation
Groundwork for making the 10 sibling repos public (see #3): - .github-templates/: canonical LICENSE, CI, CODEOWNERS, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT, issue/PR templates, branch-protection.json. - .github/workflows/integration.yml: meta workflow triggered on PR, nightly cron, workflow_dispatch, and repository_dispatch (sibling-updated) that runs all per-sibling test suites + cross-repo integration tests. - tests/integration/: workspace-level tests. test_no_stale_attribution.py guards against UW/PRL strings returning to any sibling. - scripts/sync_templates.sh: copies .github-templates/ into each sibling. - scripts/add_headers.py: prepends SPDX+copyright to .py files idempotently. - .gitignore: un-ignore scripts/*.py and tests/**/*.py.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Groundwork for flipping the 10 sibling repos public (Phase 0 of #3). This PR only lands infrastructure in robot-code — it does not touch any sibling repo yet.
Changes
.github-templates/: canonical LICENSE (MIT, Siddhartha Srinivasa), CI workflow (ruff + pytest matrix 3.10/3.11/3.12 on astral-sh/setup-uv@v5, with a finalrepository_dispatchstep that notifies robot-code on push-to-main), CODEOWNERS, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT (links to Contributor Covenant 2.1), pull_request_template, ISSUE_TEMPLATE/{bug_report,improvement,task}.md + config.yml, branch-protection.json..github/workflows/integration.yml: meta-integration workflow. Triggers: PR to main, 08:00 UTC nightly cron,workflow_dispatch(with optional override_repo/sha inputs), andrepository_dispatch: sibling-updated. Runs./setup.sh, each sibling's unit tests, cross-repo integration tests, and an import smoke check. Files a tracking issue on nightly failure.tests/integration/:test_imports.py— parametrized import check for all 9 Python siblings.test_no_stale_attribution.py— guards against UW / Personal Robotics Lab / old UW email strings returning to any sibling. Currently red (as intended) until Phases 1-3 scrub each sibling.scripts/sync_templates.sh:--dry-run/--apply/--repo=<name>flags; diffs and copies.github-templates/into each sibling.scripts/add_headers.py: idempotently prepends SPDX + copyright to every.py, preserving shebangs and coding declarations..gitignore: un-ignorescripts/*.pyandtests/**/*.py(was blocking new files).Testing
./scripts/sync_templates.sh --dry-run --repo=tsrshows correct diffs./scripts/add_headers.py --dry-run tsr/srclists files needing headersuv run pytest tests/integration/test_no_stale_attribution.pycorrectly fails with 7 hits (as intended)uv run pytest tests/integration/test_imports.pypassesIntegration workflow itself will be validated once this branch is pushed; it needs sibling-side CI wired up in Phases 1-3 to exercise
repository_dispatchend-to-end.Breaking changes
Related issues
Part of #3