Repository: kubernetes-sigs/security-profiles-operator
Pull request #1050 (2022-07-26 10:31:12)

Update ubuntu version and disable flatcar e2e tests

#### What type of PR is this?

/kind bug
/kind cleanup

#### What this PR does / why we need it:

* This fixes the ubuntu e2e tests
* This temporarily disables the flatcar e2e tests

#### Which issue(s) this PR fixes:

None

#### Does this PR have test?

e2e tests

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
NONE
```


k8s-ci-robot: [APPROVALNOTIFIER] This PR is **APPROVED**

This pull-request has been approved by: *<a href="https://github.com/kubernetes-sigs/security-profiles-operator/pull/1050#" title="Author self-approved">JAORMX</a>*

The full list of commands accepted by this bot can be found [here](https://go.k8s.io/bot-commands?repo=kubernetes-sigs%2Fsecurity-profiles-operator).

The pull request process is described [here](https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process)

<details >
Needs approval from an approver in each of these files:

- ~~[OWNERS](https://github.com/kubernetes-sigs/security-profiles-operator/blob/main/OWNERS)~~ [JAORMX]

Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
</details>
<!-- META={"approvers":[]} -->
k8s-ci-robot: [APPROVALNOTIFIER] This PR is **APPROVED**

This pull-request has been approved by: *<a href="https://github.com/kubernetes-sigs/security-profiles-operator/pull/1050#" title="Author self-approved">JAORMX</a>*, *<a href="https://github.com/kubernetes-sigs/security-profiles-operator/pull/1050#pullrequestreview-1050746829" title="Approved">saschagrunert</a>*

The full list of commands accepted by this bot can be found [here](https://go.k8s.io/bot-commands?repo=kubernetes-sigs%2Fsecurity-profiles-operator).

The pull request process is described [here](https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process)

<details >
Needs approval from an approver in each of these files:

- ~~[OWNERS](https://github.com/kubernetes-sigs/security-profiles-operator/blob/main/OWNERS)~~ [JAORMX,saschagrunert]

Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
</details>
<!-- META={"approvers":[]} -->
k8s-ci-robot: @JAORMX: The following test **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-security-profiles-operator-test-e2e | d176afa4ff682e7390ad852e38eb0a3694729178 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_security-profiles-operator/1050/pull-security-profiles-operator-test-e2e/1551877796580560896) | true | `/test pull-security-profiles-operator-test-e2e`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=security-profiles-operator&pr=1050). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3AJAORMX). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/security-profiles-operator/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
saschagrunert: /test pull-security-profiles-operator-test-e2e
k8s-ci-robot: @JAORMX: The following test **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-security-profiles-operator-test-e2e | d176afa4ff682e7390ad852e38eb0a3694729178 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_security-profiles-operator/1050/pull-security-profiles-operator-test-e2e/1551882757573971968) | true | `/test pull-security-profiles-operator-test-e2e`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=security-profiles-operator&pr=1050). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3AJAORMX). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/security-profiles-operator/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
JAORMX: /retest

Patch:
diff --git a/dependencies.yaml b/dependencies.yaml
index 98048047b..52ddc9cb4 100644
--- a/dependencies.yaml
+++ b/dependencies.yaml
@@ -96,7 +96,7 @@ dependencies:
       match: fedora
 
   - name: e2e-ubuntu
-    version: ubuntu2110
+    version: ubuntu2204
     refPaths:
     - path: hack/ci/Vagrantfile-ubuntu
       match: config.vm.box
diff --git a/hack/ci/Vagrantfile-ubuntu b/hack/ci/Vagrantfile-ubuntu
index 1d73c7d8d..6b5ed1b48 100644
--- a/hack/ci/Vagrantfile-ubuntu
+++ b/hack/ci/Vagrantfile-ubuntu
@@ -2,7 +2,7 @@
 # vi: set ft=ruby :
 
 Vagrant.configure("2") do |config|
-  config.vm.box = "generic/ubuntu2110"
+  config.vm.box = "generic/ubuntu2204"
   memory = 6144
   cpus = 4
 


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 1dc3da32e..f4ddfa1e9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -125,7 +125,7 @@ jobs:
         run: make vagrant-up-ubuntu
       - name: Show environment information
         run: |
-          $RUN kubectl wait --for=condition=ready --timeout=60s node ubuntu2110
+          $RUN kubectl wait --for=condition=ready --timeout=60s node ubuntu2204
           $RUN kubectl get nodes -o wide
       - name: Set up git config
         run: |
@@ -133,41 +133,41 @@ jobs:
       - name: Run E2E tests
         run: $RUN hack/ci/e2e-ubuntu.sh
 
-  e2e-flatcar:
-    needs: image
+  #e2e-flatcar:
+  #  needs: image
 
-    # runs-on not set to macos-11 as vagrant currently not available and stable on macos BigSur
-    # https://github.com/actions/virtual-environments/issues/2999
-    runs-on: macos-10.15
-    timeout-minutes: 90
-    env:
-      RUN: ./hack/ci/run-flatcar.sh
-    steps:
-      - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
-      - name: Vagrant box version
-        id: vagrant-box
-        run: |
-          echo "::set-output name=version::$(curl -s  https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.json | jq '.versions[0].version' | tr -d '".')"
-        shell: bash
-      - uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129
-        with:
-          path: |
-            ~/.vagrant.d/boxes
-          key: e2e-flatcar-${{ steps.vagrant-box.outputs.version }}-${{ hashFiles('hack/ci/Vagrantfile-flatcar') }}
-          restore-keys: e2e-flatcar-${{ steps.vagrant-box.outputs.version }}-
-      - name: Upgrade vagrant box
-        run: |
-          ln -sf hack/ci/Vagrantfile-flatcar Vagrantfile
-          vagrant box update
-      - uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
-        with:
-          name: image
-          path: .
-      - name: Boot Virtual Machine
-        run: make vagrant-up-flatcar
-      - name: Show environment information
-        run: |
-          $RUN kubectl wait --for=condition=ready --timeout=600s node localhost
-          $RUN kubectl get nodes -o wide
-      - name: Run E2E tests
-        run: $RUN hack/ci/e2e-flatcar-dev-container.sh
+  #  # runs-on not set to macos-11 as vagrant currently not available and stable on macos BigSur
+  #  # https://github.com/actions/virtual-environments/issues/2999
+  #  runs-on: macos-10.15
+  #  timeout-minutes: 90
+  #  env:
+  #    RUN: ./hack/ci/run-flatcar.sh
+  #  steps:
+  #    - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
+  #    - name: Vagrant box version
+  #      id: vagrant-box
+  #      run: |
+  #        echo "::set-output name=version::$(curl -s  https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.json | jq '.versions[0].version' | tr -d '".')"
+  #      shell: bash
+  #    - uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129
+  #      with:
+  #        path: |
+  #          ~/.vagrant.d/boxes
+  #        key: e2e-flatcar-${{ steps.vagrant-box.outputs.version }}-${{ hashFiles('hack/ci/Vagrantfile-flatcar') }}
+  #        restore-keys: e2e-flatcar-${{ steps.vagrant-box.outputs.version }}-
+  #    - name: Upgrade vagrant box
+  #      run: |
+  #        ln -sf hack/ci/Vagrantfile-flatcar Vagrantfile
+  #        vagrant box update
+  #    - uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
+  #      with:
+  #        name: image
+  #        path: .
+  #    - name: Boot Virtual Machine
+  #      run: make vagrant-up-flatcar
+  #    - name: Show environment information
+  #      run: |
+  #        $RUN kubectl wait --for=condition=ready --timeout=600s node localhost
+  #        $RUN kubectl get nodes -o wide
+  #    - name: Run E2E tests
+  #      run: $RUN hack/ci/e2e-flatcar-dev-container.sh