Skip to content

LCORE-1494: Disable openapi.md generation#1343

Merged
tisnik merged 1 commit intolightspeed-core:mainfrom
tisnik:lcore-1494-disable-openapi.md
Mar 18, 2026
Merged

LCORE-1494: Disable openapi.md generation#1343
tisnik merged 1 commit intolightspeed-core:mainfrom
tisnik:lcore-1494-disable-openapi.md

Conversation

@tisnik
Copy link
Copy Markdown
Contributor

@tisnik tisnik commented Mar 18, 2026

Description

LCORE-1494: Disable openapi.md generation

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

  • Assisted-by: N/A
  • Generated by: N/A

Related Tickets & Documents

  • Related Issue #LCORE-1494

Summary by CodeRabbit

  • Chores
    • Updated the OpenAPI documentation generation process in the build system to modify output file handling.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 18, 2026

Walkthrough

The Makefile's OpenAPI documentation generation target has been modified to write formatted output to a different file path. The build step continues to remove the intermediate output.md file, with a comment now documenting the rationale for this adjustment.

Changes

Cohort / File(s) Summary
Build Configuration
Makefile
Modified OpenAPI doc generation target to output to openapi2.md instead of overwriting docs/openapi.md; retained output.md removal step and added explanatory comment.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: disabling openapi.md generation, which matches the raw summary showing output is now written to openapi2.md instead.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
Makefile (1)

60-61: Consider cleanup for openapi2.md.

The new output file openapi2.md is generated in the repository root but is not cleaned up (unlike output.md). If this file should not be committed, consider:

  1. Adding openapi2.md to .gitignore, or
  2. Removing it after generation if it's only a temporary artifact

If openapi2.md is intentionally kept for some purpose, this can be disregarded.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Makefile` around lines 60 - 61, The Makefile target currently leaves a
temporary file openapi2.md in the repo root after running "python3
scripts/fix_openapi_doc.py < output.md > openapi2.md"; either add openapi2.md to
.gitignore if you intend to keep it, or modify the Makefile rule that produces
openapi2.md to remove it after generation (e.g., append an rm openapi2.md step)
so it isn't left committed; update the Makefile target that contains the
"python3 scripts/fix_openapi_doc.py < output.md > openapi2.md" line accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@Makefile`:
- Around line 59-60: The Makefile comment and command reference the wrong file:
update the command "python3 scripts/fix_openapi_doc.py < output.md >
openapi2.md" and its preceding comment so it uses and preserves docs/openapi.md
(not docs/output.md), e.g. read from docs/openapi.md or change the comment to
refer to output.md consistently; ensure the intermediate output.md is not being
removed later (or switch the input to docs/openapi.md) so the intended
docs/openapi.md is preserved and the produced openapi2.md remains consistent
with the PR goal.

---

Nitpick comments:
In `@Makefile`:
- Around line 60-61: The Makefile target currently leaves a temporary file
openapi2.md in the repo root after running "python3 scripts/fix_openapi_doc.py <
output.md > openapi2.md"; either add openapi2.md to .gitignore if you intend to
keep it, or modify the Makefile rule that produces openapi2.md to remove it
after generation (e.g., append an rm openapi2.md step) so it isn't left
committed; update the Makefile target that contains the "python3
scripts/fix_openapi_doc.py < output.md > openapi2.md" line accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 46b634ac-e374-420b-b2ab-f022eaff92d6

📥 Commits

Reviewing files that changed from the base of the PR and between 80d5b9e and 8fb90f1.

📒 Files selected for processing (1)
  • Makefile

Comment on lines +59 to +60
# LCORE-1494: don't overwrite the original docs/output.md for now
python3 scripts/fix_openapi_doc.py < output.md > openapi2.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Comment references incorrect filename.

The comment mentions docs/output.md, but based on the PR objective ("Disable openapi.md generation") and context, the file being preserved is docs/openapi.md. The intermediate output.md file is still being removed on line 61.

Proposed fix
-	# LCORE-1494: don't overwrite the original docs/output.md for now
+	# LCORE-1494: don't overwrite the original docs/openapi.md for now
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Makefile` around lines 59 - 60, The Makefile comment and command reference
the wrong file: update the command "python3 scripts/fix_openapi_doc.py <
output.md > openapi2.md" and its preceding comment so it uses and preserves
docs/openapi.md (not docs/output.md), e.g. read from docs/openapi.md or change
the comment to refer to output.md consistently; ensure the intermediate
output.md is not being removed later (or switch the input to docs/openapi.md) so
the intended docs/openapi.md is preserved and the produced openapi2.md remains
consistent with the PR goal.

@tisnik tisnik merged commit b24a7d8 into lightspeed-core:main Mar 18, 2026
21 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant