Repository navigation
feat: add typed infobase CF/CFE and DT exports - #56
Conversation
WalkthroughДобавлены команды ChangesЭкспорт информационной базы
Estimated code review effort: 4 (Complex) | ~60 minutes Merge Risk: 🟠 High · up to The new export commands can expose IBCMD credentials through operating-system process arguments, and the publication flow can still race with output-path changes or leave staged export data after late failures. The PR should not merge until the credential handling is fixed and the publication cleanup and identity guarantees are addressed. Sequence Diagram(s)sequenceDiagram
participant CLI
participant ExportUseCase
participant PlatformProvider
participant Staging
CLI->>ExportUseCase: передаёт запрос экспорта
ExportUseCase->>PlatformProvider: запускает Designer или IBCMD
PlatformProvider->>Staging: записывает staged artifact
ExportUseCase->>Staging: проверяет и публикует artifact
Staging-->>CLI: возвращает статус и envelope
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 44.62% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 130 functions across 21 files. (9 skipped: 9 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 Clippy (1.97.1)Clippy execution failed Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Actionable comments posted: 3 🧹 Nitpick comments (4)
🤖 Prompt for all review comments with AI agents🪄 AutofixFix all unresolved CodeRabbit comments on this PR:
ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (30)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. |
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Экранируйте В строке 38 Предлагаемое исправление-| `infobase configuration export` | `builder=DESIGNER|IBCMD` | Выгружает working/database configuration в `.cf` или named extension в `.cfe`; backend строго задаёт `builder` |
+| `infobase configuration export` | `builder=DESIGNER\|IBCMD` | Выгружает working/database configuration в `.cf` или named extension в `.cfe`; backend строго задаёт `builder` |📝 Committable suggestion
🧰 Tools🪛 markdownlint-cli2 (0.23.2)[warning] 38-38: Table column count (MD056, table-column-count) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- applicable repository knowledge files ---'
find /tmp/coderabbit-repo-knowledge/alkoleft-v8-runner-rust-9387ef3f \
-type f \( -path '*/platform/*' -o -path '*/ibcmd*' -o -path '*/process*' \) \
-name '*.md' -print 2>/dev/null | sort
printf '%s\n' '--- ibcmd outline ---'
ast-grep outline src/platform/ibcmd.rs 2>/dev/null | head -120
printf '%s\n' '--- ibcmd focused ranges ---'
sed -n '280,340p' src/platform/ibcmd.rs
sed -n '520,620p' src/platform/ibcmd.rs
sed -n '620,735p' src/platform/ibcmd.rs
printf '%s\n' '--- process definitions and spawn path ---'
ast-grep outline src/platform/process.rs 2>/dev/null | head -160
rg -n -A35 -B12 'struct ProcessRequest|fn render_command|fn spawn_command|Command::new|args\(' src/platform/process.rs
sed -n '1,180p' src/platform/process.rs
sed -n '280,450p' src/platform/process.rsRepository: alkoleft/v8-runner-rust Length of output: 46429 Sensitive Data Exposure (CWE-214) Reachability: External · Exploitability: Moderate Удалите пароль из аргументов процесса.
🤖 Prompt for AI Agents |
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Сделайте захват workspace lock наблюдаемым. Строки 254–257 проверяют состояние пути после завершения команды. Эта проверка проходит и тогда, когда команда захватила и штатно освободила lock. Поэтому тест не подтверждает требование «до workspace lock». Удерживайте тот же workspace lock отдельным процессом перед запуском команды. Затем проверьте, что команда сразу возвращает validation error, а не ожидает lock. 🤖 Prompt for AI Agents |
df27ff9 to
6e6048a
Compare
- add typed CF/CFE and DT CLI contracts with pre-spawn provider selection - harden staged publication, locks, deadlines, and diagnostics - document ADR-0024 and cover the environment matrix
Что сделано
v8-runner infobase configuration export --state <working|database> [--extension <name>] --output <file.cf|file.cfe>;v8-runner infobase dump --output <file.dt>.config save.experimentalдо проверяемого exclusive-access/no-active-connections preflight.builderзадаёт предпочтение, а не жёсткий selector: до первого spawn выбирается первыйimplemented + readyprovider; после spawn fallback запрещён.v8project.yamlсsource-set: []; проектные source/build/test/EDT-настройки эти операции не блокируют.AI-facing контракт
implementation, readiness текущего окружения иevidenceадаптера, сохраняя всех кандидатов и причину выбора.capability_unavailable,environment_unavailable,workspace_busy,invalid_output,cancelledиtimed_out.publishedиtarget_state:unchanged | created | replaced | restored | uncertain.ExecutionStepKind.Публикация и конкурентность
Проверки
cargo check --locked --all-targets— passed.cargo test --test cli_infobase— 26 passed.cli_help— 14,cli_artifacts— 2,cli_convert— 14, architecture guardrails — 4, use-case boundaries — 1.cargo fmt --check,bash -n scripts/test/ci-rust.sh,git diff --check— passed.cargo clippy --locked --all-targetsexits 0; существующие baseline warnings сохранены, новых warnings изменённый код не добавляет.Полный repository test-run на macOS не объявляется зелёным: на чистом
masterвоспроизводятся прежние/var↔/private/varи interactive timing failures. Они не маскируются этим PR и не относятся к новым операциям.Вне границы PR
test.runили syntax-check операции.