Skip to content

chore(AGENTS.md): Use maps in table-driven tests and testify asserts#19564

Merged
guzalv merged 4 commits intomasterfrom
gualvare/chore-agents-add-testing-guidelines
Mar 24, 2026
Merged

chore(AGENTS.md): Use maps in table-driven tests and testify asserts#19564
guzalv merged 4 commits intomasterfrom
gualvare/chore-agents-add-testing-guidelines

Conversation

@guzalv
Copy link
Contributor

@guzalv guzalv commented Mar 24, 2026

Description

This PR adds testing guidelines to AGENTS.md so that agents prefer maps to store table-driven tests and use testify assertions.

I also reorganized the structure to pull some sections into a new "development" section rather than "architecture" (see db827a4).

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Verified that agents follow the new guidelines.

@openshift-ci
Copy link

openshift-ci bot commented Mar 24, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@guzalv guzalv changed the title chore(AGENTS.md): Prefer maps in table-driven tests and testify assertions chore(AGENTS.md): Use maps in table-driven tests and testify asserts Mar 24, 2026
@guzalv guzalv force-pushed the gualvare/chore-agents-add-testing-guidelines branch from 8a5b32e to 2e9b64b Compare March 24, 2026 11:54
@guzalv guzalv requested a review from mtodor March 24, 2026 11:54
@guzalv guzalv marked this pull request as ready for review March 24, 2026 11:55
@rhacs-bot
Copy link
Contributor

rhacs-bot commented Mar 24, 2026

Images are ready for the commit at 45213ee.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-425-g45213ee11f.

guzalv and others added 2 commits March 24, 2026 13:10
Co-authored-by: Mladen Todorovic <mtodor@gmail.com>
Co-authored-by: Mladen Todorovic <mtodor@gmail.com>
@guzalv guzalv enabled auto-merge (squash) March 24, 2026 12:11
@codecov
Copy link

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.26%. Comparing base (24592b6) to head (45213ee).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19564   +/-   ##
=======================================
  Coverage   49.26%   49.26%           
=======================================
  Files        2727     2727           
  Lines      205821   205821           
=======================================
+ Hits       101396   101405    +9     
+ Misses      96889    96885    -4     
+ Partials     7536     7531    -5     
Flag Coverage Δ
go-unit-tests 49.26% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@guzalv guzalv merged commit cfa5d70 into master Mar 24, 2026
88 of 90 checks passed
@guzalv guzalv deleted the gualvare/chore-agents-add-testing-guidelines branch March 24, 2026 14:21
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.

3 participants