Before adding to this file, carefully consider that poorly written AGENTS.md files can hurt task success rates, while also increasing token usage.
When creating or modifying Ginkgo E2E test files:
- Avoid
k8sClient.Update(...): This call will occasionally fail due to Kubernetes resources being modified between the Get and Update calls.- Instead, use fixture-specific
Updatefunctions. Most fixture packages include anUpdatefunction, for example forArgoCDCR: useargocdFixture.Update(...). For generic resource update, seek8sFixture.Update(...).
- Instead, use fixture-specific
- Use
Describe("GitOps Operator Parallel E2E Tests", func() { ... })as the top-level describe block - Call
fixture.EnsureParallelCleanSlate()in theBeforeEachfunction. (notEnsureSequentialCleanSlate)
- Use
Describe("GitOps Operator Sequential E2E Tests", func() { ... })as the top-level describe block - Call
fixture.EnsureSequentialCleanSlate()in theBeforeEachfunction. (notEnsureParallelCleanSlate)