mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-24 05:47:10 +01:00
92cf446fb63185a1ab6b8768a9d74ee7227a6350
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
7b4f4c81e0 |
fix(ci): make unchanged GitHub Actions polls free with conditional requests (#22677)
## Thinking Path
> - Paperclip is the open source app people use to manage AI agents for
work
> - CI on master builds the Docker image that deploys staging. The
release and readiness watchers in those workflows poll the GitHub
Actions API every 30 seconds, for up to 40 or 90 minutes.
> - The watchers use the workflow `GITHUB_TOKEN`. On the GitHub Team
plan, that token has one shared quota of 1,000 requests per hour for all
jobs in this repository.
> - One release watcher poll makes about 8–13 reads, so one watcher can
use most of the hour's quota. On busy days the quota runs out, and
unrelated calls fail with "API rate limit exceeded for installation". On
2026-11-23 this failed `docker/metadata-action` in two Docker builds,
and staging did not deploy for hours.
> - Most of these reads return the same data as the last poll. GitHub
does not count a `304 Not Modified` response against the quota.
> - This pull request makes the shared Actions reader send the last ETag
for each path and reuse the cached body on a 304.
> - The benefit is that an unchanged poll costs nothing. The watchers
use about 80% less quota, and the poll interval stays the same, so
releases are not slower.
## Linked Issues or Issue Description
**What happened?**
On 2026-11-23, Docker push builds on master failed with `API rate limit
exceeded for installation` in `docker/metadata-action`.
`actions/setup-node` also could not fetch its version manifest. The
repository's shared `GITHUB_TOKEN` quota was exhausted. Staging stayed
on one commit for several hours.
**Expected behavior**
Long-running CI watchers do not use up the repository's shared API
quota, so other jobs can make their API calls.
**Steps to reproduce**
1. Merge several pull requests to master in one hour.
2. Each Docker and readiness run starts watchers
(`scripts/watch-release-source.mjs`,
`scripts/cloud-source-verification.mjs`). Each watcher reads the Actions
API about 8–13 times every 30 seconds.
3. When the hourly quota is used up, other steps that call the API fail.
**Paperclip version or commit**
`master` at
|
||
|
|
44a4ca1c61 |
fix(ci): remove the admission CLI import cycle (#18889)
Move the unchanged Actions read transport into an independent module so the admission CLI can evaluate consumers without awaiting a circular import of source verification. Preserve the existing source verification export and all verification and placement contracts. Five child-process cases reproduce the original exit-13 failure before the repair and pass afterward. All 59 source/admission/image checks and 665 workflow contracts pass. Both CLI modes also pass read-only smoke checks against real GitHub metadata. Complete latest-head CI passed on its first attempt, with Greptile 5/5 and no unresolved comments. Co-Authored-By: Paperclip <noreply@paperclip.ing> |