Repository navigation
Run CI on Graphide runners - #1
Merged
Merged
Conversation
Change runs-on to a Graphide label: graphide for jobs that build and test the code, graphide-plain for deploys, releases and bots, with a comment at the top of each changed workflow saying which is which; and add Graphide's agent hook files. Nothing else in the workflows changes.
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.
Graphide opened this pull request because someone in your organization asked to switch this repository to Graphide CI, on the Graphide dashboard. Merging it is the switch. Graphide opens and merges it in one step; if your branch rules need checks or a review first, it waits for them, and then you merge it here or with the Merge PR button on your Graphide dashboard.
What Graphide CI is: it runs your GitHub Actions jobs on Graphide's machines instead of GitHub's: a clean machine for each job, thrown away after it. Your workflows, commands and tests stay as they are, and GitHub still decides pass or fail.
What changes
Only
runs-on:lines, one per job below, and a short comment at the top of each workflow it changes that says what the two labels mean. Each job goes to one of two lanes:graphide, the CI lane: jobs that build and check the code (tests, builds, lint, type checks, docs builds). Graphide may speed these up (warm machines, caches, its proven changes); GitHub still decides pass or fail.graphide-plain, the plain lane: deploys, releases, publishing, cloud logins, jobs withenvironment:, scheduled bots and issue or pull request automation. A clean machine that runs the job's steps exactly as written, with nothing of Graphide's added.Neither label names a size: Graphide runs a job on 8 vCPUs and 16 GiB of memory unless its old label asked for more. Each line below says which lane the job got and why; to move a job to the other lane, change its label.
.github/workflows/test.yaml, jobgrammar:runs-on: ubuntu-latestbecomesruns-on: graphide. CI lane: it builds or checks the code: nothing in it deploys, publishes, logs in to a cloud or writes outside its run.github/workflows/test.yaml, jobgo:runs-on: ubuntu-latestbecomesruns-on: graphide. CI lane: it builds or checks the code: nothing in it deploys, publishes, logs in to a cloud or writes outside its runJobs that are not listed stay on their current runner.
These jobs have not run on Graphide's runners before: their first runs here are this pull request's own checks, if your branch rules wait for them, or else the next pushes after it merges.
Files this adds: agent signals
This also adds Graphide's agent hook files, because agent signals are on for your organization (they are on unless someone turns them off). They let your coding agents (Claude Code, Codex and Cursor) tell Graphide CI when they start work, change dependencies, or are about to push or merge, so machines are ready when the push lands. They never change whether a job passes, and your CI runs the same without them.
.graphide/agent-signal: the small script the hook files below run (withsh). It sends Graphide event names (an agent started, changed dependency files, is about to push or merge, stopped) with the repository, branch and commit, and the names of the dependency files that changed. It never sends your code, your prompts or your agent's conversation, except that a commit your agent asks Graphide to test is pushed, for that test, to a hidden ref of this repository (refs/graphide/run/..., outside your branches and tags). Once a session it also pushes an empty commit torefs/graphide/session/...to show the agent can push here. Graphide deletes these refs..claude/settings.json: Claude Code's hooks, which run the script..codex/hooks.json: Codex's hooks, which run the script. Codex asks once to approve a repository's hooks (/hooks); until someone does, Codex sends nothing..cursor/hooks.json: Cursor's hooks, which run the script.To turn agent signals off: switch Agent signals off on your Graphide dashboard (https://graphide.com/dashboard/#agent-signals). Graphide then takes no signals from your organization's repositories. Switched off before a repository is switched, it also leaves these files out of the pull request. This pull request is merged in one step, so to remove the files afterwards, delete them in a pull request of your own; they can also just stay. For this repository alone, add an empty
.graphide/signals-offfile; for one machine, setGRAPHIDE_SIGNALS=off.To undo it
Revert this pull request: every
runs-on:, every comment and every hook file goes back to how it was. Or change one job'sruns-on:back to its old label above. Nothing else is involved: no setting or variable, just the lines and files in this pull request.