Skip to content

Commit

Permalink
removeme
Browse files Browse the repository at this point in the history
  • Loading branch information
Taior committed Nov 29, 2024
1 parent 1d3bac2 commit 4874d8a
Show file tree
Hide file tree
Showing 12 changed files with 366 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/ci_templates/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,11 @@ check_e2e_labels:
{!{- end }!}
runs-on: [self-hosted, {!{ $runsOnLabel }!}]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
{!{ tmpl.Exec "started_at_output" . | strings.Indent 4 }!}
{!{ tmpl.Exec "checkout_from_event_ref_step" . | strings.Indent 4 }!}

Expand Down
6 changes: 6 additions & 0 deletions .github/scripts/js/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ const setCRIAndVersionsFromLabels = ({ core, labels, kubernetesDefaultVersion })

for (const label of labels) {
const info = knownLabels[label.name];

core.info(`Parsing label '${JSON.stringify(label)}'`)
if (info) {
core.info(`Recognized as '${JSON.stringify(info)}'`)
}
if (!info || (info.type !== 'e2e-use' && info.type !== 'edition')) {
continue;
}
Expand Down Expand Up @@ -517,6 +522,7 @@ const setCRIAndVersionsFromLabels = ({ core, labels, kubernetesDefaultVersion })

core.startGroup(`Set outputs`);
core.setCommandEcho(true);
core.setOutput(`edition`, `${edition}`);
core.setOutput(`multimaster`, `${multimaster}`);
for (const out_cri of cri) {
for (const out_ver of ver) {
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/e2e-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -712,6 +717,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -1204,6 +1214,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -1696,6 +1711,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -2188,6 +2208,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -2680,6 +2705,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -3172,6 +3202,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/e2e-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -720,6 +725,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -1220,6 +1230,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -1720,6 +1735,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -2220,6 +2240,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -2720,6 +2745,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -3220,6 +3250,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/e2e-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ jobs:
EVENT_LABEL: ${{ github.event.label.name }}
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -615,6 +620,11 @@ jobs:
EVENT_LABEL: ${{ github.event.label.name }}
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -1085,6 +1095,11 @@ jobs:
EVENT_LABEL: ${{ github.event.label.name }}
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -1543,6 +1558,11 @@ jobs:
EVENT_LABEL: ${{ github.event.label.name }}
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -2009,6 +2029,11 @@ jobs:
EVENT_LABEL: ${{ github.event.label.name }}
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -2467,6 +2492,11 @@ jobs:
EVENT_LABEL: ${{ github.event.label.name }}
runs-on: [self-hosted, e2e-vsphere]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -2929,6 +2959,11 @@ jobs:
EVENT_LABEL: ${{ github.event.label.name }}
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -3403,6 +3438,11 @@ jobs:
EVENT_LABEL: ${{ github.event.label.name }}
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/e2e-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -757,6 +762,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -1294,6 +1304,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -1831,6 +1846,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -2368,6 +2388,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -2905,6 +2930,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down Expand Up @@ -3442,6 +3472,11 @@ jobs:
WERF_ENV: "${{ needs.check_e2e_labels.outputs.edition || fromJson(inputs.test_config).edition }}"
runs-on: [self-hosted, e2e-common]
steps:
- name: Print data
run: |
echo "WERF_ENV is ${WERF_ENV}"
echo "test_config is ${{ inputs.test_config }}"
echo "output edition is ${{ needs.check_e2e_labels.outputs.edition }}"
# <template: started_at_output>
- name: Job started timestamp
Expand Down
Loading

0 comments on commit 4874d8a

Please sign in to comment.