|
1 | 1 | # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. |
2 | 2 | # |
3 | | -# Generated on 2025-06-06T17:20:38Z by kres fc6afbe-dirty. |
| 3 | +# Generated on 2025-06-09T15:23:59Z by kres 37c4809-dirty. |
4 | 4 |
|
5 | 5 | name: default |
6 | 6 | concurrency: |
@@ -99,10 +99,58 @@ jobs: |
99 | 99 | - name: unit-tests-race |
100 | 100 | run: | |
101 | 101 | make unit-tests-race |
| 102 | + - name: run-integration-test |
| 103 | + if: github.event_name == 'pull_request' |
| 104 | + env: |
| 105 | + INTEGRATION_RUN_E2E_TEST: "true" |
| 106 | + INTEGRATION_TEST_ARGS: --test.run TestIntegration/Suites/(CleanState|Auth|DefaultCluster|CLICommands)$ |
| 107 | + RUN_TALEMU_TESTS: "true" |
| 108 | + TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
| 109 | + WITH_DEBUG: "true" |
| 110 | + WITH_RACE: "true" |
| 111 | + run: | |
| 112 | + sudo -E make run-integration-test |
| 113 | + - name: Retrieve PR labels |
| 114 | + id: retrieve-pr-labels |
| 115 | + uses: actions/github-script@v7 |
| 116 | + with: |
| 117 | + retries: "3" |
| 118 | + script: | |
| 119 | + if (context.eventName != "pull_request") { return "[]" } |
| 120 | +
|
| 121 | + const resp = await github.rest.issues.get({ |
| 122 | + issue_number: context.issue.number, |
| 123 | + owner: context.repo.owner, |
| 124 | + repo: context.repo.repo, |
| 125 | + }) |
| 126 | +
|
| 127 | + return resp.data.labels.map(label => label.name) |
| 128 | + - name: Generate executable list |
| 129 | + run: | |
| 130 | + find _out -type f -executable > _out/executable-artifacts |
| 131 | + - name: save-artifacts |
| 132 | + uses: actions/upload-artifact@v4 |
| 133 | + with: |
| 134 | + name: artifacts |
| 135 | + path: |- |
| 136 | + _out |
| 137 | + !_out/etcd |
| 138 | + !_out/secondary-storage/** |
| 139 | + retention-days: "5" |
| 140 | + - name: save-integration-test-artifacts |
| 141 | + if: always() |
| 142 | + uses: actions/upload-artifact@v4 |
| 143 | + with: |
| 144 | + name: integration-test |
| 145 | + path: |- |
| 146 | + ~/.talos/clusters/**/*.log |
| 147 | + !~/.talos/clusters/**/swtpm.log |
| 148 | + /tmp/integration-test |
| 149 | + retention-days: "5" |
102 | 150 | - name: coverage |
103 | 151 | uses: codecov/codecov-action@v5 |
104 | 152 | with: |
105 | | - files: _out/coverage-unit-tests-client.txt,_out/coverage-unit-tests.txt |
| 153 | + files: _out/coverage-unit-tests-client.txt,_out/coverage-unit-tests.txt,_out/coverage-emulator.txt,_out/coverage-integration.txt |
106 | 154 | token: ${{ secrets.CODECOV_TOKEN }} |
107 | 155 | timeout-minutes: 3 |
108 | 156 | - name: acompat |
@@ -169,53 +217,6 @@ jobs: |
169 | 217 | PUSH: "true" |
170 | 218 | run: | |
171 | 219 | make image-omni-integration-test IMAGE_TAG=latest |
172 | | - - name: run-integration-test |
173 | | - if: github.event_name == 'pull_request' |
174 | | - env: |
175 | | - INTEGRATION_RUN_E2E_TEST: "true" |
176 | | - INTEGRATION_TEST_ARGS: --test.run TestIntegration/Suites/(CleanState|Auth|DefaultCluster|CLICommands)$ |
177 | | - RUN_TALEMU_TESTS: "true" |
178 | | - TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
179 | | - WITH_DEBUG: "true" |
180 | | - run: | |
181 | | - sudo -E make run-integration-test |
182 | | - - name: Retrieve PR labels |
183 | | - id: retrieve-pr-labels |
184 | | - uses: actions/github-script@v7 |
185 | | - with: |
186 | | - retries: "3" |
187 | | - script: | |
188 | | - if (context.eventName != "pull_request") { return "[]" } |
189 | | -
|
190 | | - const resp = await github.rest.issues.get({ |
191 | | - issue_number: context.issue.number, |
192 | | - owner: context.repo.owner, |
193 | | - repo: context.repo.repo, |
194 | | - }) |
195 | | -
|
196 | | - return resp.data.labels.map(label => label.name) |
197 | | - - name: Generate executable list |
198 | | - run: | |
199 | | - find _out -type f -executable > _out/executable-artifacts |
200 | | - - name: save-artifacts |
201 | | - uses: actions/upload-artifact@v4 |
202 | | - with: |
203 | | - name: artifacts |
204 | | - path: |- |
205 | | - _out |
206 | | - !_out/etcd |
207 | | - !_out/secondary-storage/** |
208 | | - retention-days: "5" |
209 | | - - name: save-integration-test-artifacts |
210 | | - if: always() |
211 | | - uses: actions/upload-artifact@v4 |
212 | | - with: |
213 | | - name: integration-test |
214 | | - path: |- |
215 | | - ~/.talos/clusters/**/*.log |
216 | | - !~/.talos/clusters/**/swtpm.log |
217 | | - /tmp/integration-test |
218 | | - retention-days: "5" |
219 | 220 | - name: Generate Checksums |
220 | 221 | if: startsWith(github.ref, 'refs/tags/') |
221 | 222 | run: | |
@@ -302,6 +303,7 @@ jobs: |
302 | 303 | RUN_TALEMU_TESTS: "false" |
303 | 304 | TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
304 | 305 | WITH_DEBUG: "true" |
| 306 | + WITH_RACE: "true" |
305 | 307 | run: | |
306 | 308 | sudo -E make run-integration-test |
307 | 309 | - name: save-integration-test-artifacts |
@@ -381,6 +383,7 @@ jobs: |
381 | 383 | RUN_TALEMU_TESTS: "false" |
382 | 384 | TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
383 | 385 | WITH_DEBUG: "true" |
| 386 | + WITH_RACE: "true" |
384 | 387 | run: | |
385 | 388 | sudo -E make run-integration-test |
386 | 389 | - name: save-integration-test-artifacts |
@@ -460,6 +463,7 @@ jobs: |
460 | 463 | RUN_TALEMU_TESTS: "false" |
461 | 464 | TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
462 | 465 | WITH_DEBUG: "true" |
| 466 | + WITH_RACE: "true" |
463 | 467 | run: | |
464 | 468 | sudo -E make run-integration-test |
465 | 469 | - name: save-integration-test-artifacts |
@@ -539,6 +543,7 @@ jobs: |
539 | 543 | RUN_TALEMU_TESTS: "false" |
540 | 544 | TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
541 | 545 | WITH_DEBUG: "true" |
| 546 | + WITH_RACE: "true" |
542 | 547 | run: | |
543 | 548 | sudo -E make run-integration-test |
544 | 549 | - name: save-integration-test-artifacts |
@@ -619,6 +624,7 @@ jobs: |
619 | 624 | RUN_TALEMU_TESTS: "false" |
620 | 625 | TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
621 | 626 | WITH_DEBUG: "true" |
| 627 | + WITH_RACE: "true" |
622 | 628 | run: | |
623 | 629 | sudo -E make run-integration-test |
624 | 630 | - name: save-integration-test-artifacts |
@@ -698,6 +704,7 @@ jobs: |
698 | 704 | RUN_TALEMU_TESTS: "false" |
699 | 705 | TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
700 | 706 | WITH_DEBUG: "true" |
| 707 | + WITH_RACE: "true" |
701 | 708 | run: | |
702 | 709 | sudo -E make run-integration-test |
703 | 710 | - name: save-integration-test-artifacts |
@@ -777,6 +784,7 @@ jobs: |
777 | 784 | RUN_TALEMU_TESTS: "false" |
778 | 785 | TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
779 | 786 | WITH_DEBUG: "true" |
| 787 | + WITH_RACE: "true" |
780 | 788 | run: | |
781 | 789 | sudo -E make run-integration-test |
782 | 790 | - name: save-integration-test-artifacts |
@@ -856,6 +864,7 @@ jobs: |
856 | 864 | RUN_TALEMU_TESTS: "false" |
857 | 865 | TALEMU_TEST_ARGS: --test.run TestIntegration/Suites/(ImmediateClusterDestruction|EncryptedCluster|SinglenodeCluster|ScaleUpAndDown|ScaleUpAndDownMachineClassBasedMachineSets|TalosUpgrades|KubernetesUpgrades|MaintenanceUpgrade|ClusterTemplate|ScaleUpAndDownAutoProvisionMachineSets)$ |
858 | 866 | WITH_DEBUG: "true" |
| 867 | + WITH_RACE: "true" |
859 | 868 | run: | |
860 | 869 | sudo -E make run-integration-test |
861 | 870 | - name: save-integration-test-artifacts |
|
0 commit comments