Skip to content

docs(development): refresh e2e testing guide for the Chainsaw migration - #611

Open
myasnikovdaniil wants to merge 1 commit into
mainfrom
docs/refresh-e2e-testing-chainsaw
Open

myasnikovdaniil wants to merge 1 commit into
mainfrom
docs/refresh-e2e-testing-chainsaw

Conversation

@myasnikovdaniil

@myasnikovdaniil myasnikovdaniil commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

What

Refreshes the "Testing" and "Dynamic Development Environment" sections of the developer guide (docs/next/development.md) to match the current e2e setup after the BATS → Kyverno Chainsaw migration.

Why

The guide referenced hack/e2e.sh (deleted) and the make test / make login / make proxy sandbox targets (removed), and made no mention of Chainsaw.

Changes

  • Drop the dead hack/e2e.sh link; describe the sandbox flow and the two-part suite: Chainsaw app tests under hack/e2e-chainsaw/ + BATS bootstrap/OpenAPI checks, linking the monorepo's docs/agents/e2e-testing.md.
  • Fix make targets: make test → make e2e; note root make test = apply + e2e.
  • Trim make login / make proxy / the SOCKS5 + Firefox paragraph (targets no longer exist), keeping make exec.

Scoped to docs/next/; frozen versioned docs (v1.4/v1.5) left untouched.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated end-to-end testing guidance to describe the self-contained sandbox workflow, including cluster setup and validation suites.
    • Replaced the previous test commands with the current make apply, make e2e, and make delete workflow.
    • Clarified that make test runs the apply and end-to-end steps together.
    • Simplified dynamic development environment instructions to focus on opening an interactive sandbox shell.

@netlify

netlify Bot commented Jul 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cozystack ready!

Name Link
🔨 Latest commit d80535f
🔍 Latest deploy log https://app.netlify.com/projects/cozystack/deploys/6a5361c262293d0008da4948
😎 Deploy Preview https://deploy-preview-611--cozystack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 34aee035-6523-4dac-a0af-3a64d9761733
📝 Walkthrough

Walkthrough

The development documentation now describes sandbox-container end-to-end testing, its two test suites, updated Kubernetes test commands, and the simplified make exec workflow for interactive sandbox access.

Changes

Development workflows

Layer / File(s) Summary
Sandbox testing workflow
content/en/docs/next/development.md
The Testing section documents the sandbox container flow, Kyverno Chainsaw and BATS test suites, and the make apply → make e2e → make delete command sequence.
Dynamic environment access
content/en/docs/next/development.md
The Dynamic Development Environment section replaces extended proxy and Makefile guidance with the make exec instruction.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the docs update around the e2e testing guide and Chainsaw migration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/refresh-e2e-testing-chainsaw

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the development documentation regarding end-to-end testing and the dynamic development environment. It clarifies how tests run inside a sandbox container, details the application and bootstrap/API test suites, updates the Makefile commands, and simplifies the development environment instructions. The feedback suggests a minor spelling correction to maintain American English consistency across the documentation.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

- **Bootstrap and API tests** — BATS scripts (`hack/e2e-install-cozystack.bats`, `hack/e2e-test-openapi.bats`) that bring the cluster up and check the aggregated API.

You can run e2e.sh either locally or directly within a Kubernetes container.
Conventions for writing and stabilising these tests live in the [E2E testing guide](https://github.com/cozystack/cozystack/blob/main/docs/agents/e2e-testing.md).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To maintain spelling consistency across the documentation (such as "visualization" on line 90 and "customizations" on line 260), please use the American spelling "stabilizing" instead of "stabilising".

Suggested change
Conventions for writing and stabilising these tests live in the [E2E testing guide](https://github.com/cozystack/cozystack/blob/main/docs/agents/e2e-testing.md).
Conventions for writing and stabilizing these tests live in the [E2E testing guide](https://github.com/cozystack/cozystack/blob/main/docs/agents/e2e-testing.md).

The developer guide still pointed at the retired hack/e2e.sh script and the
old `make test` / `make login` / `make proxy` sandbox targets. Update the
Testing section to describe the current suite — Kyverno Chainsaw app suites
under hack/e2e-chainsaw/ plus the BATS bootstrap/OpenAPI checks — correct the
make targets (make e2e; root make test = apply + e2e), and trim the Dynamic
Development Environment section to the still-existing make exec.

Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
@netlify

netlify Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cozystack ready!

Name Link
🔨 Latest commit 5b6ea13
🔍 Latest deploy log https://app.netlify.com/projects/cozystack/deploys/6ac5ae8347bfff00082ef0e6
😎 Deploy Preview https://deploy-preview-611--cozystack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

myasnikovdaniil NOT LGTM. The refresh is needed, since hack/e2e.sh and the old sandbox targets are gone, but the new command sequence does not run the tests, and the PR body carries a tool attribution that would land in main.

Business context: the developer guide still points at the deleted hack/e2e.sh and removed make targets, so a contributor has no working instructions for running e2e locally.

I checked the section against cozystack main at d2e3eb4f8.

  1. make apply followed by make e2e never creates a cluster. In packages/core/testing/Makefile, apply only starts the sandbox image with docker run and copies the tree in, and e2e is just test-openapi plus test-chainsaw. Booting the VMs and configuring Talos is prepare-cluster (hack/e2e-prepare-cluster.bats), and installing Cozystack is install-cozystack. Neither is in the listed sequence, so the tests run against a sandbox with no cluster in it. The root make test has the same gap, because it is also just apply and e2e. The order CI uses is root make prepare-env (which needs _out/assets/nocloud-amd64.raw.xz, built by make assets-talos), then install-cozystack, then e2e, then delete. e2e-tag.yaml runs exactly that. Line 351 also reads as if the sandbox does all of this by itself.

  2. The sandbox is a Docker container on the host, not something created in a Kubernetes cluster. apply is docker run --privileged and delete is docker rm -f. The rewritten comments on lines 361-363 and the sentence before the block still say "in the Kubernetes cluster". The warning that follows about bare-metal nodes then also needs a look, since what matters is the host that runs Docker and KVM.

  3. Line 354 says hack/e2e-install-cozystack.bats brings the cluster up. It installs Cozystack on a cluster that hack/e2e-prepare-cluster.bats brought up before it.

  4. The PR body ends with "Generated with Claude Code" and a link. This repo merges with merge commits and uses the PR body as the merge commit message, so that line would land in main. Please drop it. The commit itself already carries Assisted-by: LLM.

Gemini's spelling note on "stabilising" is fine to take or leave. CI is green on this head and the Netlify preview builds.

This branch has not been deployed

No deployments
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.

2 participants