mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
* ci: add optional Graphify code-graph workflows Build a code knowledge graph with the open-source Graphify CLI in code-only mode (tree-sitter, no API key or secret) on a daily schedule, cache graphify-out/ between runs, and upload graph.json.gz, graph.html and GRAPH_REPORT.md as a workflow artifact. Attach the same bundle to published releases. graph.json is about 150 MiB, above GitHub's 100 MiB file limit, so the graph is not committed; graphify-out/ is ignored. * ci: keep the Graphify cache bounded and align the release build - Set GRAPHIFY_NO_BACKUP=1. Hub-named community labels make graphify treat the graph as curated and snapshot it into graphify-out/<date>/ before every overwrite, without pruning; the cache would grow by ~100 MiB a day. The cache path also excludes graphify-out/20*. - Cluster once on a cold build (extract --no-cluster, then cluster-only), and label the release graph the same way as the scheduled one instead of "Community N" placeholders. - Release builds restore the default branch's cache (restore only) and run an incremental update instead of a cold extract. - Add workflow_dispatch with a tag input to graph-release.yml for releases created with GITHUB_TOKEN, which do not trigger the release event. - Use actions/cache@v6 and actions/setup-python@v7 like the rest of the repository; drop setup-uv and the full-history checkout. - Bundle graph.html only when graphify generated it. * ci: graph: build from a full extraction on every run graphify update re-extracts only the files that changed since the cached build. Go function ids include the file stem, so after a function moves to another file, callers in unchanged files keep edges to the old id, and the cache chain never resets that drift. A cold code-only build takes about five minutes on a hosted runner, so drop the cache and always extract. GRAPHIFY_NO_BACKUP only mattered for the cached graphify-out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: graph: attach the release bundle from a separate write job graph-release.yml ran graphify and its dependencies with a contents: write token persisted in the checkout's git config. Build the release bundle in the read-only graph job and upload it from a job that only downloads the artifact. The release asset is now the same bundle as the daily artifact, graph-health.json included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: graph: do not persist the checkout token Nothing after the checkout talks to a git remote, so keep the token out of .git/config where graphify could read it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: graph: keep artifact and asset names valid for any tag A dispatched tag such as release/v4.0 made an artifact name with a slash, which upload-artifact rejects. Name the artifact after the commit again and replace slashes in the release asset name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: graph: never call an LLM cluster-only auto-detects a labeling backend from API-key variables and the claude CLI; locally it picked up the claude CLI. Set GRAPHIFY_BACKEND=none so the build stays code-only even if a runner image provides one; communities keep hub-node names. --------- Co-authored-by: Konstantin Lebedev <whitefox@mayflower.work> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>