ci: build chumbucket from docgen and purge bundles on docgen updates - #8
Merged
Merged
Conversation
docgen replaced docparse with a tree-sitter based parser and fixed the created/last updated dates picked up by the walker, but no chumbucket release has been published for it. The pinned cb-0.4.3 binary also fails on current sources, so every scheduled run since has failed. - Build chumbucket from a pinned docgen commit (DOCGEN_REF) - Record the docgen commit in bundles/.docgen and purge all bundles and the index when it changes, so they are regenerated from scratch instead of continuing from bundles made by the old parser - Add a purge input to manual workflow runs - Bump actions/checkout to v4 and grant contents: write for the push Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G58BnU1wSW5boKd7VouCRy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docgen switched to a tree-sitter based parser (sourcemod-dev/docgen#30) and fixed the created and last updated dates picked up by the walker (sourcemod-dev/docgen#31). No chumbucket release was published for these changes. The latest tag is still
cb-0.4.3, and with that binary every scheduled run has failed at "Process manifests".This PR purges the existing bundles and regenerates them from scratch with the updated docgen.
Changes
DOCGEN_REF, currently mastere3b1c42) instead of downloading a release asset.bundles/.docgen. When the pinned commit changes, delete every*.bundleand theindexbefore generating, so bundles are rebuilt from full history instead of continuing from ones the old parser made. The purge and the regeneration happen in the same run and are committed together, so thebundlesbranch is never left empty, and a failed run commits nothing.purgeinput for manual (workflow_dispatch) runs.actions/checkoutto v4 and setpermissions: contents: writefor the bundles push.trigger.txtline so merging starts the run, and document the pin in the README.Local verification
I simulated the workflow steps against a copy of the current
bundlesbranch:smjansson, which never had a bundle before.source-chat-relay,sbpp,ttt).corewent from 68 to 69 files and from 1239 to 1269 functions.-band-i) produced no changes.Note
The Documentation workflow is currently
disabled_inactivity. It needs to be re-enabled under Actions before the merge push, or a manual run, will start it.🤖 Generated with Claude Code
https://claude.ai/code/session_01G58BnU1wSW5boKd7VouCRy
Generated by Claude Code