Commit 386cb15
perf(ci): cache ~/.npm + drop per-invocation npx for storyboard runners (#450)
Three changes informed by an honest read of where the time goes on cold
CI runs (per recent feedback):
1. ``actions/cache@v4`` on ``~/.npm`` for both storyboard jobs, keyed by
OS only (not by version). Cache survives across ``@adcp/sdk`` releases —
``npm install`` reuses tarballs already in the cache and only fetches
the delta. Buys back ~20-25s of network fetch on warm runs.
2. Move installs to a single ``npm install -g @adcp/sdk@latest`` step
per job. Subsequent invocations call ``adcp …`` directly instead of
paying the per-call ``npx -y -p …`` extract+link tax. Both jobs do
this (seller_agent storyboard + v3 ref seller storyboard).
3. ``@adcp/sdk@latest`` stays unpinned — drift detection is the point of
these jobs. Caching ``~/.npm`` doesn't fight that: the cache amortizes
the disk-side cost across runs while the version resolution still
surfaces protocol drift on every invocation.
The realistic floor on storyboard CI startup is now ~5-10s on warm
runs (no network) vs ~30-45s previously. Cold runs are unchanged
(first job populates the cache).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6b89599 commit 386cb15
1 file changed
Lines changed: 48 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
359 | 387 | | |
360 | 388 | | |
361 | 389 | | |
| |||
388 | 416 | | |
389 | 417 | | |
390 | 418 | | |
391 | | - | |
392 | | - | |
393 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
394 | 422 | | |
395 | | - | |
| 423 | + | |
396 | 424 | | |
397 | 425 | | |
398 | 426 | | |
| |||
484 | 512 | | |
485 | 513 | | |
486 | 514 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
491 | 527 | | |
492 | 528 | | |
493 | 529 | | |
494 | 530 | | |
495 | 531 | | |
496 | 532 | | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
| 533 | + | |
504 | 534 | | |
505 | 535 | | |
506 | 536 | | |
| |||
592 | 622 | | |
593 | 623 | | |
594 | 624 | | |
595 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
596 | 628 | | |
597 | 629 | | |
598 | 630 | | |
| |||
0 commit comments