Skip to content

Commit 0d8d74f

Browse files
committed
Update instructions to rebuild images after changes before testing
1 parent fee53b5 commit 0d8d74f

3 files changed

Lines changed: 45 additions & 3 deletions

File tree

.github/copilot-instructions.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ Skills are loaded on-demand based on task context to optimize token usage:
4848

4949
Skills are detected and loaded based on file type, task keywords, and context signals. Explicitly request a skill if the auto-detection doesn't load it.
5050

51+
### Instruction Placement Policy (Critical)
52+
53+
- Prefer skill files under `.github/skills/` for detailed procedural rules.
54+
- Keep this file focused on high-level routing and references to canonical skill documents.
55+
- Avoid duplicating policy/checklist text across this file and skills.
56+
- If overlap is found, retain one canonical source and replace duplicates with a short pointer.
57+
5158
## Architecture Overview
5259

5360
**Core Components:**
@@ -112,6 +119,15 @@ make -C tests geometry-unit # Specific test (e.g., geo
112119
For runtime test verification requirements, use
113120
`.github/skills/test-verification-gate.md`.
114121

122+
### Containerized Test Image Freshness Gate (Critical)
123+
124+
Use `.github/skills/test-verification-gate.md` as the single source of truth
125+
for image freshness checks, rebuild-before-test requirements, and retry policy
126+
for containerized test targets.
127+
128+
Service-specific examples belong in each service guide (for controller, see
129+
`controller/Agents.md`).
130+
115131
## Code Patterns & Conventions
116132

117133
**Python Packaging**:

.github/prompts/reflect.prompt.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ description: "Reflect on this conversation and suggest instruction updates"
55

66
# Self-Reflection Task
77

8+
## Instruction Placement Rule (Critical)
9+
10+
Before proposing documentation changes, apply this hierarchy:
11+
12+
1. Put detailed procedural policy in the most specific skill file under `.github/skills/`.
13+
2. Keep `.github/copilot-instructions.md` as orchestration/entry-point guidance with pointers to skill files.
14+
3. Keep `Agents.md` files service-specific with concrete examples and commands, not duplicated global policy text.
15+
4. Do not duplicate the same checklist/policy text across global instructions and skill files.
16+
5. If overlap is unavoidable, keep one canonical source and replace duplicates with short references.
17+
818
1. Review the entire conversation history.
919
2. Identify patterns where I had to correct you or clarify my intent.
1020
3. Suggest specific additions or modifications to the `.github/copilot-instructions.md`, files under `.github/skills` directory, `Agents.md` in each service directory and other relevant documentation to prevent these issues in the future.

.github/skills/test-verification-gate.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,24 @@ Ensure runtime verification is completed and reported consistently.
1717
2. Prefer a root target when practical (for example, `make run_unit_tests`).
1818
3. Otherwise select the narrowest scoped target in `tests/Makefile`
1919
(for example, `make -C tests scenescape-unit`).
20-
4. Execute the target.
21-
5. If failures occur, fix and rerun the same target.
22-
6. Report exact command and concise pass/fail summary.
20+
4. If the selected target runs in a service `...-test` container image,
21+
rebuild images for changed services before executing tests.
22+
5. Execute the target.
23+
6. If failures occur, confirm image freshness before code-level debugging:
24+
- Rebuild the impacted service runtime and test images if not rebuilt.
25+
- Rerun the same target once on fresh images.
26+
7. If still failing, fix and rerun the same target.
27+
8. Report exact command and concise pass/fail summary.
28+
29+
## Image Freshness Mapping (Common)
30+
31+
- Changed `controller/src/**` + `make -C tests scene-unit`:
32+
- `make controller`
33+
- `make -C controller test-build`
34+
- then run `make -C tests scene-unit SUPASS=<password>`
35+
36+
Apply the same pattern to other services: rebuild runtime + test image before
37+
running containerized test targets.
2338

2439
## Blocked Execution Policy
2540

@@ -35,5 +50,6 @@ runtime), report:
3550
- Lint success only
3651
- Syntax-only checks
3752
- IDE static errors only
53+
- Repeated reruns against stale container images
3854

3955
These checks are useful but do not replace runtime test execution.

0 commit comments

Comments
 (0)