Skip to content
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
36bbabb
feat: add knowledge-base artifact plugin
Zxf-xufeng Nov 15, 2026
6ad456b
fix: enforce knowledge-base replacement and lifecycle guards
Zxf-xufeng Nov 15, 2026
5162992
fix: preserve knowledge-base retry receipts and batch outcomes
Zxf-xufeng Nov 15, 2026
2fb1aab
fix: pin knowledge-base reprocessing to its snapshot revision
Zxf-xufeng Nov 15, 2026
709ad38
fix: preserve knowledge-base context passages and task states
Zxf-xufeng Nov 15, 2026
65b0646
fix: preserve Markdown heading hierarchy in knowledge-base chunks
Zxf-xufeng Nov 15, 2026
3079efc
fix(knowledge-base): reject null paths without aborting imports
Zxf-xufeng Nov 15, 2026
6080d1b
fix(knowledge-base): align framework contracts and repair review regr…
Zxf-xufeng Nov 15, 2026
3adae70
build(knowledge-base): isolate optional plugin type checks
Zxf-xufeng Nov 15, 2026
6a26f9a
fix(knowledge-base): preserve OCR results and correct CI admission
Zxf-xufeng Nov 16, 2026
2afafb8
Merge remote-tracking branch 'origin/master' into codex/knowledge-bas…
Zxf-xufeng Nov 16, 2026
34a7843
fix(knowledge-base): retain saved settings across library selection
Zxf-xufeng Nov 16, 2026
33d8888
fix(knowledge-base): toggle chunk content without duplicating it
Zxf-xufeng Nov 16, 2026
dae67da
feat(knowledge-base): redesign the document dashboard
Zxf-xufeng Nov 16, 2026
231c209
fix(knowledge-base): contain long library names in navigation
Zxf-xufeng Nov 16, 2026
310edd8
feat(knowledge-base): support atomic bulk chunk removal
Zxf-xufeng Nov 16, 2026
70fcfea
fix(knowledge-base): align navigation and processing retries
Zxf-xufeng Nov 16, 2026
8ef30bd
merge: sync knowledge base with latest master
Zxf-xufeng Nov 17, 2026
cccd12b
fix(knowledge-base): preserve Markdown links and scope CI coverage
Zxf-xufeng Nov 17, 2026
dbb32a1
test(runtime): wait for blocked rechecks to finish
Zxf-xufeng Nov 17, 2026
d7678d9
fix(knowledge-base): reject chunks that lose reference links
Zxf-xufeng Nov 17, 2026
1f320cd
feat(knowledge-base): consolidate plugin navigation
Zxf-xufeng Nov 17, 2026
092e584
feat(knowledge-base): add batch document actions
Zxf-xufeng Nov 17, 2026
12db320
fix(knowledge-base): truncate long document names
Zxf-xufeng Nov 17, 2026
ed6f259
merge: align knowledge-base plugin with latest master
Zxf-xufeng Nov 18, 2026
1bfd14c
fix(knowledge-base): preserve short tokens in native indexes
Zxf-xufeng Nov 18, 2026
4d385e8
fix(ci): repair integration import and deadline assertion
Zxf-xufeng Nov 18, 2026
76828fc
ci: share dependency caches and preserve downloads before tests
frf12 Nov 18, 2026
c4b641d
ci: verify cache reuse across fresh runner jobs
frf12 Nov 18, 2026
59863ae
ci: verify Cargo reuse with registry metadata refresh
frf12 Nov 18, 2026
4df0830
ci: remove temporary cache acceptance workflow
frf12 Nov 18, 2026
9ada404
fix(dsh): restore companion memory query preparation
frf12 Nov 18, 2026
1dcd3e4
fix(stats): retry SQLite usage writes after setup expiry
frf12 Nov 18, 2026
34af84f
fix(ci): refresh SQLite persistence compatibility review
frf12 Nov 18, 2026
f7abf52
fix(ci): save complete dependency caches before tests
frf12 Nov 18, 2026
c7c5fff
merge: refresh cache fixes against master
frf12 Nov 18, 2026
b8d3ea9
fix(ci): avoid redundant tool and history downloads
frf12 Nov 18, 2026
0a48188
chore(knowledge-base): merge master and align dashboard navigation tests
Zxf-xufeng Nov 19, 2026
162f1ed
fix(knowledge-base): preserve blockquote outline boundaries
Zxf-xufeng Nov 19, 2026
bc0fd23
ci: allow progressing unit suites to finish on internal runners
Zxf-xufeng Nov 19, 2026
e6f2736
test(knowledge-base): wait for replacement host context before naviga…
Zxf-xufeng Nov 19, 2026
e8fead7
Merge remote-tracking branch 'origin/master' into codex/knowledge-bas…
Zxf-xufeng Nov 19, 2026
ec3856f
fix(dashboard): narrow optional prompt artifact before reading its re…
Zxf-xufeng Nov 19, 2026
87ac483
fix(ci): save Linux installer dependencies before tests
frf12 Nov 19, 2026
280969c
ci: reuse and publish dependency caches before validation
Zxf-xufeng Nov 19, 2026
3584d82
test(dsh): serialize Server startup and allow cold initialization
Zxf-xufeng Nov 19, 2026
d766a09
ci: seed shared dependencies and budget validation cleanup
Zxf-xufeng Nov 19, 2026
77193bc
ci: isolate mise runtime caches per job
Zxf-xufeng Nov 19, 2026
8de6522
ci: resolve temporary cache paths during step execution
Zxf-xufeng Nov 19, 2026
0b0f8e7
ci: isolate writable tool caches in shared setup
Zxf-xufeng Nov 19, 2026
abdc1aa
fix(ci): persist Linux runner caches in internal storage
frf12 Nov 19, 2026
16aab75
fix(ci): register proxy bypass through runner environment files
frf12 Nov 19, 2026
e162d71
ci: isolate OpenCode cache and budget first-time installation
Zxf-xufeng Nov 19, 2026
f2d8af2
Merge remote-tracking branch 'upstream/master' into codex/ci-dependen…
frf12 Nov 19, 2026
73f7ee9
fix(dashboard): narrow optional prompt revision source
frf12 Nov 19, 2026
9108530
ci: prebuild Gateway before parallel acceptance tests
Zxf-xufeng Nov 19, 2026
2911110
fix(ci): split Linux E2E coverage across runner pods
frf12 Nov 19, 2026
c66f8be
Merge master after gateway prefix extraction acceptance
frf12 Nov 19, 2026
d460a32
chore: merge latest master into knowledge-base plugin
Zxf-xufeng Nov 19, 2026
974fb78
fix(ci): cache verified mise bootstrap independently of tools
frf12 Nov 19, 2026
307cfe2
fix(statistics): retry SQLite usage setup within batch budget
Zxf-xufeng Nov 19, 2026
16ab67a
ci: avoid concurrent cold starts in DSH E2E tests
frf12 Nov 19, 2026
265fe0a
test: assert shared embedding budget cancellation without wall-clock …
Zxf-xufeng Nov 19, 2026
b75c066
fix(knowledge-base): preserve canonical callers and unique API operat…
Zxf-xufeng Nov 20, 2026
2b84e11
fix(knowledge-base): keep core and CI fixes outside the plugin PR
Zxf-xufeng Nov 20, 2026
6d4ca12
Merge remote-tracking branch 'origin/master' into codex/knowledge-bas…
Zxf-xufeng Nov 20, 2026
1ab2cc0
Merge remote-tracking branch 'origin/master' into codex/knowledge-bas…
Zxf-xufeng Nov 21, 2026
ab67268
merge: integrate PR 2710 CI fixes into knowledge-base branch
Zxf-xufeng Nov 21, 2026
c8600ec
fix(knowledge-base): refresh imported retrieval and validate batch IDs
Zxf-xufeng Nov 21, 2026
5920361
fix(knowledge-base): preserve Markdown text and scope retrieval updates
Zxf-xufeng Nov 21, 2026
e9d1d6d
fix(knowledge-base): reconcile published revisions and stop forbidden…
Zxf-xufeng Nov 21, 2026
bb05c6c
fix(knowledge-base): stop polling and hide reader content on access d…
Zxf-xufeng Nov 21, 2026
d6bdd73
fix(knowledge-base): invalidate search hits after denied document reads
Zxf-xufeng Nov 21, 2026
29c676c
ci: bound concurrent end-to-end workers per shard
Zxf-xufeng Nov 21, 2026
676caf5
merge: integrate master dependencies into knowledge-base branch
Zxf-xufeng Nov 21, 2026
c1f0e1f
fix(knowledge-base): preserve OCR and HTML text and replay uncertain …
Zxf-xufeng Nov 21, 2026
d124e22
merge: sync upstream Deep Agents checks from master
Zxf-xufeng Nov 21, 2026
435f061
fix(knowledge-base): distinguish unreadable files from unconfirmed up…
Zxf-xufeng Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/actions/setup-python-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ outputs:
runs:
using: "composite"
steps:
# Internal runner images may have a non-writable default ~/.cache directory.
- name: Use writable tool caches
shell: bash
run: |
echo "GOCACHE=$RUNNER_TEMP/go-build" >> "$GITHUB_ENV"
echo "MISE_CACHE_DIR=$RUNNER_TEMP/mise-cache" >> "$GITHUB_ENV"
echo "PREK_HOME=$RUNNER_TEMP/prek" >> "$GITHUB_ENV"

- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
with:
python-version: ${{ inputs.python-version }}
Expand Down
8 changes: 8 additions & 0 deletions .github/ci-paths.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ ignore = [

[suites]

knowledge_base = ["frontend/knowledge-base/**", "plugins/knowledge-base/**", "tests/knowledge_base/**", "tests/e2e/test_knowledge_base*.py"]

gateway = ["gateway/**", ".github/workflows/gateway.yml", "tests/e2e/gateway_tck.py"]

helm = ["deploy/helm/**", "tests/test_helm*.py", "tests/e2e/helm_*.py"]
Expand Down Expand Up @@ -251,6 +253,7 @@ suites = ["upgrade", "packaging"]
# A selected scope must produce successful root jobs, not silent skips.
# Main's result gate consumes this contract; reusable workflows own their children.
[checks]
knowledge_base = ["knowledge-base"]
helm = ["helm"]
tests = ["tests", "windows-unit-portability"]
evaluation = ["evaluation-tests"]
Expand Down Expand Up @@ -287,3 +290,8 @@ gateway = ["gateway-validation"]
# Native prerequisites join the result gate only on scheduled or manual runs.
[nightly_checks]
upgrade = ["seekdb-managed-startup"]

# Changes to unrelated root dependencies do not select the optional plugin suite.
[dependency_suites.knowledge_base]
extras = ["knowledge-base"]
groups = ["knowledge-base-tests"]
3 changes: 2 additions & 1 deletion .github/workflows/e2e-harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ jobs:
fromJSON(inputs.suites || needs.changes.outputs.suites || '{}').harness ||
fromJSON(inputs.suites || needs.changes.outputs.suites || '{}').oceanbase_acceptance) }}
runs-on: powercontext-ci-light
timeout-minutes: 15
timeout-minutes: 25
outputs:
matrix: ${{ steps.plan.outputs.matrix }}
steps:
- name: Check out
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
filter: blob:none
persist-credentials: false

- name: Plan selected acceptance work
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
${{ !cancelled() &&
((inputs.suites == '' && needs.changes.result != 'success') || fromJSON(inputs.suites || needs.changes.outputs.suites || '{}').gateway) }}
runs-on: powercontext-ci-light
timeout-minutes: 20
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os == 'ubuntu-latest' && 'powercontext-ci-light' || matrix.os }}
timeout-minutes: 20
timeout-minutes: 30
steps:
- name: Check out
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/kimi-code-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
if: ${{ !cancelled() && ((inputs.suites == '' && needs.changes.result != 'success') || fromJSON(inputs.suites || needs.changes.outputs.suites || '{}').kimi) }}
name: controlled-cli (${{ matrix.os }})
runs-on: ${{ matrix.os == 'ubuntu-latest' && 'powercontext-ci-light' || matrix.os }}
timeout-minutes: 15
timeout-minutes: 25
strategy:
fail-fast: false
matrix:
Expand All @@ -52,6 +52,7 @@ jobs:
uses: ./.github/actions/setup-python-env
with:
python-version: '3.12'
shared-cache: 'true'

- name: Set up Node
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
Expand Down
106 changes: 86 additions & 20 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INSTALL_DIR: ${{ runner.temp }}
GOCACHE: ${{ runner.temp }}/go-build
PATH: ${{ runner.temp }}:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
with:
config: .licenserc.yaml
mode: check

- name: Set up the environment
uses: ./.github/actions/setup-python-env
with:
shared-cache: 'true'

- name: Resolve Python version for hook cache
id: python
Expand All @@ -222,7 +225,7 @@ jobs:
- name: Cache prek environments
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: ~/.cache/prek
path: ${{ runner.temp }}/prek
key: prek-v1-${{ runner.os }}-${{ runner.arch }}-${{ steps.python.outputs.version }}-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Run checks
Expand All @@ -235,9 +238,9 @@ jobs:
name: tests (${{ matrix.python-version }}, ${{ matrix.suite }})
needs: [quality]
if: ${{ !cancelled() && needs.quality.result == 'success' && (fromJSON(needs.quality.outputs.suites || '{}').tests) }}
# Unit jobs must outlast pytest plus uv cache publication. End-to-end jobs
# also need time for subprocess tails on internal runners.
timeout-minutes: ${{ matrix.suite == 'e2e' && 55 || 50 }}
# Unit jobs need room for a progressing suite on slower internal runners and
# cache publication. End-to-end jobs also need time for subprocess tails.
timeout-minutes: ${{ matrix.suite == 'e2e' && 75 || 70 }}
runs-on: powercontext-ci-standard
strategy:
fail-fast: true
Expand Down Expand Up @@ -301,6 +304,26 @@ jobs:
cache-bin: false
cache-on-failure: true

- name: Build Gateway before parallel end-to-end tests
if: matrix.suite == 'e2e'
timeout-minutes: 15
run: |
mkdir -p .artifacts/gateway-build
# bash pipefail keeps compiler errors fatal while tee preserves all output.
cargo build --locked --manifest-path gateway/Cargo.toml \
--target-dir gateway/target -p pc-gateway-app --verbose \
2>&1 | tee .artifacts/gateway-build/build.log
test -x "$GITHUB_WORKSPACE/gateway/target/debug/pc-gateway"
echo "POWERCONTEXT_TEST_GATEWAY_BINARY=$GITHUB_WORKSPACE/gateway/target/debug/pc-gateway" >> "$GITHUB_ENV"

- name: Upload Gateway build log
if: always() && matrix.suite == 'e2e'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: gateway-build-python-${{ matrix.python-version }}
path: .artifacts/gateway-build/build.log
if-no-files-found: ignore

- name: Run the ZCode service chain with native Hook deadlines
if: matrix.suite == 'e2e'
# Preserve the real Hook deadlines without competing with xdist workers.
Expand All @@ -315,7 +338,7 @@ jobs:
isolated-installations:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').packaging) }}
timeout-minutes: 20
timeout-minutes: 30
runs-on: powercontext-ci-light
strategy:
fail-fast: true
Expand Down Expand Up @@ -410,7 +433,7 @@ jobs:
worker-observability:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').observability) }}
timeout-minutes: 15
timeout-minutes: 25
runs-on: powercontext-ci-light
steps:
- name: Check out
Expand Down Expand Up @@ -457,7 +480,7 @@ jobs:
evaluation-tests:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').evaluation) }}
timeout-minutes: 20
timeout-minutes: 30
runs-on: powercontext-ci-light
steps:
- name: Check out
Expand Down Expand Up @@ -847,7 +870,7 @@ jobs:
dify-tools:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').dify) }}
timeout-minutes: 15
timeout-minutes: 25
runs-on: powercontext-ci-light
steps:
- name: Check out
Expand Down Expand Up @@ -913,8 +936,11 @@ jobs:
go-version-file: .artifacts/dify-daemon/go.mod
cache-dependency-path: .artifacts/dify-daemon/go.sum

- name: Set up project tools
uses: jdx/mise-action@d5574b52816a478f9d4e6529a3f6ff17a8a36785 # v5.2.8
- name: Set up Node for host compatibility probes
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .mise.toml
package-manager-cache: false

- name: Check daemon serialization, host casting, Workflow selectors and SDK HTTP readback
env:
Expand All @@ -925,7 +951,7 @@ jobs:
hermes-skills:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').hermes) }}
timeout-minutes: 15
timeout-minutes: 25
runs-on: powercontext-ci-light
steps:
- name: Check out
Expand Down Expand Up @@ -954,7 +980,7 @@ jobs:
dsh-package:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').dsh) }}
timeout-minutes: 30
timeout-minutes: 40
runs-on: powercontext-ci-light
steps:
- name: Check out
Expand Down Expand Up @@ -1006,7 +1032,7 @@ jobs:
cindy-package:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').cindy) }}
timeout-minutes: 15
timeout-minutes: 25
runs-on: powercontext-ci-light
steps:
- name: Check out
Expand Down Expand Up @@ -1051,7 +1077,7 @@ jobs:
pi-package:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').pi) }}
timeout-minutes: 20
timeout-minutes: 30
runs-on: powercontext-ci-light
steps:
- name: Check out
Expand Down Expand Up @@ -1087,7 +1113,7 @@ jobs:
opencode-package:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').opencode) }}
timeout-minutes: 20
timeout-minutes: 30
runs-on: powercontext-ci-light
env:
OPENCODE_VERSION: '1.19.5'
Expand All @@ -1110,6 +1136,8 @@ jobs:
run: make opencode-test

- name: Install the pinned OpenCode host
env:
XDG_CACHE_HOME: ${{ runner.temp }}/opencode-host-cache
run: |
package="opencode-$(node -p 'process.platform + "-" + process.arch')"
# OpenCode's default x64 build needs AVX2; its own installer falls back to the baseline build without it.
Expand Down Expand Up @@ -1144,7 +1172,7 @@ jobs:
codex-host:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').codex) }}
timeout-minutes: 20
timeout-minutes: 30
runs-on: powercontext-ci-light
env:
CODEX_VERSION: '0.167.2'
Expand All @@ -1154,6 +1182,8 @@ jobs:
persist-credentials: false
- name: Set up the Python environment
uses: ./.github/actions/setup-python-env
with:
shared-cache: 'true'

- uses: jdx/mise-action@d5574b52816a478f9d4e6529a3f6ff17a8a36785 # v5.2.8
- name: Install the pinned Codex host
Expand Down Expand Up @@ -1242,7 +1272,7 @@ jobs:
bub-host:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').bub) }}
timeout-minutes: 20
timeout-minutes: 30
runs-on: powercontext-ci-light
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
Expand Down Expand Up @@ -1280,7 +1310,7 @@ jobs:
openclaw-package:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').openclaw) }}
timeout-minutes: 20
timeout-minutes: 30
runs-on: powercontext-ci-light
env:
OPENCLAW_VERSION: '2026.8.1'
Expand Down Expand Up @@ -1371,7 +1401,7 @@ jobs:
opendal-package:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').opendal) }}
timeout-minutes: 20
timeout-minutes: 30
runs-on: powercontext-ci-light
steps:
- name: Check out
Expand Down Expand Up @@ -1399,6 +1429,10 @@ jobs:
with:
persist-credentials: false

- name: Use a writable mise runtime cache
shell: bash
run: echo "MISE_CACHE_DIR=$RUNNER_TEMP/mise-cache" >> "$GITHUB_ENV"

- name: Set up website tools
uses: jdx/mise-action@d5574b52816a478f9d4e6529a3f6ff17a8a36785 # v5.2.8

Expand Down Expand Up @@ -1586,6 +1620,37 @@ jobs:
with:
suites: ${{ needs.quality.outputs.suites }}

knowledge-base:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').knowledge_base) }}
runs-on: ubuntu-24.04
timeout-minutes: 25
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: ./.github/actions/setup-python-env
with:
python-version: '3.12'
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '22'
cache: npm
cache-dependency-path: frontend/knowledge-base/package-lock.json
- name: Build and verify plugin Dashboard assets
run: |
npm ci --prefix frontend/knowledge-base --no-audit --no-fund
npm run build --prefix frontend/knowledge-base
git diff --exit-code -- plugins/knowledge-base/ui
- name: Install plugin dependencies
run: uv sync --locked --extra knowledge-base --group knowledge-base-tests
- name: Check plugin types with its optional dependencies
run: uv run --no-sync ty check --no-force-exclude plugins/knowledge-base
- name: Install browser for plugin navigation regressions
run: uv run --no-sync playwright install --with-deps chromium
- name: Exercise Server, Worker, revision lifecycle and real OCR
run: uv run --no-sync pytest tests/knowledge_base tests/e2e/test_knowledge_base*.py tests/e2e/test_plugin_pages.py

ci-result:
name: CI result
needs:
Expand All @@ -1600,6 +1665,7 @@ jobs:
- worker-observability
- evaluation-tests
- code-seekdb
- knowledge-base
- atomic-memory-clean-seekdb
- windows-unit-portability
- dify-tools
Expand Down Expand Up @@ -1660,7 +1726,7 @@ jobs:
needs: [quality, tests]
if: ${{ !cancelled() && needs.quality.result == 'success' && contains(fromJSON('["success","skipped"]'), needs.tests.result) && (fromJSON(needs.quality.outputs.suites || '{}').helm) }}
runs-on: powercontext-ci-light
timeout-minutes: 10
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
Expand Down
1 change: 1 addition & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ header:
- 'examples/jupyter/*.ipynb'
- '**/*.svg'
- '.github/**'
- 'frontend/knowledge-base/.npmrc'
- '**/.gitignore'
- '**/.dockerignore'
- '**/.env.example'
Expand Down
Loading
Loading