-
Notifications
You must be signed in to change notification settings - Fork 1
132 lines (107 loc) · 4.7 KB
/
Copy pathci.yml
File metadata and controls
132 lines (107 loc) · 4.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: node ${{ matrix.node }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: ['20', '22']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
# No lockfile in-repo (package-lock.json is gitignored so consumers
# resolve their own deps). `npm install` is intentional.
- name: Install dependencies
run: npm install --no-audit --no-fund
- name: Syntax check
run: |
find . -type f -name '*.mjs' -not -path './node_modules/*' -print0 \
| xargs -0 -n1 node --check
- name: Unit tests (meta-gate)
run: node meta-gate.test.mjs
- name: Unit tests (series detection — keeps timelines out of the supersede band)
run: node series-detection.test.mjs
- name: Integration test (meta-gate write-gate)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-meta-gate.db
run: node meta-gate.integration.test.mjs
- name: Integration test (anchor/pinned quota)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-anchor-pinned.db
run: node anchor-pinned.integration.test.mjs
- name: Integration test (provenance + quarantine)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-provenance.db
run: node provenance-quarantine.integration.test.mjs
- name: Integration test (recall injection hygiene — frame escaping)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-injection-hygiene.db
run: node injection-hygiene.integration.test.mjs
- name: Integration test (ranking — importance filters, does not rank)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-ranking-importance.db
run: node ranking-importance.integration.test.mjs
- name: Integration test (encoding-damage detection, both write paths)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-encoding-damage.db
run: node encoding-damage.integration.test.mjs
- name: Integration test (level migration ladder + pin exemption)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-level-migration.db
run: node level-migration-stages.integration.test.mjs
- name: Integration test (supersede shrink guard)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-supersede-shrink.db
run: node supersede-shrink.integration.test.mjs
- name: Integration test (HTTP /recall endpoint + hook fallback)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-recall-endpoint.db
run: node recall-endpoint.integration.test.mjs
- name: End-to-end test (hooks)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-hooks.db
MNEME_DB_PATH: ${{ runner.temp }}/mneme-ci-hooks.db
MNEME_STATE_DIR: ${{ runner.temp }}/mneme-hook-state
run: node hooks/hooks.test.mjs
- name: End-to-end test (memory-health + consolidation CLIs)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-memhealth.db
run: node memory-health.test.mjs
- name: End-to-end test (locations alias layer)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-locations.db
run: node locations.test.mjs
- name: Unit tests (recall contract — budget, trace, allowlist)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-recall-contract.db
run: node recall-contract.test.mjs
- name: Unit tests (query rewrite hook)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-query-rewrite.db
run: node query-rewrite.test.mjs
- name: Integration test (cold pool selects by reuse, not self-rated importance)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-cold-pool.db
run: node cold-pool-gate.test.mjs
- name: Integration test (embedding timeout — hot path degrades instead of hanging)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-embedding-timeout.db
run: node embedding-timeout.integration.test.mjs
- name: Integration test (vector storage — Float32 BLOB codec + Migration 013)
env:
TOKENMEM_DB_PATH: ${{ runner.temp }}/mneme-ci-vector-blob.db
run: node vector-blob.integration.test.mjs
- name: Adapter test (codex-recovery-proxy fault injection)
run: node adapters/codex-recovery-proxy/proxy.test.mjs