Skip to content

Conversation

@kristapsk
Copy link
Member

@kristapsk kristapsk commented Sep 3, 2025

Git submodules make it easier to track and update dependencies. Update of ini parsing will be needed for #24.

Summary by CodeRabbit

  • New Features

    • INI parsing dependency added as a Git submodule.
  • Documentation

    • Build instructions updated: initialise submodules before building for linux/aarch64.
  • Chores

    • CI updated to fetch and verify submodules during checkout.
  • Bug Fixes / Cleanup

    • Bundled INI examples, tests and auxiliary files removed from the main repository (now maintained in the submodule).

@coderabbitai
Copy link

coderabbitai bot commented Sep 3, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Adds the lib/ini submodule and updates docs and CI to initialise submodules; the lib/ini submodule pointer advances and many files inside lib/ini (build scripts, sources, headers, examples, tests, and repo metadata) are removed or modified.

Changes

Cohort / File(s) Summary
Submodule setup
/.gitmodules, lib/ini
Adds lib/ini submodule (https://github.com/ziglibs/ini.git) and updates its pointer to commit 19e1210....
Build & CI docs
/README.md, /.github/workflows/ci.yml
README: adds pre-build step git submodule update --init --recursive for linux/aarch64 release build. CI: checkout step set to fetch submodules recursively and a "Verify submodules" step added.
Library build & packaging removed
lib/ini/build.zig, lib/ini/build.zig.zon
Deleted Zig build script and package manifest (library/executable/test targets removed).
Source & public API removed
lib/ini/src/ini.zig, lib/ini/src/lib.zig, lib/ini/src/ini.h
Deleted INI parser implementation (Zig and C header) and all public API/type declarations.
Tests removed
lib/ini/src/test.zig, lib/ini/src/lib-test.zig
Removed unit tests and C-interop tests for the INI parser.
Examples removed
lib/ini/example/example.c, lib/ini/example/example.zig, lib/ini/example/example.ini
Deleted C and Zig example programs and sample INI file.
Repo metadata & attributes changed
lib/ini/.gitattributes, lib/ini/.gitignore, lib/ini/.github/FUNDING.yml, lib/ini/LICENCE, lib/ini/README.md
Removed .gitattributes entry lines, removed zig-cache/ and zig-out/ ignore rules, removed FUNDING entry, deleted LICENCE content and README.md from submodule.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Developer
  participant Repo as Repository
  participant CI as CI workflow
  participant Git as Git (submodules)

  Dev->>Repo: Push changes (add/advance submodule)
  Repo->>CI: Trigger CI
  CI->>Git: actions/checkout (with submodules: recursive)
  CI->>Git: git submodule status --recursive
  Git-->>CI: Submodule initialised/updated
  CI->>CI: Run build steps (README pre-build submodule update advised)
  CI-->>Dev: Report build result
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

I hop through branches, nibble dots of code,
Submodules tucked in my little load.
Old examples shelved, tests waved goodbye,
Licences and examples softly fly.
A tidy burrow — a soft carrot sky. 🐇


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 16b7de6 and 16a86c2.

📒 Files selected for processing (19)
  • .github/workflows/ci.yml (1 hunks)
  • .gitmodules (1 hunks)
  • README.md (1 hunks)
  • lib/ini (1 hunks)
  • lib/ini/.gitattributes (0 hunks)
  • lib/ini/.github/FUNDING.yml (0 hunks)
  • lib/ini/.gitignore (0 hunks)
  • lib/ini/LICENCE (0 hunks)
  • lib/ini/README.md (0 hunks)
  • lib/ini/build.zig (0 hunks)
  • lib/ini/build.zig.zon (0 hunks)
  • lib/ini/example/example.c (0 hunks)
  • lib/ini/example/example.ini (0 hunks)
  • lib/ini/example/example.zig (0 hunks)
  • lib/ini/src/ini.h (0 hunks)
  • lib/ini/src/ini.zig (0 hunks)
  • lib/ini/src/lib-test.zig (0 hunks)
  • lib/ini/src/lib.zig (0 hunks)
  • lib/ini/src/test.zig (0 hunks)
💤 Files with no reviewable changes (15)
  • lib/ini/.gitignore
  • lib/ini/build.zig
  • lib/ini/example/example.c
  • lib/ini/README.md
  • lib/ini/example/example.zig
  • lib/ini/LICENCE
  • lib/ini/src/lib-test.zig
  • lib/ini/src/lib.zig
  • lib/ini/src/ini.zig
  • lib/ini/example/example.ini
  • lib/ini/src/test.zig
  • lib/ini/build.zig.zon
  • lib/ini/src/ini.h
  • lib/ini/.github/FUNDING.yml
  • lib/ini/.gitattributes
🚧 Files skipped from review as they are similar to previous changes (4)
  • lib/ini
  • README.md
  • .github/workflows/ci.yml
  • .gitmodules
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@kristapsk kristapsk requested a review from Copilot September 3, 2025 22:48

This comment was marked as outdated.

Copy link

@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: 0

🧹 Nitpick comments (1)
.github/workflows/ci.yml (1)

12-12: Recursive submodule checkout LGTM; add a fast-fail verification step

Nice—this ensures lib/ini is present in CI. Consider explicitly verifying submodules right after checkout to fail fast if anything breaks, and to surface clearer logs.

       with:
         fetch-depth: 0
         fetch-tags: true
         submodules: recursive
+
+    - name: Verify submodules
+      run: git submodule status --recursive

Also, double-check the README instruction that says to run “zig submodule update …” — that likely should be “git submodule update …”.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 898a277 and ef1960c.

📒 Files selected for processing (19)
  • .github/workflows/ci.yml (1 hunks)
  • .gitmodules (1 hunks)
  • README.md (1 hunks)
  • lib/ini (1 hunks)
  • lib/ini/.gitattributes (0 hunks)
  • lib/ini/.github/FUNDING.yml (0 hunks)
  • lib/ini/.gitignore (0 hunks)
  • lib/ini/LICENCE (0 hunks)
  • lib/ini/README.md (0 hunks)
  • lib/ini/build.zig (0 hunks)
  • lib/ini/build.zig.zon (0 hunks)
  • lib/ini/example/example.c (0 hunks)
  • lib/ini/example/example.ini (0 hunks)
  • lib/ini/example/example.zig (0 hunks)
  • lib/ini/src/ini.h (0 hunks)
  • lib/ini/src/ini.zig (0 hunks)
  • lib/ini/src/lib-test.zig (0 hunks)
  • lib/ini/src/lib.zig (0 hunks)
  • lib/ini/src/test.zig (0 hunks)
💤 Files with no reviewable changes (15)
  • lib/ini/.github/FUNDING.yml
  • lib/ini/src/test.zig
  • lib/ini/example/example.ini
  • lib/ini/.gitignore
  • lib/ini/build.zig.zon
  • lib/ini/README.md
  • lib/ini/src/lib-test.zig
  • lib/ini/.gitattributes
  • lib/ini/example/example.zig
  • lib/ini/build.zig
  • lib/ini/src/ini.h
  • lib/ini/src/ini.zig
  • lib/ini/LICENCE
  • lib/ini/example/example.c
  • lib/ini/src/lib.zig
✅ Files skipped from review due to trivial changes (1)
  • lib/ini
🚧 Files skipped from review as they are similar to previous changes (2)
  • .gitmodules
  • README.md
🔇 Additional comments (1)
.github/workflows/ci.yml (1)

28-31: Confirm driver flag spelling for Aarch64 build

Is -Ddriver=fbev intentional? If this was meant to be Linux framebuffer, it’s commonly fbdev. If fbev is correct for this project, ignore; otherwise this step will fail on CI.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the INI parsing library from embedded source code to a Git submodule, making dependency management more modular and easier to update. The change is motivated by upcoming requirements for INI parsing updates referenced in issue #24.

  • Removed all INI library source files from the main repository
  • Added Git submodule pointing to https://github.com/ziglibs/ini
  • Updated CI workflow and documentation to handle submodule initialization

Reviewed Changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.

File Description
lib/ini Converted from directory containing source files to Git submodule reference
.gitmodules Added submodule configuration for the INI library
.github/workflows/ci.yml Updated CI to fetch submodules during checkout
README.md Added pre-build step requiring submodule initialization

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@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: 0

🧹 Nitpick comments (2)
.gitmodules (2)

1-3: Optionally harden submodule config (shallow clone and canonical URL).

Shallowing speeds CI and the .git suffix avoids edge-case tooling complaints.

 [submodule "lib/ini"]
   path = lib/ini
-  url = https://github.com/ziglibs/ini
+  url = https://github.com/ziglibs/ini.git
+  shallow = true

1-3: Confirm pinning, update policy, and licensing.

  • Ensure the submodule is pinned to a known-good commit (default) and that you’re not unintentionally tracking a moving branch.
  • If you plan periodic auto-updates, explicitly set branch = <default-branch> and document the process.
  • Verify ziglibs/ini licence compatibility and add it to your THIRD-PARTY notices if applicable.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between ef1960c and 16b7de6.

📒 Files selected for processing (19)
  • .github/workflows/ci.yml (1 hunks)
  • .gitmodules (1 hunks)
  • README.md (1 hunks)
  • lib/ini (1 hunks)
  • lib/ini/.gitattributes (0 hunks)
  • lib/ini/.github/FUNDING.yml (0 hunks)
  • lib/ini/.gitignore (0 hunks)
  • lib/ini/LICENCE (0 hunks)
  • lib/ini/README.md (0 hunks)
  • lib/ini/build.zig (0 hunks)
  • lib/ini/build.zig.zon (0 hunks)
  • lib/ini/example/example.c (0 hunks)
  • lib/ini/example/example.ini (0 hunks)
  • lib/ini/example/example.zig (0 hunks)
  • lib/ini/src/ini.h (0 hunks)
  • lib/ini/src/ini.zig (0 hunks)
  • lib/ini/src/lib-test.zig (0 hunks)
  • lib/ini/src/lib.zig (0 hunks)
  • lib/ini/src/test.zig (0 hunks)
💤 Files with no reviewable changes (15)
  • lib/ini/build.zig.zon
  • lib/ini/.gitignore
  • lib/ini/LICENCE
  • lib/ini/.github/FUNDING.yml
  • lib/ini/.gitattributes
  • lib/ini/src/ini.h
  • lib/ini/example/example.c
  • lib/ini/src/test.zig
  • lib/ini/example/example.zig
  • lib/ini/example/example.ini
  • lib/ini/src/lib-test.zig
  • lib/ini/src/ini.zig
  • lib/ini/README.md
  • lib/ini/build.zig
  • lib/ini/src/lib.zig
🚧 Files skipped from review as they are similar to previous changes (3)
  • lib/ini
  • README.md
  • .github/workflows/ci.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build
🔇 Additional comments (1)
.gitmodules (1)

1-3: LGTM: Submodule entry is valid.

Path and HTTPS URL look correct for a read-only dependency.

@kristapsk kristapsk merged commit 1eba487 into nakamochi:master Sep 3, 2025
2 checks passed
@kristapsk kristapsk deleted the gitmodules branch September 3, 2025 23:45
@coderabbitai coderabbitai bot mentioned this pull request Sep 4, 2025
@coderabbitai coderabbitai bot mentioned this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant