Commit b3adb27
authored
Adds additional tests to getRunnerTypes, simplifies code a bit, adds the support for
## Support for `c.` runners
We don't really support well our canary environment with variants, not
sure why, but this condition was not present, so variants will get the
wrong naming when running at meta canary environment.
`variant.c.runner.name` instead of `c.variant.runner.name`. This fix is
very low impact and should not change anything in production.
## Simplifies the code
There is a useless `if` that I noticed when reading `getRunnerTypes`. I
am removing that conditional;
## Additional tests for getRunnerTypes
As we're adding empty variants as part of the ephemeral migration, I
want to make sure that we have green tests and we're covering this
situation in our unit tests.
The new situations to cover are:
1) Empty variants
2) meta's canary environment naming convention `c.`c. runners (#6403)1 parent 749d206 commit b3adb27
File tree
2 files changed
+65
-20
lines changed- terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners
2 files changed
+65
-20
lines changedLines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
698 | 707 | | |
699 | 708 | | |
700 | 709 | | |
701 | 710 | | |
702 | 711 | | |
703 | 712 | | |
704 | 713 | | |
| 714 | + | |
705 | 715 | | |
706 | 716 | | |
707 | 717 | | |
| |||
766 | 776 | | |
767 | 777 | | |
768 | 778 | | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
769 | 803 | | |
770 | 804 | | |
771 | 805 | | |
| |||
801 | 835 | | |
802 | 836 | | |
803 | 837 | | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
804 | 849 | | |
805 | 850 | | |
806 | 851 | | |
| |||
Lines changed: 20 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| |||
0 commit comments