no MD generated
Hello,
running
nice -n 10 bash -c printf 'y\n' | exec "$@" codewiki timeout --kill-after=60 3000 /opt/python3_12_0/venvs/pipeline/bin/codewiki generate --output documentation --github-pages --exclude test,tests,Tests,__tests__,Specs,*Test.java,*Tests.java,*IT.java,*.spec.ts,*.spec.js,*.test.ts,*.test.js,*.test.cs,documentation,public,procLogs,helm_automation,target,.venv,venv,.codewiki,.cache,.npm,.m2,.config -v
in a pipeline during PR i got this error even after 3 retries```
[17:11:39] INFO ✓ Parent docs already exists at /opt/gitlab-runner/builds/bKpUow5MT/0/components/fabrick-it/services-provider/fabricktest-2/documentation/delivery_and_quality_assurance.md
[17:11:39] INFO 📚 Generating repository overview
[17:11:39] INFO Generating parent documentation for: fabricktest-2
[17:11:39] INFO ✓ Parent docs already exists at /opt/gitlab-runner/builds/bKpUow5MT/0/components/fabrick-it/services-provider/fabricktest-2/documentation/overview.md
[00:03] Creating repository overview...
✗ Documentation generation finished but these module docs are missing: oracle_engine.md
- oracle_engine.md
Re-run the same command to resume generation for the missing modules.
it's that something that's saf to ignore?
Hi @ramarro123, thanks for the report!
Is it safe to ignore? Mostly. Every other page was generated, and only oracle_engine.md is missing. The overview and parent pages still link to it, so those links are broken. The command exits non-zero so a gap in the docs doesn't pass silently, which is why your pipeline fails.
Why retrying didn't help: when you re-run the command, it skips every module whose page already exists. That's why your log shows only "Parent docs already exists" lines. oracle_engine was the one module retried, and it failed on all three runs. So the problem is specific to that module and repeats every time; it isn't a temporary error.
The actual cause is logged earlier than the part you pasted. Could you search the full -v log for oracle_engine and share the lines around:
- Failed to process module ...oracle_engine
- Error processing module oracle_engine (and its traceback)
Please also tell us which provider and model you're using. Common causes are:
- The agent hits its request limit (UsageLimitExceeded) or the model's context window because the module is large. Raising
request_limitor using a model with a bigger context usually fixes this. - The model finishes without writing the file. Some models answer in text instead of calling the file-write tool.
- The page is saved in an unexpected folder or with different capitalisation, so CodeWiki doesn't find it. If an
oracle_engine.md(any case) exists anywhere under documentation/, please tell us where.
not sure if it's what you need as output but i try to copy last run
Tue Oct 13 10:36:53 CEST 2026 [12] executing command nice -n 10 bash -c printf 'y\n' | exec "$@" codewiki timeout --kill-after=60 3000 /opt/python3_12_0/venvs/pipeline/bin/codewiki generate --output documentation --github-pages --exclude test,tests,Tests,__tests__,Specs,*Test.java,*Tests.java,*IT.java,*.spec.ts,*.spec.js,*.test.ts,*.test.js,*.test.cs,documentation,public,procLogs,helm_automation,target,.venv,venv,.codewiki,.cache,.npm,.m2,.config --instructions Always create the module documentation file with the str_replace_editor create command before giving your final answer. Never finish without writing it. Tool arguments that are lists must be passed as JSON arrays, not as strings. --flat --verbose
Tue Oct 13 10:38:17 CEST 2026 [13]
[1/4] Validating configuration...
✓ Configuration valid
[2/4] Validating repository...
✓ Repository valid: fabricktest-2
[10:36:55] Detected languages: Python (15 files)
✓ Output directory: /opt/gitlab-runner/builds/bKpUow5MT/2/components/fabrick-it/services-provider/fabricktest-2/documentation
[4/4] Generating documentation...
[10:36:55] Exclude patterns: ['test', 'tests', 'Tests', '__tests__', 'Specs', '*Test.java', '*Tests.java', '*IT.java', '*.spec.ts', '*.spec.js', '*.test.ts', '*.test.js', '*.test.cs', 'documentation', 'public', 'procLogs', 'helm_automation', 'target', '.venv', 'venv', '.codewiki', '.cache', '.npm', '.m2', '.config']
[10:36:55] Custom instructions: Always create the module documentation file with the str_replace_editor create command before giving your final answer. Never finish without writing it. Tool arguments that are lists must be passed as JSON arrays, not as strings.
[10:36:55] Max tokens: 64000
[10:36:55] Max token/module: 120000
[10:36:55] Max token/leaf module: 60000
[10:36:55] Max depth: 2
[10:36:55] Use gitignore: True
[10:36:55] Prompt caching: True
[10:36:55] Artifacts: True (token budget 200000, prose False)
[00:00] Phase 1/5: Dependency Analysis
[00:00] Initializing dependency analyzer...
[00:00] Parsing source files...
[10:36:56] INFO Using custom exclude patterns: ['test', 'tests', 'Tests', '__tests__', 'Specs', '*Test.java', '*Tests.java', '*IT.java', '*.spec.ts', '*.spec.js', '*.test.ts', '*.test.js', '*.test.cs', 'documentation', 'public', 'procLogs', 'helm_automation', 'target', '.venv', 'venv', '.codewiki', '.cache', '.npm', '.m2', '.config']
[10:36:56] INFO 📊 Parsing 7 source files (this may take a few minutes)...
[10:36:56] INFO [1/7] app/__init__.py (0.0s elapsed, ~0.0s remaining)
[10:36:56] INFO [2/7] app/__main__.py (0.0s elapsed, ~0.0s remaining)
[10:36:56] INFO [3/7] app/oracle_bench.py (0.0s elapsed, ~0.0s remaining)
[10:36:56] INFO [4/7] app/postgres_bench.py (0.0s elapsed, ~0.0s remaining)
[10:36:56] INFO [5/7] app/server.py (0.0s elapsed, ~0.0s remaining)
[10:36:56] INFO [6/7] app/sql_bench.py (0.0s elapsed, ~0.0s remaining)
[10:36:56] INFO [7/7] app/stats.py (0.0s elapsed, ~0.0s remaining)
[10:36:56] INFO ✓ Analysis complete: 7/7 files analyzed, 0 failed, 175 functions, 729 relationships (0.1s)
[10:36:56] INFO Artifact analysis: 5 files, 5 nodes, 1 edges, 2691 tokens (budget 200000)
[10:36:56] INFO Artifact nodes in dependency graph: 5
[10:36:56] INFO Including function components as leaf candidates: 14 class/interface/struct components vs 56 functions — functions carry most of this codebase.
[10:36:56] INFO Including function components as leaf candidates: 14 class/interface/struct components vs 56 functions — functions carry most of this codebase.
[00:00] Analyzed 180 files, found 75 leaf nodes
[00:00] File: app/oracle_bench.py::OracleEngine
[00:00] File: app/oracle_bench.py::OracleEngine.connect
[00:00] File: app/oracle_bench.py::OracleEngine.connection_details
[00:00] File: app/oracle_bench.py::OracleEngine.import_driver
[00:00] File: app/oracle_bench.py::OracleEngine.insert_sql
[00:00] File: app/oracle_bench.py::OracleEngine.load_credentials
[00:00] File: app/oracle_bench.py::OracleEngine.normalize_dsn
[00:00] File: app/oracle_bench.py::OracleEngine.normalize_identifier
[00:00] File: app/oracle_bench.py::OracleEngine.prepare_cursor
[00:00] File: app/oracle_bench.py::OracleEngine.prepare_driver
[00:00] File: app/oracle_bench.py::OracleEngine.server_version
[00:00] File: app/oracle_bench.py::OracleEngine.table_exists_query
[00:00] File: app/oracle_bench.py::OracleEngine.translate_connect_error
[00:00] File: app/oracle_bench.py::OracleEngine.truncate_denied_hint
[00:00] File: app/oracle_bench.py::client_lib_dir
[00:00] File: app/oracle_bench.py::import_driver
[00:00] File: app/oracle_bench.py::init_client
[00:00] File: app/oracle_bench.py::jdbc_to_dsn
[00:00] File: app/oracle_bench.py::load_credentials
[00:00] File: app/postgres_bench.py::PostgresEngine
[00:00] ... and 160 more files
[00:00] Dependency Analysis complete (0.7s)
[00:00] Phase 2/5: Module Clustering
[00:00] Clustering modules with LLM...
[00:00] Loaded cached module tree
[00:00] Created 0 modules; continuing in whole-repository documentation mode
[00:00] Module Clustering complete (0.0s)
[00:00] Phase 3/5: Documentation Generation
[00:00] Generating module documentation...
[00:00] Generating documentation for 0 modules...
[10:36:56] INFO Processing whole repo because repo can fit in the context window
[01:20] Creating repository overview...
✗ Documentation generation finished but these module docs are missing: overview.md
- overview.md
Re-run the same command to resume generation for the missing modules.
Tue Oct 13 10:38:17 CEST 2026 [13] codewiki generate attempt 2 exit code 1 in 84s
Tue Oct 13 10:38:17 CEST 2026 [13] executing command nice -n 10 sh -c find documentation -name '*.md' -not -path '*/temp/*' | sort; echo '--- module tree:'; cat documentation/module_tree.json 2>/dev/null | /opt/python3_12_0/venvs/pipeline/bin/python -c 'import json,sys;[print(k) for k in json.load(sys.stdin)]' 2>/dev/null
Tue Oct 13 10:38:18 CEST 2026 [13] documentation files
--- module tree:
Tue Oct 13 10:38:18 CEST 2026 [13] executing command nice -n 10 sh -c echo "$(find "$0" -type f | wc -l) files, $(du -sh "$0" | cut -f1)"; find "$0" -type f -not -path '*/temp/*' -printf '%10s %p\n' | sort -k2 documentation
Tue Oct 13 10:38:19 CEST 2026 [13] documentation after attempt 2
5 files, 376K
2 documentation/first_module_tree.json
629 documentation/metadata.json
2 documentation/module_tree.json
and this are the config
Mon Oct 12 16:53:10 CEST 2026 [9] executing command nice -n 10 bash -c exec "$0" config set --provider openai-compatible --api-key "$CODEWIKI_API_KEY" "$@" < /dev/null /opt/python3_12_0/venvs/pipeline/bin/codewiki --base-url litellm--main-model claude-sonnet-5-5 --cluster-model claude-sonnet-5-5 --fallback-model claude-sonnet-5-5 --agent-retries 8 --max-tokens 64000
Thanks @ramarro123, that log helped.
In your latest run the repo is small enough that CodeWiki documents it in one pass. That agent ran for about 80 seconds and then finished without creating its page. No error was raised, so the run looked successful, and the page was missing. Your earlier oracle_engine failure looks like the same problem. CodeWiki never checked that the agent had actually written its file, and the logs didn't show why, so re-running just repeated the same miss.
I've pushed a fix to the branch fix/agent-must-write-doc. It's not merged yet; could you try it in your pipeline first?
/opt/python3_12_0/venvs/pipeline/bin/pip install --force-reinstall --no-deps "git+https://github.com/FSoft-AI4Code/CodeWiki.git@fix/agent-must-write-doc"
Then run the same codewiki generate ... -v command. You don't need to clear documentation/.
What changed:
- If an agent finishes without writing its page, CodeWiki now asks it again in the same conversation (up to 2 times), telling it the exact file to create.
- Each time this happens, the -v log shows a line like:
Agent for
finished without writing .md (reminder 1/2). Final answer: ... | tool calls: ... | editor writes: ... | last finish_reason: ...
Please tell us whether overview.md (or oracle_engine.md) gets generated now. If you see any finished without writing or still has not written lines, please paste them. They show what the model did instead (answered in text, made tool calls that were rejected, or got cut off at the token limit), and that tells us whether anything else needs fixing.
Your custom --instructions workaround shouldn't be needed with this branch, but it's fine to keep it for this test.
i did try a generation as suggested but i got
I'll start by reading the two child module documentation files.
/opt/gitlab-runner/builds/USC-4tZMc/0/components/fabrick-it/development-frameworks/FabrickCoreLib/documentation/build_and_deployment.md /opt/gitlab-runner/builds/USC-4tZMc/0/components/fabrick-it/development-frameworks/FabrickCoreLib/documentation/claude_plugin_project_bootstrap.md /opt/gitlab-runner/builds/USC-4tZMc/0/components/fabrick-it/development-frameworks/FabrickCoreLib/documentation/build_and_deployment.md /opt/gitlab-runner/builds/USC-4tZMc/0/components/fabrick-it/development-frameworks/FabrickCoreLib/documentation/claude_plugin_project_bootstrap.md /opt/gitlab-runner/builds/USC-4tZMc/0/components/fabrick-it/development-frameworks/FabrickCoreLib/documentation/build_and_deployment.md /opt/gitlab-runner/builds/USC-4tZMc/0/components/fabrick-it/development-frameworks/FabrickCoreLib/documentation/claude_plugin_project_bootstrap.md
so the file is not generated, this is acutally written in MD file called