- Notifications
You must be signed in to change notification settings - Fork907
Commitb47d54d
authored
chore: cache terraform providers between CI test runs (#17373)
Addressescoder/internal#322.This PR starts caching Terraform providers used by `TestProvision` in`provisioner/terraform/provision_test.go`. The goal is to improve thereliability of this test by cutting down on the number of network callsto external services. It leverages GitHub Actions cache, which [on depotrunners is persisted for 14 days bydefault](https://depot.dev/docs/github-actions/overview#cache-retention-policy).Other than the aforementioned `TestProvision`, I couldn't find any othertests which depend on external terraform providers.1 parent08ad910 commitb47d54d
File tree
7 files changed
+393
-34
lines changed- .github
- actions/test-cache
- download
- upload
- workflows
- provisioner/terraform
- testutil
7 files changed
+393
-34
lines changedLines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + |
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + |
Lines changed: 55 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
344 | 350 |
| |
345 | 351 |
| |
346 | 352 |
| |
| |||
365 | 371 |
| |
366 | 372 |
| |
367 | 373 |
| |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
368 | 379 |
| |
369 | 380 |
| |
370 | 381 |
| |
| |||
462 | 473 |
| |
463 | 474 |
| |
464 | 475 |
| |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
465 | 482 |
| |
466 | 483 |
| |
467 | 484 |
| |
| |||
476 | 493 |
| |
477 | 494 |
| |
478 | 495 |
| |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
479 | 501 |
| |
480 | 502 |
| |
481 | 503 |
| |
| |||
514 | 536 |
| |
515 | 537 |
| |
516 | 538 |
| |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
517 | 545 |
| |
518 | 546 |
| |
519 | 547 |
| |
520 | 548 |
| |
521 | 549 |
| |
522 | 550 |
| |
523 | 551 |
| |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
524 | 557 |
| |
525 | 558 |
| |
526 | 559 |
| |
| |||
551 | 584 |
| |
552 | 585 |
| |
553 | 586 |
| |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
554 | 593 |
| |
555 | 594 |
| |
556 | 595 |
| |
| |||
559 | 598 |
| |
560 | 599 |
| |
561 | 600 |
| |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
562 | 606 |
| |
563 | 607 |
| |
564 | 608 |
| |
| |||
589 | 633 |
| |
590 | 634 |
| |
591 | 635 |
| |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
592 | 642 |
| |
593 | 643 |
| |
594 | 644 |
| |
| |||
600 | 650 |
| |
601 | 651 |
| |
602 | 652 |
| |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
603 | 658 |
| |
604 | 659 |
| |
605 | 660 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
39 |
| - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 |
| |
54 | 58 |
| |
55 | 59 |
| |
|
0 commit comments
Comments
(0)