Copilot/awesome ai drivendevelopment 101 - #24
Open
5hy7xz92nd-oss wants to merge 125 commits into
Open
Conversation
…test-run-develop-repeat Add repository-wide PoC validation and regression coverage
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
…phic-blueprint
…ck-merge-into-13
…zed-architecture
…evelopment-101
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
validate_pocs: tests pass on repo as-is, no changes needed
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
…-integrations Upgrade repository validation integrations and CI
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
Co-authored-by: 5hy7xz92nd-oss <249378113+5hy7xz92nd-oss@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This pull request introduces a repository-wide validation tool to sanity-check PoC entrypoints/manifests and ensure the root catalog stays consistent with the on-disk PoC directories, and wires those checks into CI.
Changes:
- Add
validate_pocs.pyto discover and validate Python/JS/JSON manifests plus README/catalog consistency. - Add
tests/test_validate_pocs.pyto exercise discovery/validation and fixture behavior. - Document the validation workflow in
README.md, add CI workflow, and expand.gitignore.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| validate_pocs.py | New validator that discovers PoC-related files and performs syntax/manifest/catalog checks. |
| tests/test_validate_pocs.py | Unit tests for discovery + repository/fixture validation behavior. |
| README.md | Adds a “Validation” section describing how to run checks locally and in CI. |
| .gitignore | Ignores common Python/Node/test artifacts (caches, venvs, coverage, etc.). |
| .github/workflows/validate.yml | CI job to run unit tests and repository validation on pushes/PRs. |
| .github/instructions/*.instructions.md | Adds Copilot instruction content under .github/instructions/. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| import shutil | ||
| import subprocess | ||
| import sys | ||
| import tomllib |
Comment on lines
+1
to
+12
| import json | ||
| import tempfile | ||
| import unittest | ||
| from pathlib import Path | ||
|
|
||
| import validate_pocs | ||
|
|
||
|
|
||
| class ValidatePocsTest(unittest.TestCase): | ||
| def setUp(self) -> None: | ||
| self.repo_root = Path(__file__).resolve().parents[1] | ||
|
|
|
|
||
| ## Validation | ||
|
|
||
| Repository integrity checks live in `validate_pocs.py` and cover: |
| - JavaScript syntax via `node --check` | ||
| - Per-entry `README.md` presence and root catalog consistency | ||
|
|
||
| Run locally: |
| - name: Run unit tests | ||
| run: python -m unittest discover -s tests -v | ||
|
|
||
| - name: Validate repository integrations |
| @@ -0,0 +1,1487 @@ | |||
| @5hy7xz92nd-oss @copilot @copilot @copilot @we-tech-company @copilot @5hy7xz92nd-oss 🕴️🔃〰️⤴️@copilot🌎 REALITY | |||
Comment on lines
+74
to
+76
| def discover_json_targets(root: Path) -> List[Path]: | ||
| root = root.resolve() | ||
| return sorted(path for path in root.rglob("*.json") if not _is_excluded(path, root)) |
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.
No description provided.