fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Test Dev Fleet within released Rancher

Open manno opened this issue 2 years ago • 7 comments

Rancher could be (nightly, rc, release).

How to install Rancher with our fleet build?

  • switching the rancher-charts branch with a helm value at installation time
    • we'd need a write token for test-fleet in rancher/charts
    • cannot use a different server, because of https://github.com/rancher/rancher/pull/40281
  • using airgap mode ("bundled") and building our own repo to install with dev fleet
  • Add another layer to the Rancher image, which contains our bundled fleet version in the airgap repo

Running outside the cluster, without the rancher helm chart, could be interesting for vscode&integration tests E2e CI probably needs the modified image (or a branch in rancher/charts).

What are existing upgrade tests in Fleet:

How effective are our existing rancher integration tests?

  • Only testing simple, short-lived deployments
  • Existing multi-cluster tests
  • Upgrade from one Rancher version to the next?
  • Installation with special options?
  • Does Fleet work in previous Rancher versions, too? (fleet-upgrade-in-rancher.yaml had a nice matrix)
  • ...

Problem

  • Current tests only upgrade after the installation. This relies on a modified helm chart, with a very high version number.
    Do we observe downgrades to the released fleet chart?
  • Are current test runners sufficient? Move the tests to the AKS or GKE workflow?
  • Tests could use our 'test infra' with registry and git server?
  • Tests could profit from version pinning PR

manno avatar Jul 07 '23 14:07 manno

Elemental has CI to install RM- we can reuse that as 1st part of this pipeline work, i.e Fleet with Rancher Manager

prabalsharma avatar Aug 17 '23 10:08 prabalsharma

  • [x] re-open PR for custom git server - see rancher/rancher #43530
  • [ ] use in a github action to validate PRs

manno avatar Sep 20 '23 13:09 manno

From Rancher 2.9 onwards, it will be possible to configure alternative chart repositories, which should ease testing of any Fleet commit within Rancher.

Additional work, with WIP actions to release Fleet to a test charts repo for testing and using that to deploy Rancher through GCP-hosted Github runners, is available on branch test-fleet-in-latest-rancher.

weyfonk avatar Feb 13 '24 11:02 weyfonk

We're waiting for Github Action private runners.

manno avatar Feb 14 '24 14:02 manno

We need to request access to a non-containerised runner, see this. Latest progress available on this branch.

weyfonk avatar Jun 26 '24 13:06 weyfonk

Non-containerised runners now work, but registering a downstream cluster times out in CI, although it works locally. We'd need to be able to know more about the state of Rancher on the runner to understand what prevents downstream cluster registration from working.

Could we run a pipeline against a fork (yes, physically possible), using a non-containerised runner (question sent to EIO in that regard, as per-repo authorisation is needed) with tmate (enabled temporarily until we find and fix the root cause of the issue)?

weyfonk avatar Aug 19 '24 14:08 weyfonk

  • [x] Update docs/testing_fleet_in_rancher.md

weyfonk avatar Sep 26 '24 11:09 weyfonk