Skip to content

ci: build against the VGraph engine - #27

Merged
Vithanco merged 4 commits into
mainfrom
ci-workflows
Nov 12, 2026
Merged

Vithanco merged 4 commits into
mainfrom
ci-workflows

Conversation

@Vithanco

@Vithanco Vithanco commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

Checks that this plugin builds against VGraph's engine, on every PR and push to main. It publishes nothing: releases stay on the maintainer's machine (VGraph ADR 0036).

pull_request / push main / manual run
  checkout VGraph main, plugin inside it
  check-plugin-api.sh        # an export the engine dropped fails here
  engine: docker swift:<.swift-version>-noble ci-engine.sh, cached by VGraph commit
  npm ci → typecheck → build → package
  engine is optimized; upload the .vsix
  • .vscodeignore keeps .github/ out of the .vsix.

Evidence

  • Before: no workflow; an engine change first meets this plugin at release time.
    After: npm run typecheck passes. The engine step is the one VGraph#5 proved on GitHub (optimized, ~4.6 MB). This PR's own CI run is the end-to-end check.

Merge Danger

Door: two-way

Blast Radius: CI

Read-only token; no release or publish path changes.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores

    • Added automated checks for pull requests and updates to the main branch, including typechecking, building and packaging the extension.
    • The packaging process now verifies the bundled WebAssembly optimisation and confirms that an extension package is produced.
    • Repository workflow files are excluded from the packaged extension.
    • Updated the extension version to 1.0.11.
  • Tests

    • Typechecking now runs without generating output files.

Vithanco and others added 2 commits November 7, 2026 08:30
Started by `just release-engine` in VGraph, and on every PR against its latest
tag, so an export the engine drops fails here rather than at release time. Publishing
stays with `just publish-plugins`.

A re-run converges on one open PR, and versions with leading zeros are refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds a CI workflow for pull requests, pushes to main, and manual dispatches. The workflow restores or builds VGraph, typechecks and packages the extension, checks bundled WASM optimisation, and uploads the VSIX. The extension version changes to 1.0.11.

Changes: CI Build and Packaging

Layer / File(s) Summary
CI setup and VGraph package build
.github/workflows/ci.yml
The workflow defines triggers and permissions, checks out VGraph and the extension, verifies engine API calls, and restores or builds website/Package using the VGraph commit SHA.
Extension validation and packaging
package.json, .github/workflows/ci.yml, .vscodeignore
The workflow sets up Node 24, installs dependencies, typechecks, builds and packages the extension, checks bundled WASM optimisation, and uploads the VSIX. package.json adds a typecheck script and updates the version to 1.0.11. .vscodeignore excludes .github/.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant CI as CI workflow
  participant VGraph as VGraph checkout
  participant Cache as Package cache
  participant Docker as Docker engine build
  participant Extension as Extension build
  participant Artifacts as VSIX artifact
  CI->>VGraph: Check out and verify engine API calls
  VGraph-->>CI: Provide commit SHA
  CI->>Cache: Restore website/Package by commit SHA
  Cache-->>CI: Return cache result
  CI->>Docker: Build package on cache miss
  CI->>Extension: Typecheck, build, package, and check bundled WASM
  Extension-->>CI: Provide VSIX
  CI->>Artifacts: Upload VSIX
Loading
Merge Risk: Minimal · up to 4773c

This adds CI that builds the engine and packages the extension, and it does not change the extension's runtime behavior or how releases are published. No actionable merge-blocking risk was found. The PR's own CI run should be green before merging.

Security architecture risk: Low · up to 42639

The workflow confines the new automation to building and uploading an extension package, with read-only repository permissions and no publishing job. No concrete security flaw was established. Build provenance still depends on another repository’s moving default branch, and its scripts and generated packages were not fully verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — PR-controlled extension code executes during dependency installation and build on the CI runner. Its directly evidenced reach includes the workspace, build outputs, and uploaded VSIX; this workflow does not establish a path from that output to a privileged release or production deployment.

Trust Boundaries and Controls

  • observed — The new pipeline trusts executable scripts from the VGraph checkout and executes extension package commands. Read-only repository permissions and non-persisted checkout credentials limit repository authority, while pinned actions do not pin the separately selected engine revision.

Resilience and Maintainability Implications

  • inferred — The visible failure path stops validation or artifact upload rather than leaving a partially deployed release or partially updated bump branch. Cache contents and external engine-script behavior remain outside the directly verified transition invariants.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "ci: build against the VGraph engine" matches the main change. The PR adds a CI workflow that checks out VGraph, builds the engine with a commit-keyed cache, and then typechecks, builds and …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ci: build against the VGraph engine" matches the main change. The PR adds a CI workflow that checks out VGraph, builds the engine with a commit-keyed cache, and then typechecks, builds and packages the extension. The title is short, specific and follows a conventional commit style. It omits the packaging and upload steps, which is acceptable because the title need not cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a344b07-826c-46d8-8877-d5064cc168d4
Commits

Reviewing files that changed from the base of the PR and between 42639d8 and 4773cd6.

Files selected for processing: 1

  • package.json
Files skipped from review as they are similar to previous changes: 1

  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@coderabbitai coderabbitai Bot 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.

Additional comments: 1

.github/workflows/ci.yml: 1

116-116: Trivial · Maintainability & Code Quality · Low value

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Set persist-credentials: false on the bump-pr checkout, or document why it is not set.

The bump-pr job checks out the repository with the default persist-credentials: true. The .git/config file then holds a write-capable contents: write token. This job runs npm version, which executes no dependency code. open-bump-pr.sh still needs to push, so the token is required there. The artipacked finding therefore applies only if the workspace is uploaded as an artifact, and this job uploads none.

Keep the current behaviour. Add a short comment that explains the reason, so the zizmor warning is not "fixed" by breaking the push. Alternatively, set persist-credentials: false and push with an explicit token URL inside the script.

Source: Linters/SAST tools

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ecc6fd43-8a4e-43ce-9032-e9d4d520333e
Commits

Reviewing files that changed from the base of the PR and between 167cc7e and 53aa9fe.

Files selected for processing: 5

  • .github/workflows/ci.yml
  • .vscodeignore
  • package.json
  • scripts/open-bump-pr.sh
  • scripts/open-bump-pr.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Drop the dispatch inputs, the bump-PR job and open-bump-pr.sh: VGraph keeps
releases on the maintainer's machine (VGraph ADR 0036). CI builds against
VGraph's main. With no script tests left, the test step goes too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Vithanco Vithanco changed the title ci: build against the VGraph engine and open a bump PR ci: build against the VGraph engine Nov 8, 2026
@Vithanco
Vithanco merged commit e381856 into main Nov 12, 2026
2 checks passed
@Vithanco
Vithanco deleted the ci-workflows branch November 12, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant