Skip to content

Commit c6976bd

Browse files
build: ship RAG refinement product — all CI green (#280)
Squash-merge of PR #280 (build/rag-refinement-product). All 5 CI jobs pass: lint, typecheck, test, security, frontend-security.
1 parent 03812bf commit c6976bd

53 files changed

Lines changed: 1626 additions & 613 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Bug Report
2+
description: Report a bug in the RAG Refinement System
3+
labels: ["bug", "triage"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for reporting a bug. Please fill in the details below.
9+
10+
- type: textarea
11+
id: description
12+
attributes:
13+
label: What happened?
14+
description: A clear description of the bug.
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
id: steps
20+
attributes:
21+
label: Steps to reproduce
22+
description: Minimal steps to reproduce the issue.
23+
placeholder: |
24+
1. Start the server with `docker compose up`
25+
2. Send a request to POST /v1/route with ...
26+
3. See error
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
id: expected
32+
attributes:
33+
label: Expected behaviour
34+
description: What did you expect to happen?
35+
validations:
36+
required: true
37+
38+
- type: textarea
39+
id: environment
40+
attributes:
41+
label: Environment
42+
description: Python version, OS, Docker version if applicable.
43+
placeholder: |
44+
Python: 3.11.9
45+
OS: Ubuntu 22.04
46+
Docker: 26.1.0
47+
validations:
48+
required: true
49+
50+
- type: textarea
51+
id: logs
52+
attributes:
53+
label: Relevant logs or error output
54+
render: shell
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Feature Request
2+
description: Suggest a new feature or improvement
3+
labels: ["enhancement"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for suggesting an improvement!
9+
10+
- type: textarea
11+
id: problem
12+
attributes:
13+
label: What problem does this solve?
14+
description: Describe the problem or limitation you are running into.
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
id: solution
20+
attributes:
21+
label: Proposed solution
22+
description: Describe the feature or change you would like to see.
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: alternatives
28+
attributes:
29+
label: Alternatives considered
30+
description: Other approaches you thought about.
31+
32+
- type: textarea
33+
id: context
34+
attributes:
35+
label: Additional context
36+
description: Any other context, screenshots, or references.

‎.github/pull_request_template.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Summary
2+
3+
<!-- What does this PR do? Why? One paragraph. -->
4+
5+
## Changes
6+
7+
<!-- Bullet list of what changed and in which files. -->
8+
9+
-
10+
11+
## Testing
12+
13+
- [ ] All existing tests pass (`pytest -q`)
14+
- [ ] New tests added for new behaviour
15+
- [ ] Coverage remains at 100% (`pytest --cov-fail-under=80`)
16+
- [ ] Lint passes (`ruff check backend ingestion tests`)
17+
- [ ] Type-check passes (`mypy backend ingestion router db`)
18+
- [ ] Security scan passes (`bandit -c pyproject.toml -r backend ingestion router db`)
19+
- [ ] Frontend tests pass (`cd frontend && npm run test`)
20+
21+
## Related issues
22+
23+
Closes #

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Install security tooling
6363
run: pip install ".[dev]"
6464
- name: Bandit SAST (blocking)
65-
run: bandit -r backend ingestion router db
65+
run: bandit -c pyproject.toml -r backend ingestion router db
6666
- name: pip-audit SCA (blocking)
6767
run: pip-audit
6868
- name: detect-secrets scan (blocking)
@@ -78,7 +78,7 @@ jobs:
7878
import sys
7979
8080
def _key(path, secret):
81-
return (path, secret["line_number"], secret["type"])
81+
return (path, secret["line_number"], secret["type"], secret["hashed_secret"])
8282
8383
with open(".secrets.baseline", encoding="utf-8") as f:
8484
baseline = json.load(f)

0 commit comments

Comments
 (0)