paperclip/.github/workflows
Devin Foley a23ae894a5
ci: cache Rust dependencies used by post-merge typecheck (#13259)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work.
> - Cloud images become deployable only after source verification
passes.
> - The typecheck job builds the native Runner binary through the server
package.
> - Fresh runners repeatedly compile Rust dependencies for that binary.
> - This PR caches those dependencies for exact-source master
verification.
> - Workspace code and every typecheck still rebuild or run as before.

## Linked Issues or Issue Description

Refs #13243 and #13257.

**What existing behavior does this improve?**
The typecheck portion of post-merge cloud source verification.

**Current behavior**
The typecheck job has no Rust dependency cache. An observed release
build in this job took 4m 13s, including dependency compilation.

**Proposed behavior**
Restore dependency build outputs for canonical master pushes with the
exact source SHA. Use a separate cache key from the Runner verification
job, which builds other profiles.

**Reason and benefit**
A warm cache should remove roughly 2–3 minutes of dependency compilation
from this job. Overall deployment gains depend on the remaining critical
path. The first cache population still compiles from scratch.

**Breaking changes**
None. All checks remain enabled. Non-master callers compile without
restoring or saving this cache.

## What Changed

- Select the pinned Rust toolchain before the typecheck cache lookup.
- Reuse the existing pinned Rust cache action with a typecheck-specific
key.
- Exclude workspace crates and installed cargo executables.
- Test restore/save trust boundaries and document cache behavior.

## Verification

- All workflow script tests pass locally, including nine new cache
trust/contract cases.
- actionlint passes for release-verify.yml.
- Full local typecheck and build pass on the same source base (167s and
206s); `pnpm test:run` is still running and is recorded with #13257.
This PR changes only the workflow, cache guard tests, and documentation.
- All 32 current-head checks are successful or intentionally skipped,
including the complete Linux test matrix, build, and Greptile 5/5 with
no unresolved findings. Verify cache population and subsequent restore
on actual master runs.

## Risks

- The first run and any toolchain/dependency invalidation compile from
scratch.
- Cache restore/save overhead reduces the benefit for small dependency
graphs.
- Disable the cache step to roll back; the existing uncached build
remains valid.

## Model Used

OpenAI GPT-6 through Codex, with reasoning, repository tools, and code
execution. Exact serving model ID and context window are not exposed by
this environment.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass — focused change tests
pass; full-suite local permission failures are disclosed above
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-11 13:15:06 -07:00
..
agent-runtime-images.yml build(deps): bump actions/checkout from 6 to 7 (#8461) 2026-06-23 10:13:39 -07:00
cloud-artifacts.yml fix(release): publish exact-source cloud migrators on merge (#13188) 2026-09-10 21:07:38 -07:00
cloud-readiness.yml fix(ci): reuse cloud source verification for npm canaries (#13233) 2026-09-11 09:26:26 -07:00
commitperclip-review.yml fix(build): enforce Node 24 across Paperclip (#11792) 2026-08-21 10:17:52 -07:00
docker-cloud.yml ci: route approved master cloud builds to AWS (#13243) 2026-09-11 11:15:55 -07:00
docker-runner-check.yml ci: cache the native Runner in a separate Docker stage (#13195) 2026-09-10 20:36:55 -07:00
docker.yml ci: build cloud images independently for each merge (#13189) 2026-09-10 20:42:18 -07:00
e2e.yml test(runner): add full-stack acceptance and eval gates (#12700) 2026-09-02 08:55:08 -05:00
pr-trusted.yml fix(ci): reuse cloud source verification for npm canaries (#13233) 2026-09-11 09:26:26 -07:00
pr.yml ci: activate the Docker context integrity gate for PRs (#12860) 2026-09-04 17:22:15 -07:00
refresh-lockfile.yml ci: harden paid runner browser and lock repair (#12829) 2026-09-04 08:58:44 -05:00
release-smoke.yml Follow the current onboarding arc in the release smoke (#12423) 2026-08-28 07:21:08 -07:00
release-verify.yml ci: cache Rust dependencies used by post-merge typecheck (#13259) 2026-09-11 13:15:06 -07:00
release.yml fix(ci): reuse cloud source verification for npm canaries (#13233) 2026-09-11 09:26:26 -07:00
runner-chaos-evals.yml fix(ci): isolate chaos verification by caller workflow (#13208) 2026-09-10 23:59:44 -07:00
runner-full-stack-e2e.yml test(e2e): link runner campaign summaries (#12927) 2026-09-06 09:09:51 -05:00
runner-live-evals.yml feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
runner-protocol-live-evals.yml fix(evals): make the chat viewer the default published Evalbook (#12952) 2026-09-07 07:47:17 -05:00
storybook-deploy.yml feat: publish CODEOWNER-approved Storybook branch previews (#13226) 2026-09-11 09:13:55 -05:00
storybook-visual.yml feat: publish CODEOWNER-approved Storybook branch previews (#13226) 2026-09-11 09:13:55 -05:00