test-gen-api-docs
always fail at the first run after the api docs have change
#2810
Labels
Milestone
test-gen-api-docs
always fail at the first run after the api docs have change
#2810
What happened:
Currently, the
test-gen-api-docs
simply generates new api doc from the code and compare it with the old api doc (theagones_crd_api_reference.html
file in the workspace), and fails if they do not match. So whenever there is change introduced to api doc, the first run oftest-gen-api-docs
will always fail because the old doc will definitely not match.What you expected to happen:
We need to rethink about what should be tested against for a "site-test"/"doc-test". What's the failure scenario we want to catch? The current test doesn't provide much value since it can only catch error of accidental api doc change in the first test run, the following run will succeed anyway.
How to reproduce it (as minimally and precisely as possible):
Add a new field to the
GameServerAllocationStatus
(pkg/apis/allocation/v1/gameserverallocation.go), and runmake test
.Anything else we need to know?:
Environment:
kubectl version
): N/AThe text was updated successfully, but these errors were encountered: