Skip to content

MDEV-39806: Add a per-push/per-pull-request checker for Markdown API docs - #5153

Open
gkodinov wants to merge 1 commit into
MariaDB:mainfrom
gkodinov:generate-api-docs
Open

MDEV-39806: Add a per-push/per-pull-request checker for Markdown API docs#5153
gkodinov wants to merge 1 commit into
MariaDB:mainfrom
gkodinov:generate-api-docs

Conversation

@gkodinov

@gkodinov gkodinov commented Jun 1, 2026

Copy link
Copy Markdown
Member

Create a GitHub action into the MariaDB server tree to build the Markdown documentation using the cmake target provided by MDEV-39718.

This workflow generates API documentation for the plugin using a Docker container packed with all the extra doxygen/moxygen tools and the latest CMake dependencies.

@gkodinov gkodinov self-assigned this Jun 1, 2026
@gemini-code-assist

This comment was marked as low quality.

@gkodinov gkodinov added the MariaDB Foundation Pull requests created by MariaDB Foundation label Jun 1, 2026
@gkodinov
gkodinov force-pushed the generate-api-docs branch from c0b255a to 538d427 Compare June 2, 2026 10:03

@vuvova vuvova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I never created or maintained github actions so I cannot really review that.

Commands under run look ok (if I'm not going to nitpick)

@@ -0,0 +1,50 @@
name: Generate Plugin API Docs

on:

@RazvanLiviuVarzaru RazvanLiviuVarzaru Jun 12, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If you want this workflow to run on other branches and on Pull Requests that are not targeting main
then it is not enough to commit it to the main branch.
Every supported branch should have it.

Going one step back,
why you want this workflow to run for every push or bb-* branch?
This is a lot of stress imposed on public GitHub runners; where's the added value? Because I see no mechanism where the results from a push are retrieved/analyzed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

removed.

- 'bb-*'
pull_request:
branches:
- 'main'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This will only trigger if someone opens a Pull Request towards main or a bb-* branch.
What is your intention here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I believe this should only be in the main branch.

Comment thread .github/workflows/generate-api-docs.yml Outdated
git submodule update --init --recursive libmariadb
mkdir bld
cd bld
cmake -DENABLE_GCOV=OFF \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You could've probably used -DWITHOUT_SERVER=ON to skip most of the cmake checks.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was done prior to having the shell script. I was hoping to get the shell script PR reviewed and merged first. But, oh, well. Rejigled with the idea to have the shell script.

@RazvanLiviuVarzaru RazvanLiviuVarzaru left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

As I remember from our previous discussions,
the main idea was that in the server repository to only have a Pull Request check action, that will fail for any documentation errors. assuming that you configured the tool to fail the action when there's a legitimate error on docs.

Did I missed something in the meantime?

@vuvova vuvova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

agree with @RazvanLiviuVarzaru, my recollection also is that we agreed that cmake and other build prerequisites aren't required to generated documentation

@gkodinov

Copy link
Copy Markdown
Member Author

agree with @RazvanLiviuVarzaru, my recollection also is that we agreed that cmake and other build prerequisites aren't required to generated documentation

I was hoping to get #5112 merged first, but it seems like we'll be doing the two in parallel. OK. I've updated the PR with code that's based on the files in #5112.

@gkodinov

gkodinov commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

Note that we will need to also update the moxygen version in mariadb-doc-gen: there are some fixes in it that are needed: https://github.com/sourcey/moxygen/releases/tag/v2.1.12

…docs

Create a GitHub action into the MariaDB server tree to build the Markdown
documentation using the cmake target provided by MDEV-39718.

This workflow generates API documentation for the plugin using a
Docker container packed with all the extra doxygen/moxygen tools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MariaDB Foundation Pull requests created by MariaDB Foundation

Development

Successfully merging this pull request may close these issues.

3 participants