Hi all, This is the vote on the first step of the [DISCUSS] thread "Keep each component, its docs and its tests in the same repository": https://lists.apache.org/thread/nxw2kfzk2rtsymjytdo3jr8f8155tn7z
The proposal: move Documentation/applications/ (except testing/) from nuttx to nuttx-apps, with its git history, and build the documentation from both repositories. Three PRs do this. If the vote passes, they merge in this order: 1. https://github.com/apache/nuttx-website/pull/205 The website also checks out nuttx-apps. It has no effect until step 3. 2. https://github.com/apache/nuttx-apps/pull/4258 It copies the 517 files with their history (320 commits by 76 authors since 2020). No existing commit or tag changes. 3. https://github.com/apache/nuttx/pull/22766 It removes the same 517 files from nuttx. The documentation build takes them from the apps tree next to nuttx. It merges on the same day as step 2, so the published documentation always has the pages. Please do NOT merge any of these PRs before the vote ends. #4258 keeps its history only with a merge commit. The nuttx-apps .asf.yaml does not allow one, and GitHub rebases at most 100 commits (#4258 has 323). So a PMC member must merge #4258 by hand. If the vote passes, we will send the exact steps. The Check job of #4258 fails on the messages of the old copied commits (110 of the 320 have no Signed-off-by). This is expected. Check it yourself: build the documentation before and after the PRs and compare. You need git, Python 3.10, pipenv and PlantUML. These are the commands of the documentation CI (run them in bash): git clone https://github.com/apache/nuttx.git git clone https://github.com/apache/nuttx-apps.git apps git -C nuttx fetch origin pull/22766/head:pr git -C apps fetch origin pull/4258/head:pr cd nuttx/Documentation git checkout $(git merge-base origin/master pr) pip3 install pipenv && pipenv sync pipenv run make html && mv _build ../../build-master git checkout pr && git -C ../../apps checkout pr pipenv run make html && mv _build ../../build-pr cd ../.. diff <(cd build-master/html && find . -name '*.html' | sort) <(cd build-pr/html && find . -name '*.html' | sort) The builds use -W, so a warning stops them. No output from diff means the same pages. In build-pr, each application page has one more footer line with the nuttx-apps commit it came from. Old release tags do not change, so their documentation builds as before. To check the history, merge #4258 into a local branch of apps master. This changes nothing on GitHub: git -C apps checkout -b vote-merge origin/master git -C apps merge --no-ff --no-edit -q pr git -C apps merge-base --is-ancestor origin/master vote-merge && echo "master unchanged" git -C apps log --format='%h %ad %an' --date=short --follow -- Documentation/applications/nsh/commands.rst git -C apps blame Documentation/applications/nsh/commands.rst The merge has no conflicts. "git log --follow" and "git blame" show the original authors and dates, back to 2020. Because the change touches nuttx and nuttx-apps at the same time, the vote follows CONTRIBUTING.md 1.13: it passes with at least 4 binding +1 votes and no binding -1 vote. It is open for at least 72 hours. [ ] +1: Move the applications documentation to nuttx-apps with these three PRs, in this order. [ ] 0: No opinion. [ ] -1: Do not move it, because ... (please give the technical reason). My vote: +1 (non-binding). Best regards, Marco Casaroli
