Skip to content

Conversation

@huntergregory
Copy link
Contributor

@huntergregory huntergregory commented Apr 12, 2023

Reason for Change:
Scripts for validating NPM Windows.

Issue Fixed:

Requirements:

Notes:

New Changes

  1. Use official Cyclonus binary instead of a fork.
  2. Add scale tests that use KWOK, which simulates Pods/Nodes without using actual resources.
  3. Creates a .ran file if a step is run, and creates a .success file if a step succeeded. There is also an npm-e2e.ran file that indicates that the npm e2e was run at all, and an npm-e2e.success that indicates that all steps succeeded.

KWOK Installation

VM will need to have KWOK installed:

KWOK_REPO=kubernetes-sigs/kwok
KWOK_LATEST_RELEASE=$(curl "https://api.github.com/repos/${KWOK_REPO}/releases/latest" | jq -r '.tag_name')
wget -O kwok -c "https://github.com/kubernetes-sigs/kwok/releases/download/${KWOK_LATEST_RELEASE}/kwok-$(go env GOOS)-$(go env GOARCH)"
chmod +x kwok
sudo mv kwok /usr/local/bin/kwok

Overall Script Flow

Configuration

  1. Installs NPM on Calico CNI.
  2. Installs a simple Deployment with 1 Pod.
  3. Configures nodes for testing (e.g., cordons all but one node).

Steps

If any step fails, the script should fail and not run following tests.

  1. Check VFP is in sync with HNS (filename: vfp-state-prior.ran)
  2. Run Cyclonus (filename: cyclonus.ran)
  3. Check VFP is in sync with HNS (filename: vfp-state-after-cyclonus.ran)
  4. Run Conformance (filename: conformance.ran)
  5. Check VFP is in sync with HNS (filename: vfp-state-after-conformance.ran)
  6. Run scale + connectivity test (filename: scale-connectivity.ran)
  7. Check VFP is in sync with HNS (filename: vfp-state-after-scale.ran)

@huntergregory huntergregory added npm Related to NPM. ci Infra or tooling. windows labels Apr 12, 2023
@huntergregory huntergregory changed the title ci: [WIN-NPM] e2e script used for CAPZ on Calico ci: [WIN-NPM] windows validation script run on CAPZ Apr 12, 2023
@vakalapa vakalapa merged commit dd41af8 into master May 9, 2023
@vakalapa vakalapa deleted the hgregory/capz-script branch May 9, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Infra or tooling. npm Related to NPM. windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants