Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Run Nutanix provider e2e tests on self-hosted runner #755

Merged
merged 11 commits into from
Jul 2, 2024

Conversation

jimmidyson
Copy link
Member

@jimmidyson jimmidyson commented Jun 27, 2024

Modify e2e workflow to Run Nutanix jobs on self-hosted-github runner

This is necessary as we want some e2e jobs to run on hosted runners
and some to run on self-hosted runners. The actions runner controller
does not support using multiple labels to target the runners
See: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/using-actions-runner-controller-runners-in-a-workflow#using-runner-scale-set-names

Depends on #754.

@jimmidyson jimmidyson marked this pull request as ready for review June 27, 2024 11:08
@jimmidyson jimmidyson force-pushed the jimmi/self-hosted-gh-inputs branch 2 times, most recently from 23ddfaf to 4590e64 Compare June 27, 2024 11:37
@jimmidyson jimmidyson closed this Jun 27, 2024
@jimmidyson jimmidyson reopened this Jun 27, 2024
@jimmidyson jimmidyson closed this Jun 27, 2024
@jimmidyson jimmidyson reopened this Jun 27, 2024
@jimmidyson jimmidyson force-pushed the jimmi/self-hosted-gh-inputs branch 3 times, most recently from 87cd1a3 to 4cd1426 Compare June 27, 2024 12:13
Base automatically changed from jimmi/fix-up-e2e to main June 27, 2024 12:41
@github-actions github-actions bot removed the stacked label Jun 27, 2024
Copy link
Contributor

This PR/issue depends on:

.github/workflows/e2e.yml Outdated Show resolved Hide resolved
@thunderboltsid thunderboltsid force-pushed the jimmi/self-hosted-gh-inputs branch 2 times, most recently from e6d23e3 to 79ec50d Compare June 27, 2024 15:17
@jimmidyson jimmidyson marked this pull request as draft June 27, 2024 17:05
test/e2e/e2e_suite_test.go Outdated Show resolved Hide resolved
test/e2e/e2e_suite_test.go Outdated Show resolved Hide resolved
test/e2e/e2e_suite_test.go Show resolved Hide resolved
test/e2e/e2e_suite_test.go Outdated Show resolved Hide resolved
test/e2e/e2e_suite_test.go Outdated Show resolved Hide resolved
@thunderboltsid thunderboltsid force-pushed the jimmi/self-hosted-gh-inputs branch 3 times, most recently from 5307133 to ba3d657 Compare July 1, 2024 09:57
hack/tools/redact-artifacts/main.go Outdated Show resolved Hide resolved
hack/tools/redact-artifacts/main.go Outdated Show resolved Hide resolved
@thunderboltsid thunderboltsid marked this pull request as ready for review July 1, 2024 14:51
.github/workflows/e2e.yml Outdated Show resolved Hide resolved
api/v1alpha1/zz_generated.deepcopy.go Outdated Show resolved Hide resolved
examples/capi-quick-start/nutanix-cluster-calico-crs.yaml Outdated Show resolved Hide resolved
test/e2e/config/caren.yaml Show resolved Hide resolved
test/e2e/config/caren.yaml Outdated Show resolved Hide resolved
.github/workflows/e2e.yml Outdated Show resolved Hide resolved
test/e2e/self_hosted_test.go Show resolved Hide resolved
@jimmidyson jimmidyson enabled auto-merge (squash) July 2, 2024 12:34
test/e2e/config/caren.yaml Outdated Show resolved Hide resolved
test/e2e/config/caren.yaml Outdated Show resolved Hide resolved
This is necessary as we want some e2e jobs to run on hosted runners
and some to run on self-hosted runners. The actions runner controller
does not support using multiple labels to target the runners
See: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/using-actions-runner-controller-runners-in-a-workflow#using-runner-scale-set-names
artifacts should be redacted regardless of success/failure of test.
We have seen instances where the controlplane endpoint is empty
and then tests fail down the line. It's better to catch that
early on and fail fast.
CAREN image is not pushed to a registry during build process. This
causes failures on the clusterctl move step where image is not
available in the workload cluster. We will in future push an image
out to a registry and unskip this.
change conditional from provider:nutanix to runs-on:self-hosted-ncn-dind
@jimmidyson jimmidyson merged commit 22c5f0f into main Jul 2, 2024
27 checks passed
@jimmidyson jimmidyson deleted the jimmi/self-hosted-gh-inputs branch July 2, 2024 14:00
@jimmidyson jimmidyson mentioned this pull request Jul 2, 2024
jimmidyson pushed a commit that referenced this pull request Jul 3, 2024
**What problem does this PR solve?**:
Implements a wait for a check to pass against a typed object.

We'll use this in some lifecycle handers, e.g., in a future change for
deploying ServiceLoadBalancer configuration to the remote cluster.

(This is a copy of #762. I had to close that after #755 added required
checks that can't be run from PRs from public forks. )

**Which issue(s) this PR fixes**:
Fixes #

**How Has This Been Tested?**:
<!--
Please describe the tests that you ran to verify your changes.
Provide output from the tests and any manual steps needed to replicate
the tests.
-->

**Special notes for your reviewer**:
<!--
Use this to provide any additional information to the reviewers.
This may include:
- Best way to review the PR.
- Where the author wants the most review attention on.
- etc.
-->
dlipovetsky added a commit that referenced this pull request Jul 3, 2024
**What problem does this PR solve?**:
This adds an optional configuration for the ServiceLoadBalancer Addon,
consisting of one or more IPv4 address ranges, e.g.,

```yaml
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
  name: <NAME>
spec:
  topology:
    variables:
      - name: clusterConfig
        value:
          addons:
            serviceLoadBalancer:
              provider: MetalLB
              configuration:
                addressRanges:
                - start: 10.100.1.1
                  end: 10.100.1.20
                - start: 10.100.1.51
                  end: 10.100.1.70
```

(This is a copy of
#763.
I had to close that after
#755
added required checks that can't be run from PRs from public forks. )

**Which issue(s) this PR fixes**:
Fixes #

**How Has This Been Tested?**:
<!--
Please describe the tests that you ran to verify your changes.
Provide output from the tests and any manual steps needed to replicate
the tests.
-->

**Special notes for your reviewer**:
<!--
Use this to provide any additional information to the reviewers.
This may include:
- Best way to review the PR.
- Where the author wants the most review attention on.
- etc.
-->
dkoshkin pushed a commit that referenced this pull request Jul 5, 2024
🤖 I have created a release *beep* *boop*
---


## 0.12.0 (2024-07-05)

<!-- Release notes generated using configuration in .github/release.yaml
at main -->

## What's Changed
### Exciting New Features 🎉
* feat: Add waiter for object by @dlipovetsky in
#777
* feat: Define ServiceLoadBalancer Configuration API by @dlipovetsky in
#778
* feat: Use HelmAddon as default addon strategy by @jimmidyson in
#771
* feat: Apply MetalLB configuration to remote cluster by @dlipovetsky in
#783
* feat: Update addon versions by @jimmidyson in
#785
### Fixes 🔧
* fix: Copy ClusterClasses and Templates without their owner references
by @dlipovetsky in
#776
* fix: Namespacesync controller should reconcile an updated namespace by
@dlipovetsky in
#775
* fix: use minimal image when deploying nfd chart by @faiq in
#774
### Other Changes
* build: Update release metadata.yaml by @jimmidyson in
#768
* ci: Run Nutanix provider e2e tests on self-hosted runner by
@jimmidyson in
#755
* build: Fix devbox run errors due to piped commands by @jimmidyson in
#773
* ci: Fix ct check by @jimmidyson in
#779
* build: Use go 1.22.5 toolchain to fix CVE by @jimmidyson in
#780
* test(e2e): Use mesosphere fork v1.7.3-d2iq.1 for CAPI providers by
@jimmidyson in
#781
* ci: Move govulncheck to nightly and push to main triggers by
@jimmidyson in
#782
* ci: Disable nix cache on self-hosted runners by @jimmidyson in
#786


**Full Changelog**:
v0.11.2...v0.12.0

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants